GeOrchestra显示“站点维护中”的故障排查及解决方法咨询
Hey there, let's work through this GeOrchestra issue together. That French message "En raison d’une opération de maintenance, les services geOrchestra sont momentanément indisponibles." translates to "Due to maintenance operations, geOrchestra services are temporarily unavailable"—but since you didn't initiate maintenance, this is likely a sign that one or more core services failed to start, or a configuration toggle got flipped accidentally. Here's how to diagnose and fix it:
First, verify GeOrchestra service status
Start by checking if all required GeOrchestra services are running. Run this command to list related services:systemctl list-units --type=service | grep georchestraLook for any services marked as
failedorinactive. For any problematic service, check its real-time logs to spot errors:journalctl -u georchestra-[service-name].service -f(Replace
[service-name]with the actual service, likemapfishapporgeonetwork.)Check for accidental maintenance mode activation
GeOrchestra has a built-in maintenance mode that might have been enabled unintentionally. Navigate to your GeOrchestra configuration directory (usually/etc/georchestra) and scan YAML config files (likeconfig.ymlor service-specific configs) for lines like:maintenance: enabled: trueIf you find this, set
enabledtofalse, then restart the affected services.Validate reverse proxy (Nginx) configuration
If you're using Nginx as a reverse proxy, it might be serving the maintenance page because it can't reach the backend GeOrchestra services.- Check your Nginx GeOrchestra config (typically in
/etc/nginx/sites-available/georchestra) to ensureproxy_passpoints to the correct backend ports. - Test the Nginx config for syntax errors:
nginx -t - If everything looks good, restart Nginx:
systemctl restart nginx
- Check your Nginx GeOrchestra config (typically in
Verify database connectivity
GeOrchestra relies on PostgreSQL/PostGIS for most services. If the database is down or credentials are invalid, services will fail to start.- Check if PostgreSQL is running:
If it's inactive, start it withsystemctl status postgresqlsystemctl start postgresql. - Test the database connection using GeOrchestra's DB user:
(Replace placeholders with your actual DB credentials—you can find these in your GeOrchestra config files.)psql -U [georchestra-db-user] -d [georchestra-db-name]
- Check if PostgreSQL is running:
Check file system permissions
GeOrchestra's runtime user (oftengeorchestra) needs read/write access to critical directories like logs and cache.
Verify permissions for key directories:ls -ld /var/log/georchestra /var/lib/georchestraIf the owner isn't
georchestra, fix it with:chown -R georchestra:georchestra /var/log/georchestra /var/lib/georchestra
Start with the service status and logs—those will usually point you directly to the root cause (like a failed database connection or a misconfigured service). Once you fix the underlying issue, the maintenance page should disappear automatically.
内容的提问来源于stack exchange,提问作者jean pierre huart

