21. Logging and Troubleshooting

Logs: /usr/share/SFS/logs/ (organized by year/month/job). Collect logs via Web UI Admin tab for vendor support.

Common Scenarios:

Tape Not Recognized: Run sudo ./NxScsi -u to rescan devices. Check /usr/share/SFS/logs/NxScsi.log for errors. Verify SCSI cabling and power.

Job Stuck in Queue: Use Web UI or NxQueue to inspect job status. Check /usr/share/SFS/logs/NxQueue.log. Restart NxQueue service if necessary.

Database Connection Issues: Verify /usr/share/SFS/connectionInfo.txt settings. Test MySQL connectivity with mysql -u sfs -p sfs_database. Check /usr/share/SFS/logs/NxCore.log for DB errors.

Watch Logs: journalctl -u <servicename> -f  

                Example: journalctl -u

Each of the SFArchive binaries can be run my command line and then you are able to watch the log as you rerun the item that caused the issue. This will generate logs for review.

Example:

/usr/share/SFS/bin/NxQueue/NxQueue

/usr/share/SFS/bin/NxChanger/NxChanger

/usr/share/SFS/bin/NxScsi/NxScsi

Tips: Always check the logs first. Most issues are logged with detailed error messages.