<div dir="ltr"><div>I'm experimenting with Portable Services, but the "walkthrough" example [1] doesn't seem to work. The error:</div><div>  Failed to execute /usr/bin/portable-walkthrough-go: No such file or directory</div><div>probably means something fairly fundamental is wrong, but I can't seem to figure out what that might be. Any suggestions?</div><div><div><br></div><div>[1] <a href="http://0pointer.net/blog/walkthrough-for-portable-services-in-go.html">http://0pointer.net/blog/walkthrough-for-portable-services-in-go.html</a></div><div><br></div></div><div># systemd --version<br>systemd 249 (249.11-0ubuntu3.7pop1~1680050939~22.04~c5d2663)<br>+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +<br>ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified<br># uname -srvmpio<br>Linux 6.2.6-76060206-generic #202303130630~1679424972~22.04~4a8cde1 SMP PREEMPT_DYNAMIC Tue M x86_64 x86_64 x86_64 GNU/Linux<br># portablectl attach ./portable-walkthrough-go.raw<br>(Matching unit files with prefix 'portable-walkthrough-go'.)<br>Created directory /etc/systemd/system.attached.<br>Created directory /etc/systemd/system.attached/portable-walkthrough-go.service.d.<br>Written /etc/systemd/system.attached/portable-walkthrough-go.service.d/20-portable.conf.<br>Created symlink /etc/systemd/system.attached/portable-walkthrough-go.service.d/10-profile.conf → /usr/lib/systemd/portable/profile/default/service.conf.<br>Copied /etc/systemd/system.attached/portable-walkthrough-go.service.<br>Created directory /etc/systemd/system.attached/portable-walkthrough-go.socket.d.<br>Written /etc/systemd/system.attached/portable-walkthrough-go.socket.d/20-portable.conf.<br>Copied /etc/systemd/system.attached/portable-walkthrough-go.socket.<br>Created symlink /etc/portables/portable-walkthrough-go.raw → /home/ctuffli/dev/portables/portable-walkthrough-go/portable-walkthrough-go.raw.<br># systemctl start portable-walkthrough-go.socket<br># curl localhost:8080<br>curl: (56) Recv failure: Connection reset by peer<br># systemctl status portable-walkthrough-go.socket<br>× portable-walkthrough-go.socket - Portable Walkthrough Go Edition Socket<br>     Loaded: loaded (/etc/systemd/system.attached/portable-walkthrough-go.socket; disabled; vendor preset: enabled)<br>    Drop-In: /etc/systemd/system.attached/portable-walkthrough-go.socket.d<br>             └─20-portable.conf<br>     Active: failed (Result: service-start-limit-hit) since Sun 2023-04-02 16:30:22 PDT; 11s ago<br>   Triggers: ● portable-walkthrough-go.service<br>     Listen: [::]:8080 (Stream)<br>        CPU: 866us<br><br>Apr 02 16:30:12 thelio systemd[1]: Listening on Portable Walkthrough Go Edition Socket.<br>Apr 02 16:30:22 thelio systemd[1]: portable-walkthrough-go.socket: Failed with result 'service-start-limit-hit'.<br># systemctl status portable-walkthrough-go<br>× portable-walkthrough-go.service - Portable Walkthrough Go Edition Service<br>     Loaded: loaded (/etc/systemd/system.attached/portable-walkthrough-go.service; static)<br>    Drop-In: /etc/systemd/system.attached/portable-walkthrough-go.service.d<br>             └─10-profile.conf, 20-portable.conf<br>     Active: failed (Result: exit-code) since Sun 2023-04-02 16:30:22 PDT; 20s ago<br>TriggeredBy: × portable-walkthrough-go.socket<br>    Process: 278282 ExecStart=/usr/bin/portable-walkthrough-go (code=exited, status=203/EXEC)<br>   Main PID: 278282 (code=exited, status=203/EXEC)<br>        CPU: 41ms<br><br>Apr 02 16:30:22 thelio systemd[1]: Starting Portable Walkthrough Go Edition Service...<br>Apr 02 16:30:22 thelio systemd[278282]: portable-walkthrough-go.service: Failed to execute /usr/bin/portable-walkthrough-go: No such file or directory<br>Apr 02 16:30:22 thelio systemd[278282]: portable-walkthrough-go.service: Failed at step EXEC spawning /usr/bin/portable-walkthrough-go: No such file or directory<br>Apr 02 16:30:22 thelio systemd[1]: portable-walkthrough-go.service: Main process exited, code=exited, status=203/EXEC<br>Apr 02 16:30:22 thelio systemd[1]: portable-walkthrough-go.service: Failed with result 'exit-code'.<br>Apr 02 16:30:22 thelio systemd[1]: Failed to start Portable Walkthrough Go Edition Service.<br>Apr 02 16:30:22 thelio systemd[1]: portable-walkthrough-go.service: Start request repeated too quickly.<br>Apr 02 16:30:22 thelio systemd[1]: portable-walkthrough-go.service: Failed with result 'exit-code'.<br>Apr 02 16:30:22 thelio systemd[1]: Failed to start Portable Walkthrough Go Edition Service.<br># ./portable-walkthrough-go &<br>[1] 278308<br># curl localhost:8080<br>Hello! You are visitor #3!<br># fg<br>./portable-walkthrough-go<br>^C<br>#<br></div></div>