Coder (falsely?) reports running startup-script

I'm having a template provisioning a WS on a sysbox container with docker and code-server.

After starting, the terminal always reports this:
Startup script is still running. You can continue using this terminal, but your workspace may be incomplete.


I'm trying to debug this, but cannot find the reason. The process tree looks like this:
$ ps auxf
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
losinski       1  0.0  0.0 785028 57640 ?        Ssl  10:09   0:00 ./coder agent
losinski      79  0.0  0.0 788100 78564 ?        Ssl  10:09   0:01 ./coder agent --no-reap
losinski    1680  0.0  0.0   9352  8480 pts/0    Ss+  10:09   0:00  \_ /bin/bash -l
losinski    1877  0.0  0.0   9352  8524 pts/1    Ss+  10:10   0:00  \_ /bin/bash -l
losinski    2072  0.0  0.0   9352  8596 pts/2    Ss+  10:10   0:00  \_ /bin/bash -l
losinski    2267  0.0  0.0   9352  8476 pts/3    Ss+  10:10   0:00  \_ /bin/bash -l
losinski    2462  0.0  0.0   9352  8540 pts/4    Ss+  10:11   0:00  \_ /bin/bash -l
losinski    2661  0.0  0.0   9352  8504 pts/5    Ss   10:11   0:00  \_ /bin/bash -l
losinski    2856  0.0  0.0   8532  4260 pts/5    R+   10:11   0:00      \_ ps auxf
losinski     401  0.0  0.0 713344 62068 ?        Sl   10:09   0:00 /usr/lib/code-server/lib/node /usr/lib/code-server --auth none --port 13337
losinski     910  0.0  0.0 648820 63368 ?        Sl   10:09   0:00  \_ /usr/lib/code-server/lib/node /usr/lib/code-server/out/node/entry
root         405  0.0  0.0   7096  4388 ?        S    10:09   0:00 sudo dockerd
root         533  0.0  0.0 3829324 95508 ?       Sl   10:09   0:00  \_ dockerd
root         604  0.0  0.0 2391172 52208 ?       Ssl  10:09   0:00      \_ containerd --config /var/run/docker/containerd/containerd.toml


Can it be still-open file descriptors (like stdin/out/err from docker) or anything of the like? How does the agent determine if the script has finished?
Was this page helpful?