rs1001 wrote: ↑Thu May 06, 2021 3:36 pm
Restarted twice and ALL my qpkg's are gone on the QTS "App Centre" interface!
It sounds like [/etc/config/qpkg.conf] is empty or incomplete. If so, you should be able to restore an older version from the automated backup QTS performs each Wednesday at 3:04am: viewtopic.php?p=643513#p643513
rs1001 wrote: ↑Thu May 06, 2021 5:34 pm
[/share/CACHEDEV1_DATA/.qpkg/COPS] # Usage: ./COPS.sh {start|stop|restart}
./COPS.sh start
COPS is disabled.
QTS won't allow you to 'start' a package that is disabled. So, the package must be enabled first:
I wrote an .sh script to start two Docker containers with specific Options.
The Script works, when ist start it with bash in ssh.
RunLast sent this log:
RunLast (20210328)
[Wed Aug 4 11:32:43 CEST 2021] begin "start" scripts ...
[Wed Aug 4 11:32:43 CEST 2021] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh'" ...
[Wed Aug 4 11:32:43 CEST 2021] => exitcode: (0)
[Wed Aug 4 11:32:43 CEST 2021] => stderr: "/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh: line 2: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh: line 3: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh: line 4: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh: line 7: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh: line 8: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/Docker_start.sh: line 10: docker: command not found"
[Wed Aug 4 11:32:43 CEST 2021] end "start" scripts
────────────────────────────────────────────────────────
So it seems, that the script works, but RunLast call the script befor Qnap starts the Docker enviroment.
What can i do, that RunLast Call the script after Docker/ Container Station run?
Isn’t docker a qpkg? If so wouldn’t using sortmyqpkgs work?
Use the forum search feature before posting.
Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.
NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5 Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
Don wrote: ↑Thu Aug 05, 2021 10:49 am
Isn’t docker a qpkg? If so wouldn’t using sortmyqpkgs work?
Yes, Container Station is a QPKG, and it's being sorted correctly. RunLast does a similar order re-shuffling operation to SortMyQPKGs, except that it only ensures RunLast is placed last in [/etc/config/qpkg.conf].
The problem appears to be that QTS launches Container Station, which then releases control back to QTS before Container Station has finished starting its containers. Container Station isn't waiting for all containers to load, so it ends-up doing this in-parallel while loading any QPKGs listed after Container Station in [qpkg.conf].
RunLast (20210328)
[Fri Aug 6 12:45:38 CEST 2021] begin "start" scripts ...
[Fri Aug 6 12:45:38 CEST 2021] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/01_SLEEP.sh'" ...
[Fri Aug 6 12:50:38 CEST 2021] => exitcode: (0)
[Fri Aug 6 12:50:38 CEST 2021] => stdout: "Sleep Script Start
Sleep Script end"
[Fri Aug 6 12:50:38 CEST 2021] => stderr: ""
[Fri Aug 6 12:50:38 CEST 2021] -> execute: "'/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh'" ...
[Fri Aug 6 12:50:38 CEST 2021] => exitcode: (0)
[Fri Aug 6 12:50:38 CEST 2021] => stdout: "Docker Script startet
Docker Script beendet"
[Fri Aug 6 12:50:38 CEST 2021] => stderr: "/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh: line 4: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh: line 5: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh: line 6: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh: line 9: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh: line 10: docker: command not found
/share/CACHEDEV1_DATA/.qpkg/RunLast/scripts/02_Docker_start.sh: line 12: docker: command not found"
[Fri Aug 6 12:50:38 CEST 2021] end "start" scripts
Or do I have an error in this file?
02_Docker_start.sh
Your script looks fine (including the hashbang line).
Best-guess: $PATH is being modified after RunLast has started, most likely by Container Station. Which means RunLast won't see the updated $PATH variable, and means the 'docker' command can't be run without specifying the absolute path to the 'docker' executable.
A workaround you could try is to modify your $PATH to include the location of the 'docker' command near the start of your script. Check this with:
Then re-assign $PATH near the beginning of your [02_Docker_start.sh] script and prefix it with the path shown by the previous command. Please advise if you require assistance with this bit.
[RunLast] your SortMyQPKGs version is incompatible with this package
Any ideas?
What version of each are you running (please don't say the latest)?
Use the forum search feature before posting.
Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.
NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5 Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
Oops! I see the problem. RunLast checks its own version against that of SortMyQPKGs. It does this by evaluating both versions as integers. When I released that last SortMyQPKGs, I used a 'c' character - which then breaks the integer evaluation in RunLast.
I'll update RunLast so it only checks the datecode part of the version number. This new version will be released shortly.