No internet connection
  1. Home
  2. Technical Support

Seeing Error in Settings.yml

By a7673 @a7673
    2024-12-02 19:22:29.771Z2024-12-02 20:44:52.689Zassigned to
    • @david

    Logs: https://logs.tinypilotkvm.com/8vPPwj8S

    It was working fine for many months and now I am seeing Error in Settings.yml all of sudden.
    The device was enabled to the read-only file system. I am working remotely, please dont tell me to factory reset the file system which is impossible for me at the moment.
    Please tell me other alternatives to fix this system.

    I was also able to do a restart of the TinyPilot Service (sudo service tinypilot restart) it dint work.

    Please help.

    • 3 replies
    1. David @david2024-12-03 12:06:46.916Z

      Hi @a7673, I'm sorry you're running into this error with your settings.yml file.

      Thanks for sharing that log! It looks like the TinyPilot service can't run because it can't parse the data in settings.yml. I haven't seen this particular issue before, so we'll have to do some investigation.

      Since you have SSH access, could you ssh into your TinyPilot and share the contents of settings.yml? You can output the content of the file with the following command:

      cat /home/tinypilot/settings.yml
      

      Then paste the output in your reply.

      Please let me know if you have any questions.

      1. A
        In reply toa7673:
        a7673 @a7673
          2024-12-03 16:49:29.007Z2024-12-03 20:02:51.983Z

          Here's the info copied:

          pilot@tinypilot:~ $ cat /home/tinypilot/settings.yml
          [Unit]
          Description=TinyPilot - RPi-based virtual KVM
          BindsTo=nginx.service
          After=syslog.target network.target nginx.service
          StartLimitIntervalSec=0

          [Service]
          Type=simple
          User=tinypilot
          WorkingDirectory=/opt/tinypilot
          ExecStart=/opt/tinypilot/venv/bin/python app/main.py
          Environment=APP_SETTINGS_FILE=/home/tinypilot/app_settings.cfg
          Restart=always

          [Install]
          WantedBy=multi-user.target
          pilot@tinypilot:~ $

          This screenshot is for checking Status as well:

          Kindly please help me with a remote solution. I am badly stuck.

          1. David @david2024-12-04 12:39:02.256Z

            Thanks for sharing that output, @a7637.

            That text looks like it belongs to /lib/systemd/system/tinypilot.service, rather than settings.yml. I haven't seen a situation where a file has taken on the contents of another file - it's possible that filesystem corruption has caused this issue.

            Could you check /lib/systemd/system/tinypilot.service contains the correct configuration (it should have the same content as your current settings.yml file)?

            cat /lib/systemd/system/tinypilot.service
            

            After you've checked the tinypilot.service file, could you run the following command to reset your settings.yml file:

            sudo tee /home/tinypilot/settings.yml < /dev/null
            

            Then try restarting the tinypilot service to see if it can run again:

            sudo service tinypilot start
            

            If the tinypilot service fails to start again, could you share another log or the output from sudo service tinypilot status?

            Please let me know if you have any questions.