raghulkrishna / deepcool-ak620-digital-linux

MIT License
21 stars 12 forks source link

Service faild #6

Open markovic-nikola opened 2 months ago

markovic-nikola commented 2 months ago

Hello,

I'm trying to run the script, no errors during setup.sh But when I run sudo systemctl status deepcool-ak620-digital.service I can see it failed to start:

systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 5.
systemd[1]: Stopped Displaying the current temperature and utilisation on the Deepcool AK620.
systemd[1]: deepcool-ak620-digital.service: Start request repeated too quickly.
systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Displaying the current temperature and utilisation on the Deepcool AK620.

Running on Linux Mint 21.3.

raghulkrishna commented 2 months ago

can you get the logs of the service? journalctl -u deepcool-ak620-digital.service

markovic-nikola commented 1 month ago

Hi @raghulkrishna

In the meantime I switched to Ubuntu 24.04, but I still have the same issue.

journalctl log:

May 22 18:45:22 nikola-markovic systemd[1]: Started deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Main process exited, code=exited, status=203/EXEC
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
raghulkrishna commented 1 month ago

weird i updated yesterday to ubuntu 24 it works very well

just had to run sudo pip/pip3 install hidapi again after update

raghulkrishna commented 1 month ago

is this the full log there should be some long error message

markovic-nikola commented 1 month ago

It seems so, it's just repeating on restarts:

May 22 18:45:22 nikola-markovic systemd[1]: Started deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Main process exited, code=exited, status=203/EXEC
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 1.
May 22 18:45:22 nikola-markovic systemd[1]: Started deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Main process exited, code=exited, status=203/EXEC
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 2.
May 22 18:45:22 nikola-markovic systemd[1]: Started deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Main process exited, code=exited, status=203/EXEC
May 22 18:45:22 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 3.
May 22 18:45:23 nikola-markovic systemd[1]: Started deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Main process exited, code=exited, status=203/EXEC
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 4.
May 22 18:45:23 nikola-markovic systemd[1]: Started deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Main process exited, code=exited, status=203/EXEC
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 5.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Start request repeated too quickly.
May 22 18:45:23 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
May 22 18:45:23 nikola-markovic systemd[1]: Failed to start deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
VonBiggCatt commented 1 month ago

I having the same issues on Arch after an update earlier today, same entries in my logs as above.

VonBiggCatt commented 1 month ago

Ok I tried to run the configurator.py again and it's giving me this error:

Wait a little and see what's wrong with your device. Do you see that it shows some random data? [Y/n]: Traceback (most recent call last):
  File "/home/vonbiggcatt/deepcool-digital-info/deepcool-digital-info.py", line 167, in <module>
    hidDevice = hid.device()
                ^^^^^^^^^^
AttributeError: module 'hid' has no attribute 'device'. Did you mean: 'Device'?
raghulkrishna commented 1 month ago

can you install hidpi by

sudo pip install hidapi or sudo pip3 install hidapi

VonBiggCatt commented 1 month ago

can you install hidpi by

sudo pip install hidapi or sudo pip3 install hidapi

Already have but I'll try again when I get home tonight

markovic-nikola commented 1 month ago

When I run: sudo pip install hidapi

I get the following error on Ubuntu:

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.12/README.venv for more information.

After that, I installed it by running: sudo apt install python3-hidapi and installation went through.

And running following commands:

sudo systemctl restart deepcool-ak620-digital.service
sudo systemctl status deepcool-ak620-digital.service

I still see the same error:

Jun 03 14:08:38 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Scheduled restart job, restart counter is at 5.
Jun 03 14:08:38 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Start request repeated too quickly.
Jun 03 14:08:38 nikola-markovic systemd[1]: deepcool-ak620-digital.service: Failed with result 'exit-code'.
Jun 03 14:08:38 nikola-markovic systemd[1]: Failed to start deepcool-ak620-digital.service - Displaying the current temperature and utilisation on the Deepcool AK620.
VonBiggCatt commented 1 month ago

I figured out my issues.

I had installed qmk on this pc for my keyboards which had uninstalled "python-hidapi" and replaced it with "python-hid". Removing qmk and reinstalling hidapi again fixed the issue, but leaves me with the issue of not having qmk anymore.

You cannot have both of these installed on the same system.

raghulkrishna commented 1 month ago

great can you add this to faq could be helpful for other users