Jump to content

Domotz RPi Arch Port


auguzanellato
 Share

Recommended Posts

Hello everyone,

I tried to port the domotz agent to Arch Linux ARM installed on my raspberry pi 3, in fact i only copied files to correct locations from the deb file to the system root, but when i try to launch it via 

/etc/init.d/domotz start

it hangs on 

Starting Domotz...

i got an error on /var/log/domotz/domotz_status.log:

2016-05-13 19:06:17 LOG:    -----------------------------------------------------
2016-05-13 19:06:17 LOG:    Pid file doesn't exist, program probably stopped
2016-05-13 19:06:17 LOG:    Start domotz
2016-05-13 19:06:18 LOG:    Create /opt/domotz/tmp if not exists
2016-05-13 19:06:18 LOG:    Create /opt/domotz/var/log/domotz if not exists
2016-05-13 19:06:18 LOG:    Create /opt/domotz/var/lib/zabbix if not exists
2016-05-13 19:06:18 LOG:    Create /opt/domotz/var/lock if not exists
2016-05-13 19:06:18 LOG:    Add link /opt/domotz/bin/node for /opt/domotz/bin/domotz_node
2016-05-13 19:06:18 LOG:    Add link /etc/domotz.env for /opt/domotz/etc/domotz.env
2016-05-13 19:06:18 LOG:    Add link /var/log/domotz for /opt/domotz/var/log/domotz
2016-05-13 19:06:18 LOG:    Add link /usr/share/domotz_snmp for /opt/domotz/share/snmp
2016-05-13 19:06:18 LOG:    Link static content from /opt/domotz/lib/node_modules/domotz-remote-pawn/data
2016-05-13 19:06:18 LOG:    Check if content exists in /opt/domotz/share: nmap
2016-05-13 19:06:18 LOG:    Link all inode in /opt/domotz/share/nmap
2016-05-13 19:06:18 LOG:    Add link /opt/domotz/share/nmap/nmap-service-probes for /opt/domotz/lib/node_modules/domotz-remote-pawn/data/nmap/nmap-service-probes
2016-05-13 19:06:18 LOG:    Check if content exists in /opt/domotz/share: snmp
2016-05-13 19:06:18 LOG:    Link all inode in /opt/domotz/share/snmp
2016-05-13 19:06:18 LOG:    Add link /opt/domotz/share/snmp/mibs for /opt/domotz/lib/node_modules/domotz-remote-pawn/data/snmp/mibs
2016-05-13 19:06:18 LOG:    Check if content exists in /opt/domotz/share: zabbix
2016-05-13 19:06:18 LOG:    Link all inode in /opt/domotz/share/zabbix
2016-05-13 19:06:18 LOG:    Add link /opt/domotz/share/zabbix/externalscripts for /opt/domotz/lib/node_modules/domotz-remote-pawn/data/zabbix/externalscripts
2016-05-13 19:06:18 LOG:    Add link /opt/domotz/bin/start-stop-status for /etc/init.d/domotz

module.js:340
    throw err;
          ^
Error: Cannot find module '../lib/forever'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/opt/domotz/bin/domotz_forever:3:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
2016-05-13 19:06:19 LOG:    /opt/domotz/etc/domotz.json doesn't exist, booting Listener only
2016-05-13 19:06:19 LOG:    Waiting for port number in /tmp/domotz_listener.port
2016-05-13 19:06:20 LOG:    Waiting for port number in /tmp/domotz_listener.port
2016-05-13 19:06:21 LOG:    Waiting for port number in /tmp/domotz_listener.port
2016-05-13 19:06:22 LOG:    Waiting for port number in /tmp/domotz_listener.port
2016-05-13 19:06:23 LOG:    Waiting for port number in /tmp/domotz_listener.port

I don't want to return to Raspbian, so if you help me doing this port, or, even better, you manage to package Domotz Agent for the AUR, you will make a piece of the RaspberryPI community happy.

Sorry for my sometimes bad English, but I'm italian.

Thanks,

Augusto

Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...