question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FreeNAS iocage Plugin

See original GitHub issue

Using the plugin, amazon-dash service does not start. It results in this error :

File "/usr/local/lib/python3.6/site-packages/scapy/arch/__init__.py", line 63, in <module>
    conf.use_bpf = True
  File "/usr/local/lib/python3.6/site-packages/scapy/config.py", line 75, in __set__
    self.hook(self.name, val, *self.args, **self.kargs)
  File "/usr/local/lib/python3.6/site-packages/scapy/config.py", line 491, in _socket_changer
    _set_conf_sockets()
  File "/usr/local/lib/python3.6/site-packages/scapy/config.py", line 436, in _set_conf_sockets
    raise ScapyInvalidPlatformException("Darwin (OSX) only !")
scapy.error.ScapyInvalidPlatformException: Darwin (OSX) only !

It also spits out the same error if installed manually.

I think only the last few lines are relevant, I have not touched anything, just installed the plugin and added 1 Homeassistant command in the xml file.

Another question, In the config file, where it says legacy-api for HomeAssistant, is that where you put the newer access token ? Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tprelogcommented, Jan 29, 2019

I just recreated the plugin and it works. (after using the wget to get the new scapy file) Not sure why my original jail is spitting out errors. The only difference was that instead of dhcp I assigned it a ipv4 address

I’m pretty sure this a FreeNAS (iocage) issue. In general I’ve seen others report issues when trying to set an assigned IP address during creation. It seems like this works just fine for some people but for others it does not. I’ve always had good luck using the dhcp=on vnet=on bpf=yes options. Also I’ve seen others suggest these options when setting an IP manually fails to work. Besides I find (in my opinion) it much easier to manage IP address in one place, on my router, rather than multiple computers, VMs, and(or) jails

1reaction
tprelogcommented, Jan 29, 2019

@gt2416 I think the error is related to this issue with scapy

I have done a test install of the plugin and got it running by replacing /usr/local/lib/python3.6/site-packages/scapy/config.py with this version from github

I found the easiest approach to install wget and download the file directly using the plugin console

root@amazon-dash:~ #

pkg install wget ca_root_nss
wget -O /usr/local/lib/python3.6/site-packages/scapy/config.py https://raw.githubusercontent.com/secdev/scapy/master/scapy/config.py
service amazon-dash start

service amazon-dash status
amazondash is running as pid 10803.

For a long live access token replace that line with access_token: (obviously include your token)

Note: I also suggest you install ca_root_nss > This is not related to your error but I have just discovered this is required for amazon-dash --version to work correctly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Official iXSystems iocage plugins for FreeNAS and TrueOS
Official iXSystems iocage plugins for FreeNAS and TrueOS - GitHub - freenas/iocage-ix-plugins: Official iXSystems iocage plugins for FreeNAS and TrueOS.
Read more >
Plugins — iocage 1.2 documentation
iocage plugins are a simple and very fast method to get application containers ... In this example, a complete Quasselcore plugin is installed...
Read more >
13. Plugins — FreeNAS®11.2-U6 User Guide Table of Contents
Create and submit a new JSON file for the plugin: Clone the iocage-ix-plugins GitHub repository. Tip. Full tutorials and documentation for GitHub and...
Read more >
Create an unofficial iocage plugin | TrueNAS Community
This resource will walk you through the process of setting up an iocage plugin. The intent is to familiarize people with the basic...
Read more >
iocage Documentation - Read the Docs
iocage set is used to configure that plugin. In this example, a complete Quasselcore plugin is installed to a. FreeNAS system, then the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found