Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory on latest commit #35

Closed
Akrai opened this issue May 16, 2024 · 13 comments
Closed
Labels
bug Something isn't working packaging/AUR

Comments

@Akrai
Copy link

Akrai commented May 16, 2024

Just updated the AUR package after last commits. Now it's not running. Tried to reinstall the package, no luck

$ fw-fanctrl
Traceback (most recent call last):
File "/usr/bin/fw-fanctrl", line 320, in
main()
File "/usr/bin/fw-fanctrl", line 301, in main
client_socket.connect(COMMANDS_SOCKET_FILE_PATH)
FileNotFoundError: [Errno 2] No such file or directory

@OmegaLambda1998
Copy link

Same issue here, it looks like COMMANDS_SOCKET_FILE_PATH only gets initialised if a FanController is instantiated, however if not using --run, this never happens

@OmegaLambda1998
Copy link

As a temporary patch, create a file called override.conf in /etc/systemd/system/fw-fanctrl.service.d with the following"

[Service]
ExecStart=
ExecStart=/usr/bin/python3 /usr/bin/fw-fanctrl --run --config "/etc/fw-fanctrl/config.json" --no-log
ExecStopPost=
ExecStopPost=/bin/sh -c "ectool autofanctrl"

This got it working again for me, basically just taking the source code service file (https://github.com/TamtamHero/fw-fanctrl/blob/main/services/fw-fanctrl.service) and applying it

@leopoldhub
Copy link
Collaborator

leopoldhub commented May 17, 2024

Hi, as explained here, we are not the maintainers of the AUR package and cannot guarantee that it will work.
The AUR package imports external outdated service files, please contact the AUR maintainer instead.
Please use the installation script for the time being (as the AUR version should have done to begin with...)

@leopoldhub
Copy link
Collaborator

I have contacted the AUR package maintainer, who should be patching it soon

@icedream
Copy link

Package maintainer here, I'm currently going over the current packaging complications I have with @leopoldhub via mail. I'll have time to hotfix the package files this evening after work but I intend to follow up with a better solution. Hopefully from there we find a more permanent solution soon.

@Svenum Svenum mentioned this issue May 21, 2024
@leopoldhub leopoldhub added bug Something isn't working packaging/AUR labels May 21, 2024
@icedream
Copy link

We're taking care of long-term fixes in #37, the error should no longer happen on the AUR package where a hotfix has been applied a few days ago.

@icedream
Copy link

icedream commented May 23, 2024

AUR package has been updated with the proper long-term solution, should now install service files properly from repository.

Ignore my previous comment if you see it via mail notification, I had a silly override still installed that I thought I removed. All good now. 👍🏻

@leopoldhub
Copy link
Collaborator

Made me panic for a bit 👀

@leopoldhub
Copy link
Collaborator

Hi everyone, the AUR package have been fixed (thanks to the wonderful work of @icedream).
Did any of you experience any kind of unexpected behaviour with the latest package version?
If not, I would like to close this issue.
Have a nice day

@Akrai
Copy link
Author

Akrai commented May 29, 2024

Working properly here

@leopoldhub
Copy link
Collaborator

It seems that everything has been resolved, so I will then close the issue.

@skerit
Copy link

skerit commented Jul 22, 2024

@leopoldhub I just installed fw-fanctrl-git (r38.f0d8d77-2), fw-fanctrl-ui-git (r1.120f20e-1) and fw-ectool-git from the AUR, but I still get the error:

$ fw-fanctrl                                                                                                                                                                                                   ma 22 jul 2024 11:18:05
Traceback (most recent call last):
  File "/usr/bin/fw-fanctrl", line 329, in <module>
    main()
  File "/usr/bin/fw-fanctrl", line 310, in main
    client_socket.connect(COMMANDS_SOCKET_FILE_PATH)
FileNotFoundError: [Errno 2] No such file or directory

The systemd service file was installed, though I didn't get a mention anywhere I needed to start & enable it manually.
After doing that (sudo systemctl start fw-fanctrl) it worked.

@icedream
Copy link

icedream commented Jul 22, 2024

@skerit The package should automatically update to the latest git (at this point that would be r45.dc6558e) when it's being built.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging/AUR
Projects
None yet
Development

No branches or pull requests

5 participants