Coder Social home page Coder Social logo

Comments (19)

thefoxmangit avatar thefoxmangit commented on August 19, 2024 1

Thank you so much, its working again!

from hassio-addons.

letnic avatar letnic commented on August 19, 2024 1

Sorry i was always from home. It's working now. Thank you for help.

from hassio-addons.

kdorff avatar kdorff commented on August 19, 2024

I can second this report with my own.

Which addon?
syncthing

Describe the bug
After upgrading from 1.19.1 to 1.20.1, the logs show only s6-overlay-suexec: fatal: can only run as pid 1
Rolling back to 1.19.1 (using proxmox snapshots) brings syncthing back 1.19.1, which works.

To Reproduce

Notes:

  • I'm not using the syncthing integration.
  • I've repeated this 3 times with the same behavior.
  • I am "up to date" with HA, HAOS, all other addons, etc.

Steps:

  • Have syncthing addon 1.19.1 running.
  • Look in Settings | Addons | Syncthing | Logs and see healthy log messages
  • Take a snapshot with proxmox (so I can get back to a working system)
  • upgrade syncthing to 1.20.1
  • Look in Settings | Addons | Syncthing | Logs see s6-overlay-suexec: fatal: can only run as pid 1
  • Restart syncthing from Look in Settings | Addons | Syncthing | Restart
  • Look in Settings | Addons | Syncthing | Logs see s6-overlay-suexec: fatal: can only run as pid 1
  • Reboot the VM with Settings | System | Hardware | Reboot host
  • Wait for Reboot to complete to complete
  • Look in Settings | Addons | Syncthing | Logs see s6-overlay-suexec: fatal: can only run as pid 1
  • Restart syncthing from Look in Settings | Addons | Syncthing | Restart
  • Look in Settings | Addons | Syncthing | Logs see s6-overlay-suexec: fatal: can only run as pid 1
  • Rollback the snapshot with proxmox (so my system works again).
  • Reboot the system
  • Look in Settings | Addons | Syncthing and see that syncthing is again at 1.19.1 and wanting to be updated.
  • Look in Settings | Addons | Syncthing | Logs and see healthy log messages

Expected behavior
Log messages that show syncthing starting up / running.

Screenshots
N/A.

System
Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1
Kernel version 5.15.41
Agent version 1.2.1
Hardware: proxmox VM
Architecture: x86
Addon Version : 1.20.1

from hassio-addons.

kdorff avatar kdorff commented on August 19, 2024

In the HA discord today (2022-05-25) at about 7:31pm (central time) in the #add-ons channel, user Frenck suggested the add-on's config was missing "init: false".

syncthing-problem-possible-solution

from hassio-addons.

kevindorff avatar kevindorff commented on August 19, 2024

This seems to describe the necessary change along with when and why

https://developers.home-assistant.io/blog/2022/05/12/s6-overlay-base-images/

from hassio-addons.

kdorff avatar kdorff commented on August 19, 2024

I believe the fix is to change syncthing/config.json

  • update the version line "version": "1.20.1-1",
  • add the line "init": false

from hassio-addons.

Veldkornet avatar Veldkornet commented on August 19, 2024

I have the same issue...
s6-overlay-suexec: fatal: can only run as pid 1
before I found this thread though, I tried to do a rebuild of the addon, and then you get messages like this:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
$HOME is not defined
panic: Failed to get user home dir
goroutine 1 [running]:
github.com/syncthing/syncthing/lib/locations.userHomeDir()
	github.com/syncthing/syncthing/lib/locations/locations.go:187 +0x88
github.com/syncthing/syncthing/lib/locations.init.0()
	github.com/syncthing/syncthing/lib/locations/locations.go:56 +0x20
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

from hassio-addons.

thefoxmangit avatar thefoxmangit commented on August 19, 2024

I have exactly the same log output as @Veldkornet

from hassio-addons.

kdorff avatar kdorff commented on August 19, 2024

This is now fixed with 1.20.2 that is now released. This issue can be closed.

from hassio-addons.

thefoxmangit avatar thefoxmangit commented on August 19, 2024

For me the issue persists also with 1.20.2, removed and reinstalled and still the output above posted by @Veldkornet in the logs

from hassio-addons.

letnic avatar letnic commented on August 19, 2024

I have same log has @Veldkornet. The issue is still there.

from hassio-addons.

Veldkornet avatar Veldkornet commented on August 19, 2024

Strangely, mine is working after the latest update...

from hassio-addons.

letnic avatar letnic commented on August 19, 2024

I'm now on
System
Home Assistant Core 2022.6.5
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1
Kernel version 5.15.41
Agent version 1.2.1
Hardware: proxmox VM
Architecture: x86
Addon Version : 1.20.2

I try rebuild, uninstall and reinstall and restart HA. Nothing is working.
Still same message has @Veldkornet

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
$HOME is not defined
panic: Failed to get user home dir
goroutine 1 [running]:
github.com/syncthing/syncthing/lib/locations.userHomeDir()
github.com/syncthing/syncthing/lib/locations/locations.go:187 +0x7d
github.com/syncthing/syncthing/lib/locations.init.0()
github.com/syncthing/syncthing/lib/locations/locations.go:56 +0x1d
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped>

from hassio-addons.

thefoxmangit avatar thefoxmangit commented on August 19, 2024

Running Home Assistant Core 2022.6.4
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.2

Tried a reinstall and rebuild as well, same problem:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
$HOME is not defined
panic: Failed to get user home dir
goroutine 1 [running]:
github.com/syncthing/syncthing/lib/locations.userHomeDir()
github.com/syncthing/syncthing/lib/locations/locations.go:187 +0x88
github.com/syncthing/syncthing/lib/locations.init.0()
github.com/syncthing/syncthing/lib/locations/locations.go:56 +0x20
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

from hassio-addons.

MichaelBitard avatar MichaelBitard commented on August 19, 2024

I'm so sorry, I did not get notifications on this issue, I don't know why.

It still appears in 1.20.2?

I don't know how it is possible since I added

HOME=/data
export HOME

to force the HOME to be set, even when the --home parameter is set (I think this is a regression in syncthing)

from hassio-addons.

Veldkornet avatar Veldkornet commented on August 19, 2024

Mine has been working fine since I reported that it works, but strangely others are still having the issue.

from hassio-addons.

MichaelBitard avatar MichaelBitard commented on August 19, 2024

I opened an issue to syncthing to see if that's something that could be fixed, and what changed recently (from what I saw, they went from the simple dash notation -home to the double dash --home, but with the env var set it should work...

Maybe some fork happens somewhere that does not preserve the env variable...

from hassio-addons.

MichaelBitard avatar MichaelBitard commented on August 19, 2024

I tried something on the 1.20.2-1, could you try again? It (still) works on my setup, I hope it'll fix yours

from hassio-addons.

MichaelBitard avatar MichaelBitard commented on August 19, 2024

Great news, and sorry again for not seeing this issue sooner. I'll close this as soon as @letnic confirms it works too

from hassio-addons.

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.