Failed installation on OrangePi PC
Hi all,
I have tried to install repetier server on my OrangePi PC, running the rasperian linux. After downloading the newest version I tried to install it with the following command: sudo dpkg -i Repetier-Server-0.80.3-Linux.deb. But after a while I get the following error:
I have tried to install repetier server on my OrangePi PC, running the rasperian linux. After downloading the newest version I tried to install it with the following command: sudo dpkg -i Repetier-Server-0.80.3-Linux.deb. But after a while I get the following error:
[....] Starting Repetier-Server: rsdKilled
failed!
dpkg: Fehler beim Bearbeiten von repetier-server (--install):
Subprocess installed post-installation script returned the error 137
Errors occurred while editing:
repetier-server
What is going wrong here?
What is going wrong here?
Comments
Does /var/lib/syslog contain more informations on what failed? The postinstall script sets up the user and start script. Since one part failed something might not be set up correctly.
You can try starting manually
sudo RepetierServer start
and check the error you get. /var/lib/RepetierServer/log/server.log might also contain more infos.
/var/lib/syslog is not available. Also /var/lib/RepetierServer/log/ is empty. So no further information here...
sudo -l repetierserver /usr/local/Repetier-Server/bin/RepetierServer -c /usr/local/Repetier-Server/etc/RepetierServer.xml
should also start it and show some messages on terminal since your prblem is before loggin is enabled. If that does not show enough try
sudo -l repetierserver strace /usr/local/Repetier-Server/bin/RepetierServer -c /usr/local/Repetier-Server/etc/RepetierServer.xml
whcih logs also all file access. My guess is that something is not setup as normally so it fails at some point. Some systems have for example no sudo installed whcih is required.
One problem I have is that I can only login with the root user. When I user the user orangepi I can type my password but I come back to the login again. The user orangepi is available and has a valid password, but login doesn't work. Thats the reason why I work with the root user. So when i use sudo -l repetierserver ... I get an error "sudo: list: command not found".
Here is what I get in the /var/lib/RepetierServer/log/server.log:
2017-06-20 16:23:27: Start logging...
2017-06-20 16:23:27: Webdirectory: /usr/local/Repetier-Server/www/
2017-06-20 16:23:27: Storage directory: /var/lib/Repetier-Server/
2017-06-20 16:23:27: Configuration file: /usr/local/Repetier-Server/etc/Repetie$
2017-06-20 16:23:27: Directory for temporary files: /tmp/
2017-06-20 16:23:27: Reading firmware data ...
2017-06-20 16:23:27: Starting Network ...
2017-06-20 16:23:27: Active features:0
2017-06-20 16:23:27: Reading printer configurations ...
2017-06-20 16:23:27: Starting printer threads ...
2017-06-20 16:23:27: Starting work dispatcher subsystem ...
2017-06-20 16:23:27: WorkDispatcher table created successfully
2017-06-20 16:23:27: Starting user database ...
2017-06-20 16:23:28: Initalizing LUA ...
2017-06-20 16:23:28: Register LUA cloud services
2017-06-20 16:23:28: add Repetier-Renderer
2017-06-20 16:23:28: LUA initalization finished.
2017-06-20 16:23:28: Starting web server ...
2017-06-20 16:23:28: Work dispatcher thread started.
apt-get install sudo
and reinstall software. I think then installation runs through. Server normally runs under repetierserver user, check /etc/passwd if it contains that user. Maybe that also failed.
sudo is already installed:
"root@orangepi:~# apt-get install sudo
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
sudo ist schon die neueste Version (sudo is the newest version).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 23 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt."
So missing sudo doesn't seem to be the problem.
In /etc/passwd there is the following entry:
"repetierserver:x:107:20::/var/lib/Repetier-Server:/bin/false"
sudo -u repetierserver /usr/local/Repetier-Server/bin/RepetierServer -c /usr/local/Repetier-Server/etc/RepetierServer.xml
so with -u insetad -l
Since you already started it as root the files belong to root should
chown -R /var/lib/Repetier-Server
before. Maybe that gives a hint. Since it works for root it must be something permission related, also everything seems to be configured correctly.
I guess that the problem is, that I cant't use another user on my system. See the following sequence:
adduser orangepi
adduser: Der Benutzer »orangepi« existiert bereits. (User allready exists)
root@orangepi:~# su orangepi
root@orangepi:~# login orangepi
Passwort:
Letzte Anmeldung: Dienstag, den 20. Juni 2017, 22:50:19 CEST von laptop-linus-pc.fritz.box auf pts/1
Linux orangepi 3.4.39 #41 SMP PREEMPT Sun Jun 21 13:09:26 HKT 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@orangepi:~#
When I want to shitch or login to the user orangepi I still stay as root user. But I have no glue how to change this. I also found nothing on the net...
If nothing helps I put a start command in the file /etc/rc-local for an autostart. That works a workaround.
Bernd
nano /lib/systemd/system/RepetierServer.service
Then edit the
User=repetierserver
to root and also adjust the chown commmand and reboot. Should then simply run as root. Only after updates you might have to redo this.
Best regards