Closed arenz13 closed 8 months ago
figured out my own issue.
Did not realize that the script does not create a default fan_control.yaml
I had to go into /opt/fan_control and then create a copy of the fan_control.yaml.example and save it as fan_control.yaml and then it started working.
On Proxmox VE 8.1 Dell r720xd
Had to disable the Proxmox repos in order to get it to install, but after doing so the service fails to start. Any help would be greatly appreciated.
Out of running install.sh: root@proxmox:~/r710-fan-controller# ./install.sh Installing packaged dependencies... Hit:1 http://ftp.us.debian.org/debian bookworm InRelease Hit:2 http://ftp.us.debian.org/debian bookworm-updates InRelease Hit:3 http://security.debian.org bookworm-security InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.9). python3-virtualenv is already the newest version (20.17.1+ds-1). python3-dev is already the newest version (3.11.2-1+b1). libsensors4-dev is already the newest version (1:3.6.0-7.1). ipmitool is already the newest version (1.8.19-4). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Creating folder '/opt/fan_control'... Creating and activating Python3 virtualenv... Existing venv found, purging it. created virtual environment CPython3.11.2.final.0-64 in 180ms creator CPython3Posix(dest=/opt/fan_control/venv, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv) added seed packages: pip==23.0.1, setuptools==66.1.1, wheel==0.38.4 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator Installing Python dependencies... Collecting git+https://github.com/bastienleonard/pysensors.git@e1ead6b73b2fa14e7baaa855c3e47b078020b4f8 (from -r requirements.txt (line 1)) Cloning https://github.com/bastienleonard/pysensors.git (to revision e1ead6b73b2fa14e7baaa855c3e47b078020b4f8) to /tmp/pip-req-build-orqhtmyp Running command git clone --filter=blob:none --quiet https://github.com/bastienleonard/pysensors.git /tmp/pip-req-build-orqhtmyp Running command git rev-parse -q --verify 'sha^e1ead6b73b2fa14e7baaa855c3e47b078020b4f8' Running command git fetch -q https://github.com/bastienleonard/pysensors.git e1ead6b73b2fa14e7baaa855c3e47b078020b4f8 Resolved https://github.com/bastienleonard/pysensors.git to commit e1ead6b73b2fa14e7baaa855c3e47b078020b4f8 Preparing metadata (setup.py) ... done Collecting pyyaml==6.0 Using cached PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB) Building wheels for collected packages: sensors Building wheel for sensors (setup.py) ... done Created wheel for sensors: filename=sensors-0.1-cp311-cp311-linux_x86_64.whl size=47194 sha256=24068e971304dc7454df4a29ef88d9693644804ba917b0c702a5118aaafd7e18 Stored in directory: /root/.cache/pip/wheels/d8/8e/b1/857648ac4c50570024c8e8653b76f91a55c627282423249796 Successfully built sensors Installing collected packages: sensors, pyyaml Successfully installed pyyaml-6.0 sensors-0.1 Deactivating Python3 virtualenv... Copying script and configuration in place... Creating, (re)starting and enabling SystemD service... Waiting for the service to start... All done! Check the service's output below:
● fan-control.service - Temperature-based fan speed controller Loaded: loaded (/etc/systemd/system/fan-control.service; enabled; preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2024-02-28 22:19:40 CST; 3s ago Process: 251080 ExecStart=/opt/fan_control/venv/bin/python3 -u /opt/fan_control/fan_control.py (code=exited, status=1/FAILURE) Main PID: 251080 (code=exited, status=1/FAILURE) CPU: 57ms root@proxmox:~/r710-fan-controller#