Saturday, May 9, 2026

Docker application wont start

Today, i faced this issue where the docker app not starting after an upgrade from the TrueNAS GUI. Here are my findings and how i resolve this.  

I found out that there were cases documented where docker app wont start after restart or upgrade. This is caused by lock file due to improper shutdown, crash or container restart. 

My first checking on the logs shows me this. 

root@truenas[/home/admin]# docker ps |grep qbittorrent
40374294f805 ghcr.io/home-operations/qbittorrent:5.2.0 "/usr/bin/catatonit …" About a minute ago Restarting (0) 23 seconds ago ix-qbittorrent-qbittorrent-1root@truenas[/home/admin]#
root@truenas[/home/admin]# docker logs ix-qbittorrent-qbittorrent-1
(N) 2026-05-09T19:14:12 - qBittorrent v5.2.0 started. Process ID: 7
(N) 2026-05-09T19:14:12 - Using config directory: /config/qBittorrent
Another qBittorrent instance is already running.
QFile::at: Cannot set file position 0
(N) 2026-05-09T19:14:12 - qBittorrent termination initiated
(N) 2026-05-09T19:14:12 - qBittorrent is now ready to exit
QFile::at: Cannot set file position 0


On the config directory i can see a file called lockfile. So the next step is to remove it. 

Common filenames usualy in cases like this:
-  lockfile
-  .lock

After removal, the docker app should be able to be restarted again. 

root@truenas[...rustpool/apps/qbittorrent/qBittorrent]# ls -la
total 166
drwxrwx--- 6 apps root 19 May 3 23:51 .
drwxrwx--- 5 root root 6 Nov 25 17:01 ..
drwxrwx--- 2 apps root 55 May 3 23:57 BT_backup
drwxrwx--- 2 apps root 3 Apr 9 16:41 GeoDB
-rwxrwx--- 1 apps apps 196 Nov 10 2024 categories.json
srwx------ 1 apps root 0 Apr 29 23:57 ipc-socket
-rwxrwx--- 1 apps root 0 Apr 29 23:57 lockfile
drwxrwx--- 2 apps root 3 May 9 19:17 logs
-rwxrwx--- 1 apps apps 204 May 3 23:51 qBittorrent-data.conf
-rwxrwx--- 1 apps apps 198 Oct 19 2024 qBittorrent-data.conf.NHfgQe
-rwxrwx--- 1 apps apps 204 Oct 20 2024 qBittorrent-data.conf.XFGlin
-rwxrwx--- 1 apps apps 200 Oct 20 2024 qBittorrent-data.conf.cqdiMt
-rwxrwx--- 1 apps apps 195 Oct 30 2024 qBittorrent-data.conf.fzRwhK
-rwxrwx--- 1 apps apps 201 Oct 19 2024 qBittorrent-data.conf.lfVdGk
-rwxrwx--- 1 apps apps 204 Nov 25 2024 qBittorrent-data.conf.sFSjsy
-rwxrwx--- 1 apps apps 201 Oct 14 2024 qBittorrent-data.conf.xyOxra
-rwxrwx--- 1 apps apps 8653 Apr 29 23:56 qBittorrent.conf
drwxrwx--- 3 apps root 5 Apr 29 23:57 rss
-rwxrwx--- 1 apps apps 4 Aug 22 2024 watched_folders.json
root@truenas[...rustpool/apps/qbittorrent/qBittorrent]# rm -f lockfile


Wednesday, December 18, 2024

EqualLogic commands

diag

grpparams show 

grpparams ftp-service enable 

grpparams ftp-service disable 


member select TOREQPNAST1 show enclosure

member select *membername* show disk - show disk status

member select *membername* show enclosure - show temperature, power supply status etc

member select *membername* show controller - show which controller active passive or failed

member select *membername* show - show everything in general including copy to spare %

account select grpadmin passwd - to change password for grpadmin


S3BEQPX13GRP4(member_S3BEQPX13GRP4T2 eth_0)> show --show eth0 mac adress


---------------------------------------------

Check power cmd

Monday, 23 October, 2023
7:56 PM

vPOD60-FARM4GRP1> member select vPOD60-FARM4GRP1T0 show enc
 
 
_____________________________ Temperature Sensors _____________________________
 
Name                                Value     Normal Range    Status
----------------------------------- --------- --------------- ---------------
Backplane sensor 0                  26        2-45            normal
Backplane sensor 1                  27        2-45            normal
Control module 0 processor          49        10-90           normal
Control module 0 chipset            37        10-70           normal
Control module 1 processor          47        10-90           normal
Control module 1 chipset            33        10-70           normal
Control module 0 SAS Controller     51        10-110          normal
Control module 1 SAS Controller     49        10-110          normal
Control module 0 Battery            28        -5-58           normal
Control module 1 Battery            27        -5-58           normal
 
 
____________________________________ Fans _____________________________________
 
Name                           Speed     Normal Range    Status
------------------------------ --------- --------------- ---------------
Power Cooling Module 0 Fan 0   6270      3500-13500      normal
Power Cooling Module 0 Fan 1   6200      3500-13500      normal
Power Cooling Module 1 Fan 0   6270      3500-13500      normal
Power Cooling Module 1 Fan 1   6270      3500-13500      normal
 
 
_______________________________ Power Supplies ________________________________
 
Name                                     Status   FanStatus       Fw Rev
---------------------------------------- -------- --------------- --------
Power Cooling Module 0                   on       fan-present     00.03.13
Power Cooling Module 1                   on       fan-present     00.03.13

VNX quick commands

Check Faults

[nasadmin@vnx02 ~]$ /nas/sbin/navicli -h spa Faults -list

The array is operating normally.

 

[nasadmin@vnx02c01 ~]$ /nas/sbin/navicli -h spb Faults -list

The array is operating normally.


Collect logs
[nasadmin@vnx02c01 ~]$ /nas/sbin/navicli -h spa spcollect
 
[nasadmin@vnx02c01 ~]$ /nas/sbin/navicli -h spb spcollect


how to get sp collect on VNX

[nasadmin@SYSTEM_NAME ~]$ cd /nas/tools/
[nasadmin@SYSTEM_NAME tools]$ ./.get_spcollect

This script runs spcollect on the storage
Once done can use winscp, copy to laptop
 
how to run support material
/nas/tools/collect_support_materials -getsp
 

Below is the procedure to collect support materials:
1. Login to control station using putty or terminal
2. [nasadmin@ ~]$ cd /nas/tools
3. [nasadmin@ tools]$ ./collect_support_materials
4. [nasadmin@ ~]$ cd /nas/var/emcsupport (location where the support materials are collected)
5. [nasadmin@ emcsupport]$ ll
Attach the latest set of support materials to the service request.

Brocade Quick Command

RECON WORK

#mapsdb --show

#switchshow


CLEAR

#statsclear

#slotstatsclear