Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH should start without weston running #209

Open
andiradulescu opened this issue Feb 6, 2024 · 2 comments
Open

SSH should start without weston running #209

andiradulescu opened this issue Feb 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@andiradulescu
Copy link
Collaborator

If weston crashes upfront (before init), e.g. /usr/bin/weston: error while loading shared libraries: libffi.so.6, then SSH doesn't start.

If weston crashes later on (after init), then SSH starts.

My assumption is that in the first case weston-ready.service is not started, comma.sh doesn't do the right thing (?) and continue.sh is not called, thus SshEnabled is not being touched, thus ssh-param-watcher.path is not being triggered. Didn't investigate properly, just a hunch.

@adeebshihadeh
Copy link
Contributor

I believe this works now?

@andiradulescu
Copy link
Collaborator Author

If you didn't do any changes to ssh-param-watcher.path and weston-ready.service then it will still not work.

As I explained, my assumption is it happens only when weston-ready.service is not getting started. When this happens, continue.sh is not called, so ssh-param-watcher.path isn't getting triggered.

Since openpilot doesn't start and nobody else touches SshEnabled so to trigger ssh-param-watcher.path.

One way of resolving this is by removing all moving parts, and interact directly with systemd via systemctl to enable/disable the ssh service.

@andiradulescu andiradulescu added the bug Something isn't working label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants