Q2G Issues
Cannot Connect to GeoServer
Error: "Connection refused" or "Unable to connect"
Causes:
- GeoServer is not running
- Incorrect GeoServer URL
- Network connectivity issues
- Firewall blocking connection
Solutions:
- Verify GeoServer is running:
http://localhost:8080/geoserver/web/
- Check the GeoServer URL in Q2G
- Verify network connectivity to the server
- Check firewall rules allow port 8080
- Try using the IP address instead of hostname
Authentication Failed
Error: "Authentication failed" or "Unauthorized"
Causes:
- Incorrect username or password
- User doesn't have admin privileges
- User account is disabled
Solutions:
- Verify username and password are correct
- Check if the user has admin role in GeoServer
- Try logging in to GeoServer web interface directly
- Reset the password if needed
- Check if the user account is active
Connection Timeout
Error: "Connection timeout" or "Request timed out"
Causes:
- GeoServer is slow to respond
- Network latency is high
- GeoServer is overloaded
Solutions:
- Check your internet connection speed
- Try again later if GeoServer is busy
- Check GeoServer logs for errors
- Increase timeout values if possible
- Try uploading smaller files
Upload Issues
Layer Already Exists
Error: "Layer already exists" or "Datastore already exists"
Causes:
- Layer with same name already on GeoServer
- Auto-Overwrite option is disabled
Solutions:
- Enable "Auto-Overwrite" option to replace existing layer
- Rename the layer in QGIS
- Delete the existing layer on GeoServer first
- Use a different workspace
Invalid CRS
Error: "Invalid CRS" or "No CRS defined"
Causes:
- Layer doesn't have a CRS defined
- CRS is invalid or corrupted
Solutions:
- Right-click layer in QGIS → Set Layer CRS
- Choose the correct CRS for your data
- Verify the CRS is valid
- Try re-projecting the layer
File Too Large
Error: "File too large" or "Upload failed"
Causes:
- File exceeds GeoServer upload limit
- Not enough disk space on GeoServer
Solutions:
- Split large files into smaller chunks
- Compress the file (use GeoPackage instead of Shapefile)
- Increase GeoServer upload limit
- Free up disk space on GeoServer
- Upload to a different GeoServer instance
Invalid Geometry
Error: "Invalid geometry" or "Geometry error"
Causes:
- Layer contains invalid geometries
- Self-intersecting polygons
- Duplicate vertices
Solutions:
- Use Vector → Geometry Tools → Fix Geometries
- Check for topology errors
- Remove invalid features
- Re-export the layer
Style Issues
Style Not Applied
Error: "Style not applied" or "Default style shown"
Causes:
- Style upload failed
- Style not associated with layer
- Style name mismatch
Solutions:
- Check upload log for style errors
- Try uploading the style again
- Verify the style exists on GeoServer
- Check if the style is associated with the layer
- Manually associate the style in GeoServer
Style Looks Different
Issue: "Style renders differently on GeoServer"
Causes:
- QGIS style features not supported in SLD
- Color space differences
- Font availability differences
Solutions:
- Simplify the QGIS style
- Use standard fonts available on GeoServer
- Test the style in a web browser
- Manually edit the SLD on GeoServer
- Use basic colors and symbols
SLD Export Error
Error: "Failed to export SLD" or "SLD generation error"
Causes:
- Complex layer style
- Missing layer properties
- Unsupported style features
Solutions:
- Simplify the layer style
- Remove complex effects
- Check layer CRS and geometry
- Try with a basic single-symbol style
Workspace Issues
Cannot Create Workspace
Error: "Failed to create workspace"
Causes:
- Workspace name already exists
- Invalid workspace name
- Permission denied
Solutions:
- Use a unique workspace name
- Use only alphanumeric characters and underscores
- Verify you have admin permissions
- Check GeoServer logs for errors
Workspace Not Appearing
Issue: "Created workspace not showing in list"
Causes:
- Workspace list not refreshed
- Workspace creation failed silently
Solutions:
- Click "Refresh" button to reload workspace list
- Check GeoServer web interface for workspace
- Try creating the workspace again
PostGIS Issues
PostGIS Connection Failed
Error: "Cannot connect to PostGIS" or "Database connection failed"
Causes:
- Database server not running
- Incorrect connection parameters
- Database doesn't exist
- User doesn't have permissions
Solutions:
- Verify PostgreSQL is running
- Check connection parameters (host, port, database, user)
- Verify database exists
- Check user has SELECT permissions
- Test connection using psql command line
PostGIS Layer Not Found
Error: "PostGIS layer not found" or "Table doesn't exist"
Causes:
- Table doesn't exist in database
- Table name is incorrect
- User doesn't have access to table
Solutions:
- Verify table exists in database
- Check table name spelling
- Verify user has SELECT permissions on table
- Check if table has geometry column
Performance Issues
Slow Upload Speed
Issue: "Upload is very slow"
Causes:
- Large file size
- Slow network connection
- GeoServer is busy
Solutions:
- Split large files into smaller chunks
- Check internet connection speed
- Upload during off-peak hours
- Reduce file size by filtering data
Plugin Freezes
Issue: "Q2G becomes unresponsive"
Causes:
- Large file processing
- Network timeout
- Memory issues
Solutions:
- Wait for operation to complete
- Close other applications to free memory
- Restart QGIS if it remains frozen
- Try uploading smaller files
Getting Help
Checking Logs
When troubleshooting, check the upload log:
- Look for error messages (red text)
- Check for warning messages (orange text)
- Review debug messages (blue text)
- Copy the log for reference
GeoServer Logs
For server-side errors, check GeoServer logs:
- Go to GeoServer web interface
- Navigate to About → Logs
- Look for error messages
- Check timestamps match your upload time
QGIS Logs
For QGIS-related errors:
- Go to Help → Log Messages
- Look for Q2G messages
- Check for Python errors
Common Error Messages
| Error Message | Meaning | Solution |
|---|---|---|
| Connection refused | Cannot reach GeoServer | Check GeoServer is running and URL is correct |
| Unauthorized | Authentication failed | Check username and password |
| Layer exists | Layer already on GeoServer | Enable Auto-Overwrite or rename layer |
| Invalid CRS | Layer has no CRS | Set layer CRS in QGIS |
| File not found | Source file missing | Check file path and permissions |
Next Steps
- Configuration - Verify your settings
- Layer Upload - Try uploading again
- FAQ - Check frequently asked questions