Common errors, fixes, and FAQ
Upstream API provider is down or returning an error.
curl https://api.featherless.ai/v1/models -H "Authorization: Bearer YOUR_KEY"curl https://api.arliai.com/v1/models -H "Authorization: Bearer YOUR_KEY"Too many requests. The response includes a Retry-After header.
Retry-After header and wait that many secondsGET /v1/parallel-requestsMissing or invalid API key.
Authorization: Bearer sk-YOUR_KEY header is presentapi.kim8.s4s.host does not require keys (uses internal ones)Endpoint or model does not exist.
GET /v1/modelsServer-side error. Check logs.
tail -20 /var/log/nginx/test.error.logtail -20 /var/log/php8.3-fpm.logsystemctl restart php8.3-fpmStyles or scripts fail to load on HTTPS pages.
/assets/css/app.css) — should auto-resolvehttps://tail -f /var/log/nginx/test.access.log
tail -f /var/log/nginx/test.error.log
tail -100 /var/log/nginx/test.error.log | grep "error"
tail -f /var/log/php8.3-fpm.log
journalctl -u php8.3-fpm -f
journalctl -u nginx -f
journalctl -u certbot --since "1 hour ago"
ls /var/log/nginx/*.log
ls /var/log/nginx/ | grep -E "(access|error)"
nginx -t && systemctl reload nginx
systemctl restart nginx
systemctl restart php8.3-fpm
systemctl status nginx
systemctl status php8.3-fpm
systemctl status mariadb
mkdir -p /home/newsite/{includes,assets/{css,js,icons},api,endpoints,help}
cp /home/test/includes/security.php /home/newsite/includes/
cp /home/test/includes/functions.php /home/newsite/includes/
cp -r /home/test/assets/css /home/newsite/assets/
cp -r /home/test/assets/js /home/newsite/assets/
require_once __DIR__ . '/includes/security.php';server {
listen 80;
listen [::]:80;
server_name newsite.kim8.s4s.host;
return 301 https://newsite.kim8.s4s.host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name newsite.kim8.s4s.host;
ssl_certificate /etc/letsencrypt/live/newsite.kim8.s4s.host/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/newsite.kim8.s4s.host/privkey.pem;
root /home/newsite;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.(?!well-known) {
deny all;
}
}
ln -s /etc/nginx/sites-available/newsite.kim8.s4s.host.conf /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
certbot --nginx -d newsite.kim8.s4s.host
newsite.kim8.s4s.host pointing to the server IPcurl -I https://newsite.kim8.s4s.hostCertificates are auto-renewed via certbot cron. To manually manage:
certbot certificates
certbot renew --force-renewal
certbot certonly --nginx -d test.kim8.s4s.host
systemctl reload nginx
certbot renew --dry-run
systemctl list-timers | grep certbot
cat /etc/cron.d/certbot
Check PHP error logs. Common causes: syntax error in PHP, missing includes, or a fatal error. Enable display_errors temporarily for debugging: ini_set('display_errors', 1);
Large models (70B+) take longer to generate. Use smaller models for faster responses. Check upstream provider status. Enable response streaming if supported.
Edit /home/test/assets/css/app.css and /home/test/assets/js/app.js. Other sites symlink or copy these files. Use versioned filenames for cache busting: app.v2.css.
Yes, via the API gateway at api.kim8.s4s.host which uses internal keys. Direct provider calls require your own API key.
apt install php8.x-fpm php8.x-mysql
# Update nginx socket path: unix:/run/php/php8.x-fpm.sock
systemctl disable php8.3-fpm
systemctl enable php8.x-fpm
systemctl restart php8.x-fpm
nginx -t && systemctl reload nginx
tar czf /backup/test-$(date +%Y%m%d).tar.gz -C /home test/
tar czf /backup/vision-$(date +%Y%m%d).tar.gz -C /home vision/
Check the wildcard DNS record for *.kim8.s4s.host. Verify with dig newsite.kim8.s4s.host or nslookup newsite.kim8.s4s.host.