mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
2.5 KiB
2.5 KiB
| title | sidebar_position | description |
|---|---|---|
| Troubleshooting | 2 | Common problem diagnosis and solutions |
Troubleshooting
Service Cannot Start
Checklist
- Check container status:
docker compose ps - View service logs:
docker compose logs <service> - Verify environment variables: Check
.env.releaseconfiguration - Check port occupancy:
netstat -tlnp
Common Causes
- Port occupied
- Database connection failed
- Redis connection failed
- Environment variables missing
PostgreSQL container fails to start with operation not permitted (cannot write postmaster.pid / pg_wal)
SkillHub's default Compose / runtime.sh deployment uses a Docker named volume (postgres_data), so you normally do not need to manage host directory permissions manually. This error is more common after changing PostgreSQL storage to a host bind mount, for example /data/skillhub/postgres:/var/lib/postgresql/data.
Recommended checks:
- Prefer switching back to a Docker named volume, or use the official
runtime.shdeployment script to avoid permission gaps from hand-written compose files. - If you must use a bind mount, first check the
postgresUID/GID in the image you run:docker run --rm postgres:16-alpine id postgres. Then change the data directory owner to the actual UID/GID, for examplechown -R <uid>:<gid> <data-dir>. Do not assume every environment is999:999. - On RHEL/CentOS, check SELinux. If AppArmor, rootless Docker, NFS/CIFS/NAS, or another restricted filesystem is involved, also verify that PostgreSQL can write, lock files, and change permissions as required.
- Avoid putting PostgreSQL
PGDATAon network filesystems that do not provide full POSIX permission semantics. For production, prefer local disks, Docker named volumes, block storage, or an external PostgreSQL service.
Upload Failed
Skill Package Upload Failed
- Check file size
- Check file type
- Check SKILL.md format
- View server logs
Authentication Issues
Cannot Login
- Check OAuth configuration
- Check callback URL configuration
- Check
SKILLHUB_PUBLIC_BASE_URLconfiguration
Performance Issues
Slow Search
- Check PostgreSQL full-text index
- Consider upgrading to Elasticsearch (future version)
Slow Download
- Check object storage configuration
- Check network bandwidth
Get Help
If above solutions cannot resolve the issue:
- View logs
- Submit Issue
- Contact technical support
Next Steps
- Changelog - Version history