Troubleshooting
Common issues and solutions for the Pinner CLI. If you can't find your issue here, run pinner doctor to gather diagnostic information.
Quick Fixes
Authentication Issues
"Not authenticated" error when running commands# Check authentication status
pinner doctorIf you're not authenticated:
# Interactive login
pinner auth --email your@email.com
# Or provide token directly
pinner auth YOUR_API_TOKENYour session token has expired. Re-authenticate:
pinner auth --email your@email.comConnection Issues
"Connection failed" or "Network timeout"- Check your internet connection
- Verify the API endpoint is accessible:
ping pinner.xyz- Check if you're behind a firewall or proxy
- Try with
--secure=falseto use HTTP (not recommended for production):
pinner --secure=false upload myfile.txtFile Issues
"File not found"- Verify the file path is correct
- Check file permissions:
ls -la /path/to/your/file- Use absolute paths:
pinner upload /absolute/path/to/file.txt- Check file ownership:
ls -la /path/to/file- Change permissions if needed:
chmod 644 /path/to/fileAuthentication Errors
Not Authenticated
Cause: No authentication token is configured.
Solution:# Method 1: Interactive login
pinner auth --email your@email.com
# Method 2: Provide token directly
pinner auth YOUR_API_TOKEN
# Method 3: Use environment variables
export PINNER_EMAIL="your@email.com"
export PINNER_PASSWORD="yourpassword"
pinner authPINNER_EMAIL- Email addressPINNER_PASSWORD- PasswordPINNER_OTP- 2FA code (if enabled)PINNER_AUTH_TOKEN- API token (alternative to login)
Registration Issues
"Registration failed"- Verify your email format is correct
- Check password meets requirements (usually 8+ characters)
- Ensure you're not using an already registered email:
pinner register --email new@email.comAfter registration, you must confirm your email:
pinner confirm-email --email your@email.com --token VERIFICATION_TOKENCheck your email for the verification token. If you didn't receive it:
- Check spam folder
- Verify the email address is correct
- Try registering again
Upload Errors
Upload Failed
Cause: The upload operation could not complete.
Solutions:- Check your internet connection
- Verify file is readable:
cat /path/to/file > /dev/null && echo "File is readable"- Try with a smaller file first
- Check available disk space
- Increase memory limit for large files:
pinner upload largefile.dat --memory-limit 1024Upload Interrupted
Cause: Upload was interrupted (Ctrl+C or network issue).
Solution: The CLI supports resume for TUS uploads. Try uploading again:
pinner upload file.dat --waitInvalid CID
Cause: The content identifier (CID) format is invalid.
Solution:- Verify the CID is correct
- CIDs should start with
Qm,bafy, or similar multiformat prefix - Example valid CID:
bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq
Pinning Errors
Pin Not Found
Cause: The specified CID is not pinned in your account.
Solution:- List your pins to verify:
pinner list- Check if the CID is correct
- Pin the content if not already pinned:
pinner pin bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwqPinning Failed
Cause: The pinning operation could not complete.
Solutions:- Verify the CID exists on IPFS
- Check your network connection
- Try again later
- Check pin status:
pinner status bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwqConfiguration Issues
Configuration Not Found
Cause: No configuration file exists.
Solution: Run setup to create configuration:
pinner setupConfiguration is stored at ~/.config/pinner/config.toml (Linux/macOS) or %APPDATA%\pinner\config.toml (Windows).
Configuration Invalid
Cause: Configuration file contains invalid values.
Solution:- Check configuration:
pinner config get- Reset configuration:
pinner setup --reset- Edit config manually or delete and re-run setup
Network Errors
Connection Failed
Cause: Cannot connect to the Pinner API.
Solutions:- Check internet connection:
curl -I https://pinner.xyz- Check firewall/proxy settings
- Try with verbose output:
pinner --verbose upload file.txtNetwork Timeout
Cause: Request timed out.
Solutions:- Try again (may be temporary)
- Use a more stable network connection
- Increase timeout by retrying the operation
Input Validation Errors
Path Required
Cause: No file path provided for upload.
Solution:pinner upload /path/to/file.txtCID Required
Cause: No CID provided for pin/status operations.
Solution:pinner pin bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwqInvalid CID Format
Cause: CID format is not recognized.
Solution:- Verify the CID is correct
- CIDs are case-sensitive
- Example valid CID:
bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq
No CIDs Provided
Cause: No CIDs specified for batch operation.
Solution: Provide CIDs directly or use a file:
# Direct CIDs
pinner pin bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco
# From file (one CID per line)
pinner pin --file cids.txtGetting Help
Run Diagnostics
Use the doctor command to gather diagnostic information:
pinner doctorFor JSON output (useful for bug reports):
pinner doctor --jsonVerbose Output
Enable verbose mode to see detailed logs:
pinner --verbose upload file.txtCheck Configuration
View your current configuration:
pinner config getStill Need Help?
- Run
pinner doctorto gather diagnostic info - Search existing issues
- Open a new issue with:
- Error message
- Steps to reproduce
- Configuration output (
pinner doctor) - Operating system and version
Environment Variables Reference
| Variable | Description |
|---|---|
PINNER_EMAIL | Email for authentication |
PINNER_PASSWORD | Password for authentication |
PINNER_OTP | 2FA code for authentication |
PINNER_AUTH_TOKEN | API token (alternative to login) |
PINNER_SECURE | Use HTTPS (true/false) |
PINNER_MEMORY_LIMIT | Memory limit for CAR generation in MB |
Shell Completion
If shell completion isn't working:
# Setup bash completion
echo 'source <(pinner completion bash)' >> ~/.bashrc
# Setup zsh completion
echo 'source <(pinner completion zsh)' >> ~/.zshrc
# Setup fish completion
pinner completion fish > ~/.config/fish/completions/pinner.fish