Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory #72

Closed
alberttwong opened this issue Mar 4, 2017 · 1 comment

Comments

@alberttwong
Copy link

alberttwong commented Mar 4, 2017

started up... knows it's on wrong network.... I join resinap... put in the right network/passwd... joins right network... everything works fine. restart app... knows it's on correct network and passes... everything works fine.... resin ssh into the container and I try to re-enter access point mode and then it goes into error.

root@raspberrypi3-610a8e3:/app/pinballiot# node src/app.js --clear=true
/app/pinballiot/node_modules/dbus/lib/bus.js:18
		self.connection = dbus._dbus.getBus(0);
		                             ^

Error: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
    at new module.exports (/app/pinballiot/node_modules/dbus/lib/bus.js:18:32)
    at module.exports.DBus.getBus (/app/pinballiot/node_modules/dbus/lib/dbus.js:48:12)
    at Object.<anonymous> (/app/pinballiot/src/connman.js:13:14)
    at Object.<anonymous> (/app/pinballiot/src/connman.js:84:4)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/app/pinballiot/src/app.js:9:13)
    at Object.<anonymous> (/app/pinballiot/src/app.js:149:4)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
@alberttwong alberttwong changed the title trying to clear wifi settings, getting error trying to re-enter access point mode, getting error Mar 4, 2017
@jbaldwinroberts
Copy link
Contributor

Hi,

You need to run export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket before calling node src/app.js --clear=true

@jbaldwinroberts jbaldwinroberts changed the title trying to re-enter access point mode, getting error Error: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants