A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814
Ik ken de software verder niet, maar het ziet er uit als een klein bugje.
Is stap 3 wel gelukt? Als dat werkt heb je het moeilijkste deel gehad.
Op grond van die foutmelding lijkt het alsof er rond regel 20 iets fout gaat in dat script.
Ik denk dat je een fout hebt gemaakt in APP_PATH:
Is stap 3 wel gelukt? Als dat werkt heb je het moeilijkste deel gehad.
Op grond van die foutmelding lijkt het alsof er rond regel 20 iets fout gaat in dat script.
Ik denk dat je een fout hebt gemaakt in APP_PATH:
Je zou nog kunnen proberen om het script in debug-modus te draaien:Make sure you set the APP_PATH to where you've got Couch Potato running (/opt/couchpotato in our case), and the RUN_AS to the dedicated user we've created (ie, couchpotato).
code:
1
| bash -x /etc/init.d/couchpotato start |
This post is warranted for the full amount you paid me for it.
Stap 3 was gelukt, dat is het vreemde...
Krijg na debug command:
Krijg na debug command:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| + APP_PATH=/opt/couchpotato/ + couchpotato /etc/init.d/couchpotato: line 20: couchpotato: command not found + DAEMON=/usr/bin/python + PID_FILE=/var/run/couchpotato/server.pid ++ dirname /var/run/couchpotato/server.pid + PID_PATH=/var/run/couchpotato + NAME=couchpotato + DESC=CouchPotato + DAEMON_OPTS=' CouchPotato.py --daemon --pid_file=/var/run/couchpotato/server.p id' + test -x /usr/bin/python + set -e + case "$1" in + echo 'Starting CouchPotato' Starting CouchPotato + rm -rf /var/run/couchpotato + install -d --mode=0755 -o /var/run/couchpotato install: missing file operand Try `install --help' for more information. + return 1 /etc/init.d/couchpotato: line 48: return: can only `return' from a function or sourced script |
A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814
Open script /etc/init.d/couchpotato met een teksteditor en kijk wat er op regel 20 staat.
Zo te zien heb je CP niet in de juiste directory geïnstalleerd. Daar zijn (minstens) 2 oplossingen voor:
Zo te zien heb je CP niet in de juiste directory geïnstalleerd. Daar zijn (minstens) 2 oplossingen voor:
- Zet CP in de directory die in het startup-script wordt aangegeven
- Wijzig in het startup-script de app-directory in waar CP door jou is neergezet
Was een ander probleem, gister opgelost. Ik had de variable RUN_AS weggehaald (ipv root aan te passen in de user had ik de regel verwijderd en alleen username neergezet
)
A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814