I provisioned a Trellis server on Hetzner ARM Ubuntu 24.0.4. I replaced my-site.test by my-site.com, imported the database, uploaded media and updated urls:
wp db import img-13-02-2025.sql
wp search-replace http://my-site.test https://my-site.com --dry-run
wp search-replace http://my-site.test https://my-site.com
wp search-replace my-site.test my-site.com --dry-run
wp search-replace my-site.test my-site.com
Also did flush cache and rewrite rules:
wp cache flush
wp rewrite flush
It is loading, but backend has issues. Slow and WordPress on hover sidebar menu items in dashboard do not load. I see
[Error] Failed to load resource: the server responded with a status of 500 () (load-scripts.php, line 0)
[Error] Failed to load resource: the server responded with a status of 500 () (load-scripts.php, line 0)
[Error] Refused to execute https://my-site.com/wp/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=wp-hooks,jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tooltip&ver=6.7.2 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] ReferenceError: Can't find variable: jQuery
Global Code (tooltip_init.min.js:1:1316)
[Error] Refused to execute https://my-site.com/wp/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=hoverIntent,wp-dom-ready&ver=6.7.2 as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
[Error] TypeError: undefined is not an object (evaluating 'window.wp.hooks')
(anonymous function) (i18n.min.js:2:8814)
(anonymous function) (i18n.min.js:2:9068)
Global Code (i18n.min.js:2:9105)
Post start up there were some PHP complaints about too few child processes
tail -f /var/log/php8.2-fpm.log
[13-Feb-2025 04:41:29] WARNING: [pool wordpress] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 6 total children
[13-Feb-2025 04:41:30] WARNING: [pool wordpress] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 7 total children
[13-Feb-2025 04:41:31] WARNING: [pool wordpress] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 8 total children
but that seems fine now:
ps -ylC php-fpm --sort:rss -u www-data
S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
S 33 31228 30685 0 80 0 6640 9247 ep_pol ? 00:00:00 nginx
S 33 31227 30685 0 80 0 13204 9641 ep_pol ? 00:00:02 nginx
S 33 31226 30685 0 80 0 14704 10054 ep_pol ? 00:00:02 nginx
Nginx logs are also minimal
tail -f /var/log/nginx/error.log
2025/02/13 02:31:11 [error] 30943#30943: *15 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 216.24.87.112, server: www.my-site.com, request: "GET / HTTP/1.0", host: "188.245.200.144:80"
How can I remedy this with Trellis? Should I perhaps deploy again? Second provision with second server in two days already cause I did not start out with Let’s Encrypt SSL properly the first time around - do now:
# Created by trellis-cli v1.13.0
# Documentation: https://roots.io/trellis/docs/wordpress-sites/
wordpress_sites:
site.com:
site_hosts:
- canonical: site.com
redirects:
- www.site.com
local_path: ../site
branch: main
repo: git@github.com:site/site.com.git
repo_subtree_path: site
multisite:
enabled: false
ssl:
enabled: true
provider: letsencrypt
cache:
enabled: false
repository with trellis , site including sage here.
so I hope we can remedy this properly without too much of a hassle.