Closed stillGP closed 1 month ago
Check output of sudo systemctl status OpenLinkHub.service
command
This is what it looks like
What happens when you restart service from terminal ? Is device working okay then or ?
After starting it in the console it doesn't work. Can you tell me what to do?
Just run sudo systemctl restart OpenLinkHub.service
. Also, is issue after restart or shutdown and turning the pc back on ?
It worked. But why do I have to restart the service after starting the system?
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 ?
The problem always occurs after starting the computer. What to do to prevent the problem from occurring?
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.
It's up and running. stdout.log
Okay, try with this binary. Delay has been introduced before device initialization to wait for device being ready. OpenLinkHub.zip
Unfortunately, it doesn't work. stdout.log
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.
Unfortunately, it doesn't work.
Whats the output of stdout now ? Last log had permission denied towards the device.
Sorry for the delay, I had to go out and couldn't reply. I'm sending the file. stdout.log
sudo getfacl /dev/hidraw2
Run this command to see device permissions.
➜ ~ sudo getfacl /dev/hidraw2 [sudo] hasło użytkownika gp: getfacl: Usunięcie wiodącego '/' ze ścieżek bezwzględnych
user::rw- user:gp:rw- group::rw- mask::rw- other::rw-
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.
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
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
I send after restarting the computer without manual start stdout.log
sudo rm /etc/systemd/system/OpenLinkHub.service
Run this and reboot. If you have Discord, hop in https://discord.gg/EbHvFb8J
After entering the above command and restarting the computer, the program started. I also joined discord. stdout.log
Issue is solved over Discord.
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