iOS Troubleshooting
Troubleshoot common CMDOP iOS app issues including connection failures, authentication errors, file transfer problems, push notification issues, and performance concerns. Solutions cover network configuration, token re-registration, file size limits (100MB max), background app refresh settings, and error code reference for quick diagnosis.
Common issues and solutions for the CMDOP iOS app.
What are common connection issues?
How do I fix a βConnection Refusedβ error?
Symptoms:
- App shows βConnection failedβ
- Terminal wonβt connect
Solutions:
-
Check internet connection
- Try opening Safari
- Switch between WiFi and cellular
-
Verify agent is online
- Check web dashboard
- Run
cmdop statuson target machine
-
Restart the app
- Swipe up to close
- Reopen the app
Why does my connection drop frequently?
Symptoms:
- Terminal disconnects randomly
- Status shows βReconnectingβ¦β
Causes:
- Unstable network (cellular roaming)
- Low Data Mode enabled
- Background App Refresh disabled
Solutions:
-
Disable Low Data Mode
- Settings > Cellular > Cellular Data Options
- Turn off Low Data Mode
-
Enable Background App Refresh
- Settings > General > Background App Refresh
- Enable for CMDOP
-
Use WiFi when possible
Why is my session stuck in GRACE_PERIOD?
Symptoms:
- Session shows βGRACE_PERIODβ status
- Cannot reconnect
Explanation:
The 30-second grace period allows reconnection after network issues. If you see this:
- Wait 30 seconds
- Try reconnecting
- If stuck, the session may have closed
Solutions:
- Check target machine is online
- Create new session
How do I fix authentication issues?
How do I fix an βInvalid Tokenβ error?
Symptoms:
- App logs out unexpectedly
- βAuthentication failedβ message
Causes:
- Token expired
- Password changed on web
- Session revoked
Solutions:
-
Re-login
- Tap βSign Outβ
- Sign in again
-
Check account status
- Try logging in on web dashboard
- Verify account is active
Why is Face ID not working?
Symptoms:
- Face ID prompt doesnβt appear
- App doesnβt recognize face
Solutions:
-
Check Face ID settings
- Settings > Face ID & Passcode
- Ensure Face ID is set up
-
Re-enable in app
- Settings > Security
- Toggle βRequire Face IDβ off then on
-
Reset Face ID
- Settings > Face ID & Passcode
- Reset Face ID and set up again
Why am I getting βWorkspace Access Deniedβ?
Symptoms:
- βPermission deniedβ on certain machines
- Empty machine list
Solutions:
-
Verify workspace membership
- Check web dashboard
- Contact workspace admin
-
Switch workspace
- Settings > Workspace
- Select correct workspace
How do I fix file transfer issues?
How do I fix βFile Too Largeβ errors?
Cause: iOS app has 100MB file size limit.
Solutions:
-
Split large files
# On server, split file into 90MB chunks split -b 90M largefile.tar.gz part_ -
Use compression
# Compress a directory into a .tar.gz archive tar -czf archive.tar.gz directory/ -
Use CLI for large transfers
Why do I get βAccess Deniedβ on a path?
Cause: Path contains blocked pattern.
Blocked patterns:
.ssh,.gnupg,.aws.env,credentials,secrets
Solutions:
- Copy file to allowed path first
- Use CLI instead
How do I fix βOutside Sandboxβ errors?
Cause: Trying to access absolute path.
Solutions:
Use relative paths from ~:
~/Documents/file.txt~/Caches/temp.dat
Why is my transfer stuck at 0%?
Solutions:
-
Check network
- Switch between WiFi and cellular
- Try downloading smaller file first
-
Restart transfer
- Cancel current transfer
- Start again
-
Check storage space
- Settings > General > iPhone Storage
How do I fix push notification issues?
Why am I not receiving push notifications?
Symptoms:
- No wake notifications
- No alerts
Solutions:
-
Check notification settings
- Settings > Notifications > CMDOP
- Enable all notification types
-
Check Focus mode
- Disable Do Not Disturb
- Add CMDOP to allowed apps
-
Re-register push token
- Sign out and sign in again
Why is push wake not working?
Symptoms:
- Push received but app doesnβt wake
Causes:
- iOS restrictions on background execution
- Battery optimization
Solutions:
- Disable Low Power Mode
- Keep app recently used
- Wait up to 30 seconds for wake
How do I fix performance issues?
Why is the app draining my battery?
Cause: Frequent background refresh.
Solutions:
-
Reduce refresh frequency
- The app refreshes every 15 minutes minimum
- This is the iOS minimum
-
Disconnect unused sessions
-
Disable Live Activities
- Settings > Security > Live Activities
Why is the terminal response slow?
Causes:
- Network latency
- Server load
Solutions:
-
Check network quality
- Run speed test
- Try different network
-
Check server load
# Check server load average and uptime uptime
How do I reduce high memory usage?
Solutions:
- Close unused sessions
- Restart the app
- Update to latest version
What do the error codes mean?
| Code | Meaning | Solution |
|---|---|---|
FILE_TOO_LARGE | File exceeds 100MB | Split or compress file |
ACCESS_DENIED | Blocked path pattern | Use allowed path |
OUTSIDE_SANDBOX | Absolute path used | Use ~/Documents prefix |
PICKER_REQUIRED | External file access | Use Document Picker |
IOS_SANDBOX_ONLY | iOS limitation | Use CLI for this operation |
authenticationFailed | Token invalid | Re-login |
How do I debug the app?
How do I view app logs?
For development builds:
- Connect iPhone to Mac
- Open Console.app
- Select your device
- Filter by βCMDOPβ
How do I test background tasks?
For developers testing background tasks:
# In LLDB, simulate a background refresh task launch
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"com.cmdop.mobile.refresh"]
# Simulate task expiration to test cleanup behavior
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateExpirationForTaskWithIdentifier:@"com.cmdop.mobile.refresh"]How do I debug network issues?
Enable network logging:
- Settings > Debug (if available)
- Enable verbose logging
- Reproduce issue
- Export logs
Where can I get help?
If issues persist:
- Check status page: status.cmdop.com
- Community: discord.gg/cmdop
- Support: [email protected]
Include:
- App version (Settings > About)
- iOS version
- Device model
- Error message or screenshot
- Steps to reproduce