- Verify GitHub SSH key is properly added
- Check user has correct repository permissions
- Ensure key is synced to authorized_keys
sh: internal-sftp: unknown operand
sh: /usr/lib/ssh/sftp-server: unknown operand
Solution:
- Container needs openssh-sftp-server package
- Check container OS type in logs
- Contact administrator to add SFTP support
Error from server (NotFound): pods "www-myapp-com" not found
Solution:
- Verify pod exists in correct namespace
- Check connection string format
- Ensure proper Kubernetes permissions
-
SSH/SFTP sessions:
/var/log/sshd.log# View connection attempts tail -f /var/log/sshd.log # Example log entry: # [2025-01-07 19:42:27] SFTP connection attempt from [192.168.1.100] for user [www-myapp-com] to pod [production/www-myapp-com-a1b2c3]
-
Service logs:
# View all services and their status worker service list # View specific service logs worker service logs sshd # SSH daemon logs worker service logs rabbit-ssh-server # API server logs worker service logs k8s-setup # Kubernetes setup logs worker service logs firebase-consume # Firebase watcher logs
- Connection attempts (successful/failed)
- SFTP server availability
- Container OS detection
- Error messages and reasons
- Client IP addresses
- User and pod information
# Verify key permissions
ls -la /etc/ssh/ssh_host_*
# Check authorized_keys
ls -la /etc/ssh/authorized_keys.d/# Check SSHD config
sshd -T | grep -E 'passwordauthentication|permitrootlogin|subsystem'k8s-setup BACKOFF Exited too quickly
Solution:
- Check required Kubernetes environment variables are set (see Environment Variables)
- Verify service account permissions
firebase-consume BACKOFF Exited too quickly
Solution:
- Check required Firebase environment variables are set (see Environment Variables)
- Verify Firebase service account permissions
- Check Firebase project access
To check the status and logs of any service:
# Check all services
worker service list
# View specific service logs
worker service logs <service-name>If you encounter memory issues or need to clean up stale container data:
# Flush container data (requires admin access)
curl -X DELETE http://localhost:8080/flushFirebaseContainers
# Example response:
{
"ok": true,
"message": "Successfully flushed container data",
"removedCount": 42
}This operation:
- Removes all container data from Firebase
- Triggers automatic container re-sync
- Resolves memory-related issues
- Logs all operations for audit
- Pod name and namespace
- SSH client version
- Contents of /var/log/sshd.log
- Client IP address
- GitHub username
- Output of
worker service list