jurkovic-nikola / OpenLinkHub

Open source interface for iCUE LINK Hub and other Corsair AIOs, Hubs for Linux
GNU General Public License v3.0
54 stars 4 forks source link

After restarting the system, the program does not start #16

Closed stillGP closed 1 month ago

stillGP commented 1 month ago

After restarting the system, OpenLinkHub does not start. It starts only after typing in the terminal ➜ ~ cd OpenLinkHub/ chmod +x install.sh sudo sh install.sh I had no problem with earlier versions, I added it to autostart and it always started. stdout.log

jurkovic-nikola commented 1 month ago

Check output of sudo systemctl status OpenLinkHub.service command

stillGP commented 1 month ago

This is what it looks like 2

jurkovic-nikola commented 1 month ago

What happens when you restart service from terminal ? Is device working okay then or ?

stillGP commented 1 month ago

After starting it in the console it doesn't work. 3 Can you tell me what to do?

jurkovic-nikola commented 1 month ago

Just run sudo systemctl restart OpenLinkHub.service. Also, is issue after restart or shutdown and turning the pc back on ?

stillGP commented 1 month ago

It worked. But why do I have to restart the service after starting the system?

jurkovic-nikola commented 1 month ago

It worked. But why do I have to restart the service after starting the system?

You shouldn't, since its not working as expected. Where issue appears ? When you restart PC, Sleep / Resume or when you just shutdown and turn the PC back on ?

stillGP commented 1 month ago

The problem always occurs after starting the computer. What to do to prevent the problem from occurring?

jurkovic-nikola commented 1 month ago

Replace binary with this once and shutdown / turn on PC. After that upload content of stdout.log, i have some guesses what could be, just need initial data. Don't restart, shutdown and start PC.

OpenLinkHub.zip

stillGP commented 1 month ago

It's up and running. stdout.log

jurkovic-nikola commented 1 month ago

Okay, try with this binary. Delay has been introduced before device initialization to wait for device being ready. OpenLinkHub.zip

stillGP commented 1 month ago

Unfortunately, it doesn't work. stdout.log

jurkovic-nikola commented 1 month ago

System lost permission towards the device sudo rm -rf /etc/udev/rules.d/99-corsair*

Then: echo "KERNEL==\"hidraw*\", SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1b1c\", ATTRS{idProduct}==\"0c32\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/99-corsair-cc-64.rules

echo "KERNEL==\"hidraw*\", SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1b1c\", ATTRS{idProduct}==\"0c1c\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/99-corsair-cc-96.rules

echo "KERNEL==\"hidraw*\", SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"1b1c\", ATTRS{idProduct}==\"0c39\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/99-corsair-elite-lcd.rules

sudo udevadm control --reload-rules sudo udevadm trigger

After that try to shutdown / turn on.

stillGP commented 1 month ago

Unfortunately, it doesn't work. 4

jurkovic-nikola commented 1 month ago

Whats the output of stdout now ? Last log had permission denied towards the device.

stillGP commented 1 month ago

Sorry for the delay, I had to go out and couldn't reply. I'm sending the file. stdout.log

jurkovic-nikola commented 1 month ago

sudo getfacl /dev/hidraw2 Run this command to see device permissions.

stillGP commented 1 month ago

➜ ~ sudo getfacl /dev/hidraw2 [sudo] hasło użytkownika gp: getfacl: Usunięcie wiodącego '/' ze ścieżek bezwzględnych

file: dev/hidraw2

owner: root

group: root

user::rw- user:gp:rw- group::rw- mask::rw- other::rw-

stdout.log

jurkovic-nikola commented 1 month ago

Okay, permissions are fine now since device started. Shutdown and turn on PC back again, but do not run and install scripts, those script will replace binary with old one.

stillGP commented 1 month ago

After restarting the computer it still won't start. I guess the only option left is to restart from the terminal.;( sudo systemctl restart OpenLinkHub.service stdout.log

jurkovic-nikola commented 1 month ago

Can you send me stdout without manually starting it ? Log contains error even for http server binding, like there is double process running.

{"error":"listen tcp 127.0.0.1:27003: bind: address already in use","level":"fatal","msg":"Unable to start REST server","time":"2024-09-15T18:27:28+02:00"}

Its not possible to get this error on startup if there isnt some double process running or something using this port

stillGP commented 1 month ago

I send after restarting the computer without manual start stdout.log

jurkovic-nikola commented 1 month ago

sudo rm /etc/systemd/system/OpenLinkHub.service

Run this and reboot. If you have Discord, hop in https://discord.gg/EbHvFb8J

stillGP commented 1 month ago

After entering the above command and restarting the computer, the program started. I also joined discord. stdout.log

jurkovic-nikola commented 1 month ago

Issue is solved over Discord.