youshop.example.com has been returning 502 since this morning. Panel prod, user alice.
agentUsing arcpanel-troubleshoot with the read-only key. Nothing will change.
arc web-domains get alice shop.example.com --profile prod-read --columns domain,backend_port,suspended
domain backend_port suspended
shop.example.com 3001 false
arc web-domains get-logs alice shop.example.com --type error --lines 20 --profile prod-read
[error] connect() failed (111: Connection refused) while connecting to upstream, upstream: "http://127.0.0.1:3001/"
arc docker-apps get alice shop --profile prod-read --columns name,state,status,web_port
name state status web_port
shop exited Exited (137) 6h ago 3001
agentCause: the Docker app "shop" behind port 3001 stopped with exit code 137, most likely out of memory, so NGINX gets no answer. Proposed fix: restart it with arcpanel-apps, previewed first, and raise its memory limit if it stops again. Shall I prepare that?
youAdd blog.example.com for alice on prod, with HTTPS.
agentUsing arcpanel-sites. First, the current state.
arc web-domains list alice --profile prod-read --columns domain,ip
domain ip
example.com 203.0.113.10
shop.example.com 203.0.113.10
arc web-domains create alice --domain blog.example.com --dry-run --profile prod
Dry run, nothing changed. Plan:
1. Add the web domain blog.example.com for alice
agentThis adds blog.example.com on 203.0.113.10 with the default templates. Proceed?
youyes
arc web-domains create alice --domain blog.example.com --profile prod
✓ blog.example.com created
arc web-domains request-lets-encrypt alice blog.example.com --dry-run --profile prod
agentNext, a Let's Encrypt certificate for blog.example.com, queued as a task. Proceed?
youyes
arc web-domains request-lets-encrypt alice blog.example.com --wait --profile prod
✓ task succeeded in 41 s
agentDone: https://blog.example.com is live with a Let's Encrypt certificate.
youMove example.com to PHP 8.4.
agentUsing arcpanel-sites. Checking the site and the installed PHP versions.
arc web-domains get-php alice example.com --profile prod-read --columns version,profile
version profile
8.2 default
arc server list-php-versions --profile prod-read --columns version,installed,default
version installed default
8.2 true true
8.3 true false
8.4 true false
arc web-domains set-php alice example.com --body-version 8.4 --dry-run --profile prod
Dry run, nothing changed. Plan:
1. Switch example.com to PHP 8.4 with the profile default
agentexample.com moves from PHP 8.2 to 8.4 and keeps its profile. Proceed?
youyes
arc web-domains set-php alice example.com --body-version 8.4 --profile prod
✓ example.com runs PHP 8.4
agentDone. example.com now runs PHP 8.4 with the profile default.