Acties:
  • 0 Henk 'm!

  • HyperBart
  • Registratie: Maart 2006
  • Laatst online: 12-09 20:02
Ik bezit al een tijdje een Raspberry Pi. Deze heb ik voorzien van een 2GB SD kaartje met de Debian Squeeze distro die op de site van de R Pi staat...

Ik ben geen "n00b" wat betreft Linux en kan hier en daar al wat commando's uitvoeren en basic dingen opzetten (LAMP-servertje, wat browsen in de dir's, een scriptje fabriceren), maar de opzet van pakketten installeren en alles automatiseren zoals Mar2zz deed met het LaSi.sh script nog niet...

Uiteraard, voor uniformiteit en altijd dezelfde config te hebben, gebruik ik het LaSi.sh script van Mar2zz... Hierbij kom ik eigenlijk wat problemen tegen... Aangezien ik het script net nog getest heb op een full Ubuntu verwacht ik dat het probleem zit in het feit dat ik enkele componenten die essentieel zijn voor het runnen van het script mis op de R Pi Debian distro... Vind ik ook wel een beetje vreemd, wat uit mijn ervaring met Mar2zz weet ik dat hij altijd heel grondig te werk gaat en ik had begrepen dat dat script alle benodigde dependencies en packages zelf ging installeren om als resultaat een werkend programma te hebben...

Volgende output krijg ik na het doorlopen van het question driven script:

Packagelist is up to date
2012-08-10 19:07:51 URL:http://dl.dropbox.com/u/18712538//LaSi_Repo/couchpotato.deb [4566/4566] -> "/tmp/couchpotato.deb" 1
Preparing to replace couchpotato 2012.07.17 (using /tmp/couchpotato.deb) ...
Unpacking replacement couchpotato ...
Setting up couchpotato (2012.07.17) ...
Cloning into /opt/couchpotato...
remote: Counting objects: 9251, done.
remote: Compressing objects: 100% (3028/3028), done.
remote: Total 9251 (delta 6280), reused 9062 (delta 6108)
Receiving objects: 100% (9251/9251), 4.52 MiB | 532 KiB/s, done.
Resolving deltas: 100% (6280/6280), done.
dpkg: error processing couchpotato (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
couchpotato

Solving dependencys...
Reading package lists... Done
Building dependency tree

Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up couchpotato (2012.07.17) ...
fatal: destination path '/opt/couchpotato' already exists and is not an empty directory.
dpkg: error processing couchpotato (--configure):
subprocess installed post-installation script returned error exit status 128
configured to not write apport reports
Errors were encountered while processing:
couchpotato
E: Sub-process /usr/bin/dpkg returned an error code (1)

Failed! Installing CouchPotato didn't finish, try again or:
Copy the text above and report an issue at the following address:
https://github.com/Mar2zz/LaSi/issues

Acties:
  • 0 Henk 'm!

  • lordgandalf
  • Registratie: Februari 2002
  • Laatst online: 05-09 17:55
ik vermoed dat deze regel het probleem is:

fatal: destination path '/opt/couchpotato' already exists and is not an empty directory.

toevallig een oudere versie geinstalleerd staan ?? als ik dit lees lijkt het er wel op:

Preparing to replace couchpotato 2012.07.17 (using /tmp/couchpotato.deb)

Steam: Profile / Socialclub: Profile / Uplay: minedwarf / Origin: lordgandalf3


  • HyperBart
  • Registratie: Maart 2006
  • Laatst online: 12-09 20:02
Die directory heb ik al eens verwijderd... En heb voor zekerheid ook al enkele keren via LaSi CouchPotato verwijderd...

Acties:
  • 0 Henk 'm!

  • Thc_Nbl
  • Registratie: Juli 2001
  • Laatst online: 21-05 22:24
Hoi,

hij staat wel geinstalleerd hoor, alleen is de installer gemaakt voor ubuntu.
Hij blijft aangeven dat hij niet geinstalleerd is, dat kan je als volgt oplossen.

pak je favoriete editor.

en bewerk het bestand /var/lib/dpkg/status

zoek naar couchpotato, er staat nu iets van half-configured.
maak daar installed van.

en klaar ben je.
als je het opstart script open. ( de .init ) die naar /etc/init.d moet.

stop dit boven in het bestand.

### BEGIN INIT INFO
# Provides: couchpotato
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start: $NetworkManager
# Should-Stop: $NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of CouchPotato
# Description: starts instance of CouchPotato using start-stop-daemon
### END INIT INFO


en doe het zelfde met de andere die je via LaSi.sh installeerd.

Als je spotweb installeert, letop ook debian heeft spotweb, maar dan werkt de api niet.
gebruik de lasi.sh versie van spotweb en zet het debian package op hold.
zo: echo "spotweb hold" | dpkg --set-selections

zet dit in je apache config:

<Directory /var/www/spotweb/>
RewriteEngine on
RewriteCond %{REQUEST_URI} !api/
RewriteRule ^api/?$ index.php?page=newznabapi [QSA,L]
Options Indexes FollowSymLinks Multiviews
AllowOverride None
Order allow,deny
allow from all
ExpiresActive On
ExpiresDefault "access plus 4 hours"
ExpiresByType application/javascript A900
ExpiresByType application/x-javascript A900
ExpiresByType text/javascript A900
ExpiresByType text/html A90
ExpiresByType text/xml A90
ExpiresByType text/css A900
ExpiresByType text/plain A62
ExpiresByType image/gif A14400
ExpiresByType image/jpg A14400
ExpiresByType image/jpeg A14400
ExpiresByType image/png A14400
ExpiresByType image/bmp A14400
ExpiresByType application/x-shockwave-flash A3600
</Directory>

en je api zal in 1 keer werken ; -- vragen ,gewoon stellen. ;)

ow en vergeet auto-sub niet, erg handig voor de ondertitels van je series.

suc6

ehhh.. noppes


Acties:
  • 0 Henk 'm!

  • HyperBart
  • Registratie: Maart 2006
  • Laatst online: 12-09 20:02
Thc_Nbl schreef op vrijdag 17 augustus 2012 @ 13:57:
Hoi,

hij staat wel geinstalleerd hoor, alleen is de installer gemaakt voor ubuntu.
Hij blijft aangeven dat hij niet geinstalleerd is, dat kan je als volgt oplossen.

pak je favoriete editor.

en bewerk het bestand /var/lib/dpkg/status

zoek naar couchpotato, er staat nu iets van half-configured.
maak daar installed van.

en klaar ben je.
als je het opstart script open. ( de .init ) die naar /etc/init.d moet.

stop dit boven in het bestand.

### BEGIN INIT INFO
# Provides: couchpotato
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start: $NetworkManager
# Should-Stop: $NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of CouchPotato
# Description: starts instance of CouchPotato using start-stop-daemon
### END INIT INFO
Ik heb gedaan wat je vertelde: die half configured naar installed veranderd en in /etc/init.d/couchpotato heb ik de lijnen die begonnen vanaf BEGIN INIT INFO tot END INIT INFO verwijderd en vervangen met die van jou...

Als ik nu Couchpotato probeer te starten met dat opstart script zegt hij:

pi@raspberrypi:~$ /etc/init.d/couchpotato start
CouchPotato: daemon not enabled, aborting. See /etc/default/couchpotato ... (warning).
pi@raspberrypi:~$ couchpotato --help
usage: couchpotato --option --environment=value
    OPTIONS:
        --daemon        : run in background
        --quiet         : run silent
        --nolaunch      : dont start browser
/usr/bin/couchpotato: line 15: ENVIRONMENT:: command not found
/usr/bin/couchpotato: line 16: --config=: command not found
/usr/bin/couchpotato: line 17: defaults: command not found
/usr/bin/couchpotato: line 18: --datadir=: command not found
/usr/bin/couchpotato: line 19: defaults: command not found
/usr/bin/couchpotato: line 20: --pidfile=: command not found
/usr/bin/couchpotato: line 21: defaults: command not found
/usr/bin/couchpotato: line 22: --port=: command not found
/usr/bin/couchpotato: line 24: --startup: command not found
cat: /etc/*release: No such file or directory
cat: /etc/*release: No such file or directory
cat: /etc/*release: No such file or directory
cat: /etc/*release: No such file or directory



[            app.config.db] Initializing Database.
[        app.lib.qualities] Creating custom=False quality: dvdrip
[        app.lib.qualities] Creating custom=False quality: cam
[        app.lib.qualities] Creating custom=False quality: ts
[        app.lib.qualities] Creating custom=False quality: r5
[        app.lib.qualities] Creating custom=False quality: dvdr
[        app.lib.qualities] Creating custom=False quality: brrip
[        app.lib.qualities] Creating custom=False quality: 720p
[        app.lib.qualities] Creating custom=False quality: 1080p
[        app.lib.qualities] Creating custom=False quality: tc
[        app.lib.qualities] Creating custom=False quality: scr
[                   ENGINE] Listening for SIGINT.
[                   ENGINE] Listening for SIGHUP.
[                   ENGINE] Listening for SIGTERM.
[                   ENGINE] Listening for SIGUSR1.
[                   ENGINE] Bus STARTING
[                   ENGINE] Started monitor thread '_TimeoutMonitor'.
[             app.lib.cron] Starting Cronjobs.
[ider.yarr.sources.newzbin] Using newzbin provider
[er.yarr.sources.nzbmatrix] Using NZBMatrix provider
[rovider.yarr.sources.nzbs] Using NZBs.org provider
[ider.yarr.sources.newznab] Using Newznab provider
[provider.yarr.sources.tpb] Using TPB.org provider
[rovider.yarr.sources.x264] Using #alt.binaries.hdtv.x264@EFnet provider
[ider.yarr.sources.nzbsrus] Using NZBsRUS provider
[.movie.sources.theMovieDb] Using TheMovieDb provider.
[movie.sources.imdbWrapper] Using IMDB provider.
[     app.lib.cron.trailer] TrailerCron thread is running.
[    app.lib.cron.subtitle] SubtitleCron thread is running.
[         app.lib.cron.eta] ETA thread is running.
[    app.lib.cron.movierss] Movie RSS thread is running.
[     app.lib.cron.renamer] Renamer thread is running.
[app.lib.cron.kinepolisrss] Kinepolis RSS thread is running.
[     app.lib.cron.renamer] Watched folder doesn't exist.
[p.lib.cron.traktwatchlist] Trakt watchlist thread is running.
[pp.lib.cron.imdbwatchlist] IMDB watchlist thread is running.
[        app.lib.cron.yarr] YarrCron thread is running.
[                   ENGINE] Serving on 0.0.0.0:5000
[                   ENGINE] Bus STARTED
[    app.lib.cron.movierss] Movie RSS has been disabled
[app.lib.cron.kinepolisrss] Kinepolis RSS has been disabled
[app.lib.cron.kinepolisrss] Kinepolis RSS has been disabled
[        app.lib.cron.yarr] Searching for new downloads, for all movies.
[        app.lib.cron.yarr] Finished search.


Dat ziet er dus nog niet goed uit, alhoewel hij wel draait, weliswaar in commando en niet als daemon en hij nog heel wat fouten geeft zoals hierboven beschreven...

Lijkt mij dat ik nog wat dingen zwaar gefuckupped heb...

Acties:
  • 0 Henk 'm!

  • Thc_Nbl
  • Registratie: Juli 2001
  • Laatst online: 21-05 22:24
Hai,

Heb je wel /etc/default/couchpotato geconfigureerd?
en misschien mis je nog wat packages die in de rasberry pi image niet standaard zaten.

ehhh.. noppes

Pagina: 1