abstractfoundry / lumicube-daemon

9 stars 12 forks source link

Daemon fails to start on Raspberry 4 #26

Open lummerland opened 9 months ago

lummerland commented 9 months ago

Hi,

since a while I try to get my lumicube to work, with no success. The installation works so far after doing it as supposed in https://github.com/abstractfoundry/lumicube/issues/19. But now the daemon does not start and I have no idea what to do.

I run systemctl --user status foundry-daemon.service with this result:

× foundry-daemon.service - Abstract Foundry Daemon
     Loaded: loaded (/home/lummerland/.local/share/systemd/user/foundry-daemon.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2023-12-17 18:14:28 CET; 2min 1s ago
   Duration: 3.834s
    Process: 1877 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS)
    Process: 1878 ExecStart=/home/lummerland/AbstractFoundry/Daemon/launch.sh /dev/ttyAMA0 (code=exited, status=1/FAILURE)
   Main PID: 1878 (code=exited, status=1/FAILURE)
        CPU: 5.115s

Dec 17 18:14:28 lumicube systemd[729]: foundry-daemon.service: Scheduled restart job, restart counter is at 5.
Dec 17 18:14:28 lumicube systemd[729]: Stopped foundry-daemon.service - Abstract Foundry Daemon.
Dec 17 18:14:28 lumicube systemd[729]: foundry-daemon.service: Consumed 5.115s CPU time.
Dec 17 18:14:28 lumicube systemd[729]: foundry-daemon.service: Start request repeated too quickly.
Dec 17 18:14:28 lumicube systemd[729]: foundry-daemon.service: Failed with result 'exit-code'.
Dec 17 18:14:28 lumicube systemd[729]: Failed to start foundry-daemon.service - Abstract Foundry Daemon.

I tried to find the reason for that in logfiles using journalctl -b | grep lumicube. Result:

Dec 17 18:13:45 lumicube systemd[729]: Starting foundry-daemon.service - Abstract Foundry Daemon...
Dec 17 18:13:46 lumicube systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Dec 17 18:13:50 lumicube systemd[729]: Started foundry-daemon.service - Abstract Foundry Daemon.
Dec 17 18:13:54 lumicube launch.sh[1764]: Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/jSerialComm/1702833234334-libjSerialComm.so: /tmp/jSerialComm/1702833234334-libjSerialComm.so: cannot open shared object file: No such file or directory
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2383)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/java.lang.Runtime.load0(Runtime.java:746)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at java.base/java.lang.System.load(System.java:1857)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at com.fazecast.jSerialComm.SerialPort.<clinit>(SerialPort.java:252)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at com.abstractfoundry.daemon.serial.SerialDriver.<init>(SerialDriver.java:49)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at com.abstractfoundry.daemon.uavcan.SerialConnector.<init>(SerialConnector.java:25)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at com.abstractfoundry.daemon.uavcan.SerialConnectedNode.<init>(SerialConnectedNode.java:17)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at com.abstractfoundry.daemon.Daemon.<init>(Daemon.java:71)
Dec 17 18:13:54 lumicube launch.sh[1764]:         at com.abstractfoundry.daemon.Daemon.main(Daemon.java:113)
Dec 17 18:13:54 lumicube systemd[729]: foundry-daemon.service: Main process exited, code=exited, status=1/FAILURE
Dec 17 18:13:54 lumicube systemd[729]: foundry-daemon.service: Failed with result 'exit-code'.
Dec 17 18:13:54 lumicube systemd[729]: foundry-daemon.service: Consumed 5.232s CPU time.
Dec 17 18:13:59 lumicube systemd[729]: foundry-daemon.service: Scheduled restart job, restart counter is at 3.
Dec 17 18:13:59 lumicube systemd[729]: Stopped foundry-daemon.service - Abstract Foundry Daemon.
Dec 17 18:13:59 lumicube systemd[729]: foundry-daemon.service: Consumed 5.232s CPU time.

Could this be the problem and how can I fix that? Thanks & regards!