I am unsure what causes this, but it seems to happen for upgrades or sometimes on the second/additional launch of a grain that has previously worked correctly.
I'm guessing the proxy never creates the root cert, because it can't find the environment variable.
** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
waiting for root to be available at /var/ca-spoof-cert.pem.
2023/02/21 17:36:58 Error: environment variable "POWERBOX_WEBSOCKET_PORT" is not defined.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
I am unsure what causes this, but it seems to happen for upgrades or sometimes on the second/additional launch of a grain that has previously worked correctly.
I'm guessing the proxy never creates the root cert, because it can't find the environment variable.
continue.sh is the related script here: https://github.com/sandstormports/wordpress-sandstorm/blob/master/continue.sh but the environment variable is set in the pkgdef, here: https://github.com/sandstormports/wordpress-sandstorm/blob/master/.sandstorm/sandstorm-pkgdef.capnp
cc: @zenhack