[dss-developer] Starting dSS on Raspberry fails

Markus Nicks markus.nicks at gmail.com
Sun Oct 11 14:22:00 CEST 2015


Hi dSS Experts,
after solving some issues I had while compiling on raspberry i now stuck stating/running dSS. Looking to the log (see below) it seems dSS is looking for a running ds485d or ds485p (???). But as I wasn’t able to find any documentation or architecture blueprint I’ve no idea how all components (ds485d, ds485p, libcommchannel, libdsuid, …) related to each other. Hopefully someone can give me more insight into the overall architecture or any tipps whats going wrong looking to the log output.

Just for your information, my idea is only dSS on raspberry but still use dss11-1GB as ds485 gateway.

Best Regards,
Markus.


ls: cannot access /usr/share/dss/data/apartment.xml: No such file or directory
ls: cannot access /media/card/sys/dss/data/apartment.xml: No such file or directory
[2015-10-11T11:45:42.438+01:00][Info][DSS] getInstance: create new -- 0x1501080
[2015-10-11T11:45:42.438+01:00][Info][DSS] DSS::initialize
[2015-10-11T11:45:42.441+01:00][Debug][System] [CommChannel] sending message failed: Failed to connect: Connection refused
[2015-10-11T11:45:42.450+01:00][Info][DSS] Setting property '/config/jslogdirectory' to '/var/log/dss/js'
[2015-10-11T11:45:42.451+01:00][Info][DSS] Setting property '/system/version/releasetype' to 'production'
[2015-10-11T11:45:42.452+01:00][Info][DSS] Setting property '/config/spidermonkey/optionclear' to '18432'
[2015-10-11T11:45:42.452+01:00][Info][DSS] Setting property '/config/spidermonkey/runtimesize' to '512000'
[2015-10-11T11:45:42.452+01:00][Info][DSS] Setting property '/config/spidermonkey/stacksize' to '2048'
[2015-10-11T11:45:42.453+01:00][Info][DSS] Setting property '/config/spidermonkey/cache' to 'false'
[2015-10-11T11:45:42.453+01:00][Info][DSS] Setting property '/config/digestfile' to '/etc/lighttpd.user'
[2015-10-11T11:45:42.454+01:00][Info][DSS] Setting property '/config/loglevel' to '2'
[2015-10-11T11:45:42.454+01:00][Info][DSS] Setting property '/config/subsystems/DS485Proxy/loglevel' to '2'
[2015-10-11T11:45:42.454+01:00][Info][DSS] Setting property '/config/subsystems/BusInterfaceHandler/loglevel' to '2'
[2015-10-11T11:45:42.454+01:00][Info][DSS] Setting property '/config/subsystems/DSSim/loglevel' to '2'
[2015-10-11T11:45:42.455+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/loglevel' to '2'
[2015-10-11T11:45:42.455+01:00][Info][DSS] Setting property '/config/subsystems/WebServices/loglevel' to '2'
[2015-10-11T11:45:42.455+01:00][Info][DSS] Setting property '/config/subsystems/Metering/loglevel' to '2'
[2015-10-11T11:45:42.456+01:00][Info][DSS] Setting property '/config/subsystems/EventInterpreter/loglevel' to '2'
[2015-10-11T11:45:42.456+01:00][Info][DSS] Setting property '/config/subsystems/Apartment/loglevel' to '2'
[2015-10-11T11:45:42.456+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/listen' to '127.0.0.1:8088h,0.0.0.0:8080'
[2015-10-11T11:45:42.457+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/trustedPort' to '8088'
[2015-10-11T11:45:42.457+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/announcedport' to '80'
[2015-10-11T11:45:42.457+01:00][Info][DSS] Setting property '/config/subsystems/Metering/storageLocation' to '/usr/share/dss/data/metering'
[2015-10-11T11:45:42.458+01:00][Info][DSS] Setting property '/config/subsystems/Metering/rrdDaemonAddress' to 'unix:/var/run/rrdcached.sock'
[2015-10-11T11:45:42.458+01:00][Info][DSS] Setting property '/config/subsystems/DSBusInterface/connectionURI' to 'tcp://localhost:8440'
[2015-10-11T11:45:42.458+01:00][Info][DSS] Setting property '/config/subsystems/Metering/enabled' to 'true'
[2015-10-11T11:45:42.459+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/sslcert' to '/root/dSS/sysroot/share/dss/data/dsscert.pem'
[2015-10-11T11:45:42.459+01:00][Info][DSS] Setting property '/config/subsystems/WebServices/sslcert' to '/root/dSS/sysroot/share/dss/data/dsscert.pem'
[2015-10-11T11:45:42.460+01:00][Info][DSS] Setting property '/system/language/locale' to ''
[2015-10-11T11:45:42.460+01:00][Info][DSS] Setting property '/system/language/language' to ''
[2015-10-11T11:45:42.461+01:00][Info][DSS] Setting property '/config/webservice-api/base-url' to 'https://dsservices.aizo.com'
[2015-10-11T11:45:42.461+01:00][Info][DSS] Setting property '/config/webservice-api/service-url' to 'http://www.digitalstrom.com'
[2015-10-11T11:45:42.461+01:00][Info][DSS] Setting property '/config/webservice-api/dshub/base-url' to 'https://public.api.digitalstrom.com'
[2015-10-11T11:45:42.462+01:00][Info][DSS] Setting property '/config/webrootdirectory' to '/root/dSS/sysroot/share/dss-web/webroot'
[2015-10-11T11:45:42.462+01:00][Info][DSS] Loading config file /root/dSS/sysroot/share/dss/data/config.xml
[2015-10-11T11:45:42.464+01:00][Info][DSS] Loading config directory /root/dSS/sysroot/share/dss/data/config.d
[2015-10-11T11:45:42.465+01:00][Info][DSS] Setting property '/config/jslogdirectory' to '/var/log/dss/js'
[2015-10-11T11:45:42.465+01:00][Info][DSS] Setting property '/system/version/releasetype' to 'production'
[2015-10-11T11:45:42.465+01:00][Info][DSS] Setting property '/config/spidermonkey/optionclear' to '18432'
[2015-10-11T11:45:42.466+01:00][Info][DSS] Setting property '/config/spidermonkey/runtimesize' to '512000'
[2015-10-11T11:45:42.466+01:00][Info][DSS] Setting property '/config/spidermonkey/stacksize' to '2048'
[2015-10-11T11:45:42.466+01:00][Info][DSS] Setting property '/config/spidermonkey/cache' to 'false'
[2015-10-11T11:45:42.467+01:00][Info][DSS] Setting property '/config/digestfile' to '/etc/lighttpd.user'
[2015-10-11T11:45:42.467+01:00][Info][DSS] Setting property '/config/loglevel' to '2'
[2015-10-11T11:45:42.467+01:00][Info][DSS] Setting property '/config/subsystems/DS485Proxy/loglevel' to '2'
[2015-10-11T11:45:42.467+01:00][Info][DSS] Setting property '/config/subsystems/BusInterfaceHandler/loglevel' to '2'
[2015-10-11T11:45:42.468+01:00][Info][DSS] Setting property '/config/subsystems/DSSim/loglevel' to '2'
[2015-10-11T11:45:42.468+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/loglevel' to '2'
[2015-10-11T11:45:42.468+01:00][Info][DSS] Setting property '/config/subsystems/WebServices/loglevel' to '2'
[2015-10-11T11:45:42.469+01:00][Info][DSS] Setting property '/config/subsystems/Metering/loglevel' to '2'
[2015-10-11T11:45:42.469+01:00][Info][DSS] Setting property '/config/subsystems/EventInterpreter/loglevel' to '2'
[2015-10-11T11:45:42.469+01:00][Info][DSS] Setting property '/config/subsystems/Apartment/loglevel' to '2'
[2015-10-11T11:45:42.469+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/listen' to '127.0.0.1:8088h,0.0.0.0:8080'
[2015-10-11T11:45:42.470+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/trustedPort' to '8088'
[2015-10-11T11:45:42.470+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/announcedport' to '80'
[2015-10-11T11:45:42.470+01:00][Info][DSS] Setting property '/config/subsystems/Metering/storageLocation' to '/usr/share/dss/data/metering'
[2015-10-11T11:45:42.471+01:00][Info][DSS] Setting property '/config/subsystems/Metering/rrdDaemonAddress' to 'unix:/var/run/rrdcached.sock'
[2015-10-11T11:45:42.471+01:00][Info][DSS] Setting property '/config/subsystems/DSBusInterface/connectionURI' to 'tcp://localhost:8440'
[2015-10-11T11:45:42.472+01:00][Info][DSS] Setting property '/config/subsystems/Metering/enabled' to 'true'
[2015-10-11T11:45:42.472+01:00][Info][DSS] Setting property '/config/subsystems/WebServer/sslcert' to '/root/dSS/sysroot/share/dss/data/dsscert.pem'
[2015-10-11T11:45:42.473+01:00][Info][DSS] Setting property '/config/subsystems/WebServices/sslcert' to '/root/dSS/sysroot/share/dss/data/dsscert.pem'
[2015-10-11T11:45:42.473+01:00][Info][DSS] Setting property '/system/language/locale' to ''
[2015-10-11T11:45:42.473+01:00][Info][DSS] Setting property '/system/language/language' to ''
[2015-10-11T11:45:42.474+01:00][Info][DSS] Setting property '/config/webservice-api/base-url' to 'https://dsservices.aizo.com'
[2015-10-11T11:45:42.474+01:00][Info][DSS] Setting property '/config/webservice-api/service-url' to 'http://www.digitalstrom.com'
[2015-10-11T11:45:42.474+01:00][Info][DSS] Setting property '/config/webservice-api/dshub/base-url' to 'https://public.api.digitalstrom.com'
[2015-10-11T11:45:42.475+01:00][Info][DSS] Setting property '/config/webrootdirectory' to '/root/dSS/sysroot/share/dss-web/webroot'
[2015-10-11T11:45:42.476+01:00][Info][DSS] No logfile configured, logging to stdout
[2015-10-11T11:45:42.476+01:00][Info][DSS] DSS starting up....
[2015-10-11T11:45:42.477+01:00][Info][DSS] dSS v1.32.0 (git:c1b43739585dc6f24ce9dba7ffd6101750f43d81-dirty) (root at p44-dsb-e)
[2015-10-11T11:45:42.477+01:00][Info][DSS] Configuration:
[2015-10-11T11:45:42.477+01:00][Info][DSS]   data:         '/root/dSS/sysroot/share/dss/data/'
[2015-10-11T11:45:42.478+01:00][Info][DSS]   config:       '/root/dSS/sysroot/share/dss/data/'
[2015-10-11T11:45:42.478+01:00][Info][DSS]   webroot:      '/root/dSS/sysroot/share/dss-web/webroot/'
[2015-10-11T11:45:42.478+01:00][Info][DSS]   log dir:      '/var/log/dss/js/'
[2015-10-11T11:45:42.478+01:00][Info][DSS]   props dir:    '/root/dSS/sysroot/share/dss/data/savedprops/'
[2015-10-11T11:45:42.479+01:00][Info][DSS]   database dir: '/root/dSS/sysroot/share/dss/data/databases/'
[2015-10-11T11:45:42.484+01:00][Warning][System] EventInterpreterPluginSendmail: disabled by configuration, not sending any e-mail
[2015-10-11T11:45:42.485+01:00][Info][DSS] Using digest file: '/etc/lighttpd.user' for authentication.
[2015-10-11T11:45:42.486+01:00][Error][System] ExpatParser::parseFile: Could not open file /root/dSS/sysroot/share/dss/data/security.xml
[2015-10-11T11:45:42.488+01:00][Warning][Apartment] Could not find /root/dSS/sysroot/share/dss/data/apartment.xml
[2015-10-11T11:45:42.489+01:00][Notice][Apartment] processed apartment.xml
[2015-10-11T11:45:42.497+01:00][Debug][DSBusInterface] initializing DSBusInterface
connectsock einprogress: Connection refused
[2015-10-11 11:45:42.503] ds485c: <localhost:8440.-0001> reconnect failed
[2015-10-11 11:45:52.499] ds485c: wq:open pthread_cond_timedwait:Connection timed out(110) state:1
[2015-10-11 11:45:52.504] ds485c: <localhost:8440.-0001> thread terminates
[2015-10-11T11:45:52.504+01:00][Debug][DSBusInterface] Couldn't open dsmapi connection to 'tcp://localhost:8440' result: -3
[2015-10-11T11:45:52.524+01:00][Fatal][DSS] Failed to initialize subsystem 'WebServer': Could not start webserver
[2015-10-11T11:45:52.525+01:00][Fatal][DSS] Failed to initialize subsystems, exiting...
[2015-10-11T11:45:52.525+01:00][Info][DSS] DSS::shutdown 0x1501080
[2015-10-11T11:45:52.526+01:00][Info][EventInterpreterPluginJavascript] Terminating all scripts...
[2015-10-11T11:45:52.526+01:00][Info][EventInterpreterPluginJavascript] All scripts Terminated


More information about the dss-developer mailing list