Corrupted install on a synology after a power outage

The ps aux | grep 6266 got me:
mark 9262 0.0 0.0 23244 2240 pts/0 S+ 16:52 0:00 grep --color=auto 6266

the find /var/packages/ChannelsDVR | grep start-stop-status got me:
/var/packages/ChannelsDVR/scripts/start-stop-status
the sudo synopkg restart ChannelsDVR got me:
Failed to restart package [ChannelsDVR], err=[0]

sh -x /var/packages/ChannelsDVR/scripts/start-stop-status start

+ set -e
+ APP_NAME=ChannelsDVR
+ APP_DIR=/var/packages/ChannelsDVR/target
+ PID_FILE=/var/packages/ChannelsDVR/var/ChannelsDVR.pid
+ '[' -d /volume1/ChannelsDVR ']'
+ export CHANNELS_DVR_DEFAULT_PATH=/volume1/ChannelsDVR
+ CHANNELS_DVR_DEFAULT_PATH=/volume1/ChannelsDVR
+ cd /var/packages/ChannelsDVR/target/channels-dvr/data
+ case "$1" in
++ cat /var/packages/ChannelsDVR/var/ChannelsDVR.pid
++ pidof channels-dvr
+ '[' -f /var/packages/ChannelsDVR/var/ChannelsDVR.pid -a '' = '' ']'
+ echo 'ChannelsDVR is already running.'
/var/packages/ChannelsDVR/scripts/start-stop-status: line 16: $SYNOPKG_TEMP_LOGFILE: ambiguous redirect

interesting.

try:

rm -f /var/packages/ChannelsDVR/var/ChannelsDVR.pid
sudo synopkg start ChannelsDVR

rm: cannot remove '/var/packages/ChannelsDVR/var/ChannelsDVR.pid': Permission denied

I did it with Sudo... the I did the next command and got:
{"action":"start","beta":false,"error":{"code":0},"finished":true,"language":"enu","last_stage":"started","package":"ChannelsDVR","pid":15273,"scripts":[{"code":0,"message":"","type":"start"}],"stage":"started","status":"running","success":true,"username":"","version":"1.1.0"}

Try with sudo

sudo rm -f /var/packages/ChannelsDVR/var/ChannelsDVR.pid

1 Like

I did it with Sudo... then I did the next command and got:
{"action":"start","beta":false,"error":{"code":0},"finished":true,"language":"enu","last_stage":"started","package":"ChannelsDVR","pid":15273,"scripts":[{"code":0,"message":"","type":"start"}],"stage":"started","status":"running","success":true,"username":"","version":"1.1.0"}

there you go its running now

1 Like

all that over one file - was it the install package that created it?

When you start it creates that file. I'm not sure how it ended up empty for you, probably due to the power outage.

Our start script can be smarter about ignoring empty files instead of getting confused and thinking the dvr was running.

I uninstalled, cleaned out everything about Channels on my system and installed well over 20 times, perhaps its a conflict with DM7.1.1 and the latest install?

it's just a bug, a rare and particularly frustrating one

we'll make some changes to the SPK so it doesn't happen

I'm just glad you are so responsive and I'm quite thankful for it at that. Ultimately, my fault for not letting my battery recharge enough!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.