Git Product home page Git Product logo

Comments (11)

stefanwichmann avatar stefanwichmann commented on June 26, 2024

Hi KevRooster,

have you tried running Kelvin directly from the shell without using systemd? Does it crash there too?

If you can, please run ./kelvin -debug and paste the output here. Thanks!

from kelvin.

KevRooster avatar KevRooster commented on June 26, 2024

from kelvin.

stefanwichmann avatar stefanwichmann commented on June 26, 2024

Thanks for the follow up.

The last line of your output gives a hint to what might be the problem here: Kelvin can't write the changed configuration to disk because of missing permissions.

Could you paste the output of running ls -lha /home/pi/kelvin/config.json?

I would guess the config belongs to root and your normal user doesn't have the right to write to this file. You can fix this by running chown $USER /home/pi/kelvin/config.json.

Hope this helps!

from kelvin.

KevRooster avatar KevRooster commented on June 26, 2024

from kelvin.

stefanwichmann avatar stefanwichmann commented on June 26, 2024

Ok, the file permissions seem to be ok.

Next we should make sure you are in the correct working directory. Please execute:

cd /home/pi/kelvin/
./kelvin -debug

This should make sure you are really using the config file from /home/pi/kelvin/.

from kelvin.

KevRooster avatar KevRooster commented on June 26, 2024

from kelvin.

stefanwichmann avatar stefanwichmann commented on June 26, 2024

This looks much better. So there seems to be a Kelvin configuration file somewhere on your system with the wrong permissions. This file seems to get used if you start Kelvin via systemd.

I just released Kelvin v1.1.8 which will print the absolute paths of the binary and configuration file. This should lead us to the source of the problem.

from kelvin.

KevRooster avatar KevRooster commented on June 26, 2024

from kelvin.

stefanwichmann avatar stefanwichmann commented on June 26, 2024

Thanks for updating to the latest version. Now we can identify which configuration file Kelvin wants to write to once it was started via systemd.

Please paste the output of journalctl -u kelvin and sudo journalctl -u kelvin. These commands should print the output of the process started by systemd.

from kelvin.

KevRooster avatar KevRooster commented on June 26, 2024

from kelvin.

stefanwichmann avatar stefanwichmann commented on June 26, 2024

Sorry, we missed activating the debug output. Please add the -debug flag to the ExecStart line inside /etc/systemd/system/kelvin.service. It should look like this:

ExecStart=/home/pi/kelvin/kelvin -debug

After this exec sudo systemctl restart kelvin for the changes to take effect. Then we should have another look at the output of journalctl -u kelvin

from kelvin.

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.