[OMV/Debian]Couchpotato als service lukt niet

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • Roeligan
  • Registratie: December 2001
  • Laatst online: 03-06 10:36
Had OMV installed met couchpotato (v1) nu wilde ik v2 installen en volgde de install methode die hier beschreven wordt.

Zodra ik update-rc.d couchpotato defaults run krijg ik de melding "update-rc.d: using dependency based boot sequencing"

Als ik de service wil starten in /etc/init.d/ met ./couchpotato start krijg ik de melding: "./couchpotato: 20: couchpotato: not found
Starting CouchPotato
install: missing file operand
Try `install --help' for more information."

Iemand een idee? (google, debian, omv en couchpotato forum boden geen handsvat)

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


Acties:
  • 0 Henk 'm!

  • CAPSLOCK2000
  • Registratie: Februari 2003
  • Laatst online: 16-07 10:55

CAPSLOCK2000

zie teletekst pagina 888

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:
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).
Je zou nog kunnen proberen om het script in debug-modus te draaien:
code:
1
bash -x /etc/init.d/couchpotato start

This post is warranted for the full amount you paid me for it.


Acties:
  • 0 Henk 'm!

  • Roeligan
  • Registratie: December 2001
  • Laatst online: 03-06 10:36
Stap 3 was gelukt, dat is het vreemde...

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


Acties:
  • 0 Henk 'm!

  • sam.vimes
  • Registratie: Januari 2007
  • Laatst online: 08-06 08:44
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:
  1. Zet CP in de directory die in het startup-script wordt aangegeven
  2. Wijzig in het startup-script de app-directory in waar CP door jou is neergezet

Acties:
  • 0 Henk 'm!

  • Roeligan
  • Registratie: December 2001
  • Laatst online: 03-06 10:36
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