If something goes wrong - Patlol/Handy-Install-Web-Server-ruTorrent- GitHub Wiki
Most of the following can be done when the script pauses by notifying a problem. Without leaving the script, opening a second ssh terminal. You can make all the manipulations
First thing to do, scroll up the terminal to see if there are no error messages. You will find in the scripts directory a trace
file containing the redirection of the shell stderr output.
- May be due to the unavailability of a source, it is momentary, re-tried later.
- Or from the package name change (version). I remind you that this script is intended for Debian 8.x, 9.x and Ubuntu 16.x. The lists of packages to install are centralized at the beginning of the script, you can modify them at your own risk.
- In another console, check the name of the packages involved with
sudo aptitude search <partial name of the package('php' for 'php7.0-dev' by exemple)>
- add
| grep ^i
for list installed packages
To find the correct names. For this search use aptitude and not apt
- Install them manually with
sudo apt-get install <correct names>
- If this doesn't work check your repository sources on the net.
The Apache and php test web pages are checked by the script. The error message telling you that these pages do not display correctly, and tells you which page is at fault.
- Apache: A test page was written to the apache installation, verify that it exists:
http://nomdedomaine ou IP
- If dosen't exist the problem is too large to be treated here [Qwant] (https://www.qwant.com/) and forums are your friends.
- You can start by manually reinstalling the packages, checking that there are no error messages with:
sudo apt-get update
sudo apt-get install apache2 apache2-utils libapache2-mod-php5
- php: A test page was written to the apache installation, verify that it exists:
http://nomdedomaine/info.php ou IP/info.php
- If the php test page has been deleted, you can recreate it with:
sudo echo "<?php phpinfo(); ?>" >/var/www/html/info.php
http://nomdedomaine/info.php ou IP/info.php
- Begin by manually reinstalling the packages, checking that there are no error messages with:
sudo apt-get update
sudo apt-get install php5 php5-cli php5-dev php5-fpm php5-curl php5-geoip php5-mcrypt php5-xmlrpc
Debian
sudo apt-get install php7.0 php7.0-cli php7.0-dev php7.0-fpm php7.0-curl php-geoip php7.0-mcrypt php7.0-xmlrpc
Ubuntu - Delete info.php after use for security
sudo rm /var/www/html/info.php
ps aux | grep rtorrent
With single-user should give you 3 processes look like:
....Ss 14:22 0:00 SCREEN -fn -dmS rtd nice -19 rtorrent
screen process
....SNsl+ 14:22 0:00 rtorrent
rtorrent process
....S+ 14:25 0:00 grep --color=auto rtorrent
grep process that you just run ;)
If you do not have this, check that rtorrent is installed:
-
pgrep rtorrent
must give you a process id. - If no process are running, try running rtorrent manually:
rtorrent
- Quit rtorrent with: 'Ctrl-q'
- If rtorrent does not launch ... it is improperly installed, install manually, see the last point of this page.
- If rtorrent runs manually, test with screen
screen -v
su -l <user name> -c 'screen -fn -dmS rtd nice -19 rtorrent
pgrep rtorrent
- If you finally have a process, it is with the files managing the daemon that is the problem:
-
service rtorrentd restart
Check with pgrep
In case of problem with restart:-
journalctl -xn
Will give you valuable information. - Or try your luck with a reboot, the daemon should work, check with pgrep.
-
-
- If nothing goes 👎 Check the ad hoc files in / etc:
-
/etc/init/rtorrent.conf
- Verify its presence, and it is
rwxrwxr-x root:root
- and that its content is ok / the file accompanying the script.
- Verify its presence, and it is
- idem with /etc/init.d/rtorrentd.s
- idem with /home/< your user name>/.rtorrent.rc
- Check also the presence of symbolic links in directories
/etc/rc6d rc5.d and rc4.d
- After any modifications on these files reload the config with:
systemctl daemon-reload
service rtorrentd restart
check with pgrep
-
/etc/init/rtorrent.conf
- If nothing works 👎👎 reinstall manually with:
sudo apt-get install xmlrpc-api-utils libtorrent14 rtorrent
debian
sudo apt-get install xmlrpc-api-utils libtorrent19 rtorrent
ubuntu
and be careful to errors at installation.
-
See journalctl:
sudo journalctl -xe
-
All this happens in the file
/etc/ssh/sshd_config
Check this before cutting the ssh connection. -
In this file, changed parameters:
port <Selected port>
AllowUsers <user name>
PermitRootLogin no
-
La configuration de départ est :
port 22
AllowUsers <user name>
PermitRootLogin yes
-
Après correction
sudo service ssh restart
service ssh status
if nok
sudo journalctl -xe
DO NOT REBOOT, DO NOT CUT your SSH connection before having status ok. You could no longer access your server in ssh.
The original config is located in sshd_config.dist use it if there is still an error. Copying it to sshd_config with cp
.
If before using the script, the accented characters are replaced by spaces or special characters, you have a location problem.
For example, with:
apt-get update && apt-get upgrade
You will get this type of message:
erreurs : LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
The script completes the localization.
It's better like that !