Installation fehlerhaft

Locked
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Installation fehlerhaft

Post by jacboy »

Hi,


Installation ist abgebrochen. Fehler-Log ist im Anhang. Ich werde da nicht schlau draus,
bin aber auch etwas übermüdet.


Vielleicht findet ihr ja was?


J
Attachments
install_log.txt
(154.6 KiB) Downloaded 218 times
nikko
Posts: 914
Joined: Fri 15. Apr 2016, 16:11

Re: Installation fehlerhaft

Post by nikko »

Die laufen definitiv. Erst letzte Woche 2x getestet.
The software said: Requires Win Vista®, 7®, 8® or better. And so I installed Linux.
nikko
Posts: 914
Joined: Fri 15. Apr 2016, 16:11

Re: Installation fehlerhaft

Post by nikko »

The software said: Requires Win Vista®, 7®, 8® or better. And so I installed Linux.
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: Installation fehlerhaft

Post by Alexander »

Ein paar Hintergrund Informationen:

Die Installation könntest du dann leicht im Anschluss noch korrigieren, in dem du im Log nach "ERROR DETECTED" suchst.

Dann schaust du in die Zeile, die den Fehler ausgelöst hat, in dem Fall:

Code: Select all

exec | su - amavis -s /bin/bash -c 'pyzor discover'
"exec" steht in dem Fall für einen ganz normalen Konsolenbefehl. Du führst nun also per Hand den Befehl aus:

Code: Select all

su - amavis -s /bin/bash -c 'pyzor discover'
Zusätzlich alle mit [SKIPPED] gekennzeichneten Befehle, die unmittelbar unter dem ERROR DETECTED stehen.

Code: Select all

  [SKIPPED DUE PREVIOUS ERRORS] exec | usermod -aG amavis clamav
  [SKIPPED DUE PREVIOUS ERRORS] exec | chmod 0600 /etc/amavis/conf.d/50-user
  [SKIPPED DUE PREVIOUS ERRORS] exec | service clamav-daemon restart
  [SKIPPED DUE PREVIOUS ERRORS] exec | service amavis restart
  [SKIPPED DUE PREVIOUS ERRORS] exec | service spamassassin restart
  [SKIPPED DUE PREVIOUS ERRORS] exec | systemctl enable spamassassin
Das "exec |" lässt du wieder weg und führst nur alles was nach diesem Wort steht aus.

Somit kann man kleine Installationsfehler selbst korrigieren, ohne das man gleich neu Installieren muss.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Re: Installation fehlerhaft

Post by jacboy »

Hallo,


danke für eure Antworten. Auch Bezug nehmend auf diesen Beitrag:
Martin wrote: Fri 2. Mar 2018, 08:12 bei dem spezifischen Problem würde ich vom Fehlerbild auf fehlende Quotafunktionalität tippen. Hierzu gibt es im Forum ja bereits einige Themen mit der entsprechenden Lösung.
Ich habe nun mal geschaut:

Code: Select all

root@web ~ # repquota /
repquota: Mountpoint (or device) / not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.
root@web ~ # cat /etc/hostname
web
root@web ~ # hostname -f
web.jacboy.com
root@web ~ #
Der Hostname ist also korrekt gesetzt. Ebenso löst dieser auf. Mit dem Quota scheint etwas nicht zu stimmen. Mal nachgeschaut:

Code: Select all

root@web ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=52f500d5-d584-4945-bba4-7f7defd162e5 /               ext4    discard,errors=remount-ro 0       1
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
Nun bin ich mit meinem Latein am Ende. Die im Beitrag von @nikko verlinkte Zeile "proc /proc proc defaults 0 0" kann ich in meiner fstab nicht finden. Meine Platten / Partionen sehen so aus:

Code: Select all

root@web ~ # fdisk -l
Disk /dev/sda: 19.1 GiB, 20480786432 bytes, 40001536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x873f3d47

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *     2048 40001502 39999455 19.1G 83 Linux
root@web ~ # df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            967M     0  967M   0% /dev
tmpfs           196M  3.1M  193M   2% /run
/dev/sda1        19G  1.6G   17G   9% /
tmpfs           977M     0  977M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           977M     0  977M   0% /sys/fs/cgroup
tmpfs           196M     0  196M   0% /run/user/0
Wie müsste ich die fstab-Datei nun ergänzen, um ein korrektes Quota zu erhalten?
Sobald das korrigiert ist, werde ich die Installation erneut versuchen.

Beste Grüße,


Jay
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Installation fehlerhaft

Post by Martin »

Hallo,

sofern es sich um ein Minimalsystem handelt und die fstab wie angezeigt aussieht, so ergänzt die KeyHelp Installation "usrquota,grpquota" als Parameter selbstständig.

Die Installation sollte entsprechend ohne Fehler durchlaufen.
Viele Grüße,
Martin
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Re: Installation fehlerhaft

Post by jacboy »

Hi,


in Ordnung. Dann wollen wir mal.
Bildschirmfoto 2018-03-02 um 12.41.51.png

Ich melde mcih noch mal :)


J
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Re: Installation fehlerhaft

Post by jacboy »

Hi,

die Installation lief nun durch. Wieder am gleichen Schritt der Fehler wie heute Nacht, siehe Logfile. Ich habe es also erneut von Hand versucht.

Code: Select all

root@web ~ # su - amavis -s /bin/bash -c 'pyzor discover'
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x
Traceback (most recent call last):
  File "/usr/bin/pyzor", line 8, in <module>
    pyzor.client.run()
  File "/usr/lib/python2.7/dist-packages/pyzor/client.py", line 1022, in run
    ExecCall().run()
  File "/usr/lib/python2.7/dist-packages/pyzor/client.py", line 186, in run
    download(config.get('client', 'DiscoverServersURL'), servers_fn)
  File "/usr/lib/python2.7/dist-packages/pyzor/client.py", line 1031, in download
    open(outfile, "wb").write(urllib2.urlopen(url).read())
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>
Die restlichen Befehle danach funktioniert jedoch ohne Probleme. Ich kann die gewünschte URL "http://pyzor.sourceforge.net/cgi-bin/in ... vers-0-3-x" im Browser jedoch auch nicht aufrufen.

Code: Select all

root@web ~ # usermod -aG amavis clamav
root@web ~ # chmod 0600 /etc/amavis/conf.d/50-user
root@web ~ # service clamav-daemon restart
root@web ~ # service amavis restart
root@web ~ # service spamassassin restart

root@web ~ #
root@web ~ # systemctl enable spamassassin
Synchronizing state of spamassassin.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable spamassassin

Eine Idee?


Mein fstab sieht jetzt so aus:

Code: Select all

root@web ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=52f500d5-d584-4945-bba4-7f7defd162e5     /     ext4     discard,errors=remount-ro,usrquota,grpquota     0     1
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

Beste Grüße,

J
Attachments
Bildschirmfoto 2018-03-02 um 12.55.30.png
installlog.txt
(153.24 KiB) Downloaded 196 times
Bildschirmfoto 2018-03-02 um 12.53.46.png
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Installation fehlerhaft

Post by Martin »

Hallo,

das Problem mit Pyzor konnte ich soweit nachvollziehen, hier scheint aktuell der Server für die Pyzor Dateien nicht korrekt zu antworten.

Hier sollten ggf. die von Alex geposteten Schritte Abhilfe schaffen.

Nachtrag:

Aktuell schlägt in der Tat die Verbindung für den pyzor "discover" fehl, dies kann zunächst auch weggelassen werden und später nachgeholt werden.

Zur Korrektur müssen lediglich die von Alex genannten Befehle einmal noch manuell ausgeführt werden.
Viele Grüße,
Martin
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Re: Installation fehlerhaft

Post by jacboy »

Hi,


genau das habe ich schon erledigt. Ich werde morgen versuchen, den fehlgeschlagenen Befehl erneut auszuführen und werde dann noch einmal die Befehle darunter hinterher schieben. Das wird schon wieder online kommen.

Was genau tut Amavis / Pyzor denn, was nun temporär nicht tut?

Beste Grüße,


J
nikko
Posts: 914
Joined: Fri 15. Apr 2016, 16:11

Re: Installation fehlerhaft

Post by nikko »

E-Mail Viren / Spam ist dessen Aufgabe.
The software said: Requires Win Vista®, 7®, 8® or better. And so I installed Linux.
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Installation fehlerhaft

Post by Martin »

Hallo,

genauer ist Pyzor einer der Dienste den Amavis für die Spambewertung heranzieht, prinzipiell funktioniert die Spamerkennung aber auch ohne diesen Dienst.
Viele Grüße,
Martin
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Re: Installation fehlerhaft

Post by jacboy »

Hi Martin,


der Mirror ist leider immer noch tut. Es wäre hier vielleicht sinnvoll,
darüber nachzudenken, mit der nächsten Version von KH, die ihr ja bald pushen wollt,
selbst einen Mirror zu betreiben oder diesen zu wechseln. Alternativ könnte man auch das Install-Script anpassen,
dass sowas ein Warning wirft (und das auch im Install-Screen so abgebildet wird), aber nicht gleich die Installation und die darauf folgenden Befehle abblockt.


Beste Grüße,

J
jacboy
Posts: 125
Joined: Mon 29. Jan 2018, 16:59
Location: Stuttgart
Contact:

Re: Installation fehlerhaft

Post by jacboy »

Hi,


nun scheint es funktioniert zu haben. Wie kann ich das ggf. überprüfen?

Code: Select all

root@web ~ # su - amavis -s /bin/bash -c 'pyzor discover'
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x
root@web ~ # usermod -aG amavis clamav
root@web ~ # chmod 0600 /etc/amavis/conf.d/50-user
root@web ~ # service clamav-daemon restart
root@web ~ # service amavis restart
root@web ~ # service spamassassin restart
root@web ~ # systemctl enable spamassassin
Synchronizing state of spamassassin.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable spamassassin

Beste Grüße,

Jay
User avatar
Tobi
Community Moderator
Posts: 2832
Joined: Thu 5. Jan 2017, 13:24

Re: Installation fehlerhaft

Post by Tobi »

Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Locked