Giter Site home page Giter Site logo

Comments (4)

Askannz avatar Askannz commented on August 16, 2024

What does it say in the optimus-manager log ? (journalctl -u optimus-manager, scroll to the bottom)

from optimus-manager.

Alekhoff avatar Alekhoff commented on August 16, 2024

This is the log file output, it had like 4000 lines and this is just from the last minute.

nov. 19 04:56:12 XPS python[10890]: 'switching=nouveau\n'
nov. 19 04:56:12 XPS systemd[1]: optimus-manager.service: Main process exited, code=exited, status=1/FAILURE
nov. 19 04:56:12 XPS systemd[1]: optimus-manager.service: Failed with result 'exit-code'.
nov. 19 04:56:12 XPS systemd[1]: optimus-manager.service: Service RestartSec=100ms expired, scheduling restart.
nov. 19 04:56:12 XPS systemd[1]: optimus-manager.service: Scheduled restart job, restart counter is at 3.
nov. 19 04:56:12 XPS systemd[1]: Stopped Optimus Manager.
nov. 19 04:56:12 XPS systemd[1]: Started Optimus Manager.
nov. 19 04:56:12 XPS python[10892]: Optimus Manager (Daemon) version 0.1
nov. 19 04:56:12 XPS python[10892]: Traceback (most recent call last):
nov. 19 04:56:12 XPS python[10892]:   File "/usr/bin/optimus-manager-daemon", line 11, in <module>
nov. 19 04:56:12 XPS python[10892]:     load_entry_point('optimus-manager==0.0.1', 'console_scripts', 'optimus-manager-daemon')()
nov. 19 04:56:12 XPS python[10892]:   File "/usr/lib/python3.7/site-packages/optimus_manager/optimus_manager_daemon.py", line 64, in main
nov. 19 04:56:12 XPS python[10892]:     config = load_config()
nov. 19 04:56:12 XPS python[10892]:   File "/usr/lib/python3.7/site-packages/optimus_manager/config.py", line 11, in load_config
nov. 19 04:56:12 XPS python[10892]:     config.read([envs.DEFAULT_CONFIG_PATH, envs.USER_CONFIG_PATH])
nov. 19 04:56:12 XPS python[10892]:   File "/usr/lib/python3.7/configparser.py", line 696, in read
nov. 19 04:56:12 XPS python[10892]:     self._read(fp, filename)
nov. 19 04:56:12 XPS python[10892]:   File "/usr/lib/python3.7/configparser.py", line 1079, in _read
nov. 19 04:56:12 XPS python[10892]:     raise MissingSectionHeaderError(fpname, lineno, line)
nov. 19 04:56:12 XPS python[10892]: configparser.MissingSectionHeaderError: File contains no section headers.
nov. 19 04:56:12 XPS python[10892]: file: '/etc/optimus-manager.conf', line: 1
nov. 19 04:56:12 XPS python[10892]: 'switching=nouveau\n'
nov. 19 04:56:12 XPS systemd[1]: optimus-manager.service: Main process exited, code=exited, status=1/FAILURE
nov. 19 04:56:12 XPS systemd[1]: optimus-manager.service: Failed with result 'exit-code'.
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Service RestartSec=100ms expired, scheduling restart.
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Scheduled restart job, restart counter is at 4.
nov. 19 04:56:13 XPS systemd[1]: Stopped Optimus Manager.
nov. 19 04:56:13 XPS systemd[1]: Started Optimus Manager.
nov. 19 04:56:13 XPS python[10893]: Optimus Manager (Daemon) version 0.1
nov. 19 04:56:13 XPS python[10893]: Traceback (most recent call last):
nov. 19 04:56:13 XPS python[10893]:   File "/usr/bin/optimus-manager-daemon", line 11, in <module>
nov. 19 04:56:13 XPS python[10893]:     load_entry_point('optimus-manager==0.0.1', 'console_scripts', 'optimus-manager-daemon')()
nov. 19 04:56:13 XPS python[10893]:   File "/usr/lib/python3.7/site-packages/optimus_manager/optimus_manager_daemon.py", line 64, in main
nov. 19 04:56:13 XPS python[10893]:     config = load_config()
nov. 19 04:56:13 XPS python[10893]:   File "/usr/lib/python3.7/site-packages/optimus_manager/config.py", line 11, in load_config
nov. 19 04:56:13 XPS python[10893]:     config.read([envs.DEFAULT_CONFIG_PATH, envs.USER_CONFIG_PATH])
nov. 19 04:56:13 XPS python[10893]:   File "/usr/lib/python3.7/configparser.py", line 696, in read
nov. 19 04:56:13 XPS python[10893]:     self._read(fp, filename)
nov. 19 04:56:13 XPS python[10893]:   File "/usr/lib/python3.7/configparser.py", line 1079, in _read
nov. 19 04:56:13 XPS python[10893]:     raise MissingSectionHeaderError(fpname, lineno, line)
nov. 19 04:56:13 XPS python[10893]: configparser.MissingSectionHeaderError: File contains no section headers.
nov. 19 04:56:13 XPS python[10893]: file: '/etc/optimus-manager.conf', line: 1
nov. 19 04:56:13 XPS python[10893]: 'switching=nouveau\n'
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Main process exited, code=exited, status=1/FAILURE
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Failed with result 'exit-code'.
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Service RestartSec=100ms expired, scheduling restart.
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Scheduled restart job, restart counter is at 5.
nov. 19 04:56:13 XPS systemd[1]: Stopped Optimus Manager.
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Start request repeated too quickly.
nov. 19 04:56:13 XPS systemd[1]: optimus-manager.service: Failed with result 'exit-code'.
nov. 19 04:56:13 XPS systemd[1]: Failed to start Optimus Manager.

from optimus-manager.

Askannz avatar Askannz commented on August 16, 2024

configparser.MissingSectionHeaderError: File contains no section headers.

Looks like there is a syntax error in your config file.

from optimus-manager.

Askannz avatar Askannz commented on August 16, 2024

I added a reminder in the README about including section headers to the config file.

from optimus-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.