QNAP x86 Server - problems restarting the NAS

I run this brilliant software on a QNAP TS-851, based on x86 CPU.
My unit has a daily reboot scheduled, and everything starts fine except the URB process.
To make it work I have to manually restart the tool alone…
I think there is a problem with some dependency (e.g. TCP)…

Can you help me?

sudo journalctl -u urbackupsrv.service -e after reboot?

sudo journalctl -b -p3 --catalog --no-pager | grep urbackup after reboot could probably also give you some more info.

Or shutdown logs maybe:
sudo journalctl --boot=-1 -p3 --catalog --no-pager | grep urbackup

HI,
Thank you for your answer.
However QNAP has a proprietary version of linux where the “journalctl” is not present.

[~] # uname -a
Linux Nas851 5.10.60-qnap #1 SMP Tue Sep 26 01:43:23 CST 2023 x86_64 GNU/Linux

*[~] # cat /etc/release
NAME=“QTS”
VERSION=“5.1.1 (20230815)”
ID=qts
PRETTY_NAME=“QTS 5.1.1 (20230815)”
VERSION_ID=“5.1.1”

[~] # dmesg | grep -i “linux version” | head -1
[ 0.000000] Linux version 5.10.60-qnap (root@U16BuildServer172) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld (GNU Binutils) 2.25) #1 SMP Tue Sep 26 01:43:23 CST 2023

[~] # cat /proc/version
Linux version 5.10.60-qnap (root@U16BuildServer172) (x86_64-QNAP-linux-gnu-gcc (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21]) 4.9.2, GNU ld (GNU Binutils) 2.25) #1 SMP Tue Sep 26 01:43:23 CST 2023

can you help me anyway?

Sorry, I have zero knowledge about QNAP, you should probably ask them how to access logs.

Sure, I understand… I’ll take a look at the logs and then the dependencies (I think it depends on this). Thank you very much

Just out of curiosity, how do you start urbackup?
If you don’t have journalctl, one might assume you also don’t have systemd, witch is what urbackup uses to autorun at boot.
If you don’t have that, you have to add it to some other kind of autostart, like init.d or something.

QNAP use the app config file named “qpkg.conf” for starting or stopping the app.

This is the part of config file about “QUrBackup”

[QUrBackup]
Status = complete
Name = QUrBackup
Build = 20230723
Display_Name = UrBackup
Version = 2.5.31.0
Author = QoolBox
QPKG_File = QUrBackup.qpkg
Date = 2023-10-03
Shell = QUrBackup/QUrBackup.sh
Volume_Select = 3
Install_Path = /share/CACHEDEV1_DATA/.qpkg/QUrBackup
WebUI = /
Web_Port = 55414
RC_Number = 114
Visible = 1
Enable = TRUE
FW_Ver_Min = 4.2.5


this is the start-up script:


#!/bin/sh
CONF=/etc/config/qpkg.conf
QPKG_NAME=“QUrBackup”
QPKG_ROOT=/sbin/getcfg $QPKG_NAME Install_Path -f ${CONF}

export QPKG_ROOT QPKG_NAME

export SHELL=/bin/sh
export LC_ALL=en_US.UTF-8
export USER=admin
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8

export PATH=$QPKG_ROOT/bin:$PATH

case “$1” in
start)
ENABLED=$(/sbin/getcfg $QPKG_NAME Enable -u -d FALSE -f $CONF) if [ “$ENABLED” != “TRUE” ]; then
echo “$QPKG_NAME is disabled.”
exit 1
fi

/bin/ln -sf $QPKG_ROOT /opt/QUrBackup

/bin/ln -sf /opt/QUrBackup/bin/urbackupsrv /usr/sbin/urbackupsrv

prepare directory

set custom TMP dir

rm -rf $QPKG_ROOT/TMP
mkdir -p $QPKG_ROOT/TMP
export TMPDIR=$QPKG_ROOT/TMP

set symlink for log file (modificate!!)touch $QPKG_ROOT/urbackup.log

ln -sf $QPKG_ROOT/urbackup.log /var/log/urbackup.log

direcotries prepared

cd $QPKG_ROOT/bin

#$QPKG_ROOT/bin/urbackupsrv --daemon --plugin $QPKG_ROOT/lib/liburbackupserver_cryptoplugin.so --plug>
#./start_urbackup_server &
sleep 15
$QPKG_ROOT/bin/urbackupsrv run -d -u admin -v debug -l $QPKG_ROOT/var/log/urbackup.log

;;

stop)

killall -9 urbackupsrv

rm -rf /opt/QUrBackup
rm -rf /usr/sbin/urbackupsrv
rm -rf $QPKG_ROOT/TMP

rm -rf /var/log/urbackup.log

rm -rf $QPKG_ROOT/var/run/urbackupsrv.pid

;;

restart)
$0 stop
$0 start
;;

*) echo “Usage: $0 {start|stop|restart}”
exit 1
esac

exit 0

Hello all,
I solve with:

SortMyQPKGs is an automated sorter for installed QPKGs to ensure they launch in correct sequence when your NAS next powers-up."

Now work…
best regards

Was there anything else you needed to configure to get this to work? Did you need to install SortMyQPKGs before URBACKUP?
I have been struggling with the same problem. After I installed SortMyQPKGs, URBACKUP did start, and then failed.

No, i have only one problem…

Can you tell me what versions of the software/operating system you have?