tailscale-dev / tclip

A pastebin for Tailscale users
BSD 3-Clause "New" or "Revised" License
154 stars 17 forks source link

Executable path when running using portablectl #40

Closed oatmealm closed 2 months ago

oatmealm commented 1 year ago

I'm seeing this error. Assuming the tclipd is not packed with the "container" in the raw file I've installed, where and how should it be installed when not on Nix?

sudo systemctl status tclip.service
● tclip.service - The tclip service
     Loaded: loaded (/etc/systemd/system.attached/tclip.service; disabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system.attached/tclip.service.d
             └─10-profile.conf
             /etc/systemd/system/tclip.service.d
             └─10-ts-auth-key.conf
             /etc/systemd/system.attached/tclip.service.d
             └─20-portable.conf
     Active: activating (auto-restart) (Result: exit-code) since Thu 2023-09-21 10:31:06 CEST; 4s ago
       Docs: https://github.com/tailscale-dev/tclip
    Process: 1179549 ExecStart=/nix/store/mlpwb0498b07zcfrwyswnwdgjs2ldbsr-tclipd-0.1.0-20230919/bin/tclipd (code=exited, status=226/NAMESPACE)
   Main PID: 1179549 (code=exited, status=226/NAMESPACE)
oatmealm commented 1 year ago

Also, I'm seeing this when stopping the (failed) service:

Sep 21 10:36:08 [host-name] systemd[1]: tclip.service: Scheduled restart job, restart counter is at 10.
Sep 21 10:36:08 [host-name] systemd[1]: Stopped The tclip service.
Sep 21 10:36:08 [host-name] systemd[1]: Started The tclip service.
Sep 21 10:36:09 [host-name] systemd[1179874]: Failed to create destination mount point node '/run/systemd/unit-root/var/lib/tclip': Read-only file system
Sep 21 10:36:09 [host-name] systemd[1179874]: Failed to mount /var/lib/private/tclip to /run/systemd/unit-root/var/lib/tclip: No such file or directory
Sep 21 10:36:09 [host-name] systemd[1179874]: tclip.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/tclip: No such file or directory
Sep 21 10:36:09 [host-name] systemd[1179874]: tclip.service: Failed at step NAMESPACE spawning /nix/store/mlpwb0498b07zcfrwyswnwdgjs2ldbsr-tclipd-0.1.0-20230919/bin/tclipd: No such file or directory
Sep 21 10:36:09 [host-name] systemd[1]: tclip.service: Main process exited, code=exited, status=226/NAMESPACE
Sep 21 10:36:09 [host-name] systemd[1]: tclip.service: Failed with result 'exit-code'.
Sep 21 10:36:23 [host-name] systemd[1]: Stopped The tclip service.
Erisa commented 4 months ago

Hi @oatmealm sorry for the radio silence here - if you still have this issue, are you able to share the steps you followed to get this setup in that way?

The error sounds a lot like the tclipd binary is missing, so it would help to know what steps to follow to reproduce, and then I can take a look.

oatmealm commented 4 months ago

Hi @oatmealm sorry for the radio silence here - if you still have this issue, are you able to share the steps you followed to get this setup in that way?

Hi thanks for the reply. I'll have to look into this again since it's been a while since I tried... will report

Erisa commented 2 months ago

Hi again, I'm going to close this issue for now but if you do run into this issue again please respond here and it can be reopened. Thanks!