Aktuelles
Digital Eliteboard - Das Digitale Technik Forum

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

IPC kein zugriff auf Webif

    Nobody is reading this thread right now.
du meinst das mit dem port 80? habe ich wieder geändert. Bin noch nicht so fit in der Materie.
hatte das Problem nach dem reboot des Servers das IPC webif im Browser nur noch mit hieroglyphen angezeigt wird? apache läuft aber !
 
ich verstehe nicht, warum du dir in deinem heimnetzwerk den cs-Server mit iptables dicht machst, obwohl dein router eine nat-Firewall hat,... oder musst du cs vor der frau und den kindern verstecken?! ;)

Gruß
jensebub
 
Ja das leuchtet mit ein stimmt hab ja keine Portweiterleitung im router!
Was kann das den sein?
IPC webif im Browser nur noch mit hieroglyphen angezeigt wird? apache läuft aber !
 
Aber warum zerschießt der mir immer nach einem reboot den Apache2 verstehe ich nicht.Finde hier auch nichts im Forum
 
Schau halt in das error.log. WEiß ja keiner wie du dein System konfiguriert hast. Out of the Box funzt das IPC-WebIf, für mehr bin ich nicht zuständig
 
Ich reihe mich hier mal mit ein.
Ich hab vor ein paar Monaten einen Raspi mit IPC und Oscam neu aufgesetzt (kam noch vom Igel). Lief alles super, nur wollte ich jetzt mal wieder aufs IPC Und kam nicht auf die Website. Also den Server erst mal neu gestartet, aber keine Besserung.
Dann mal über Konsole I Update durchgeführt (und meine Config beibehalten), hat auch nicht geholfen.
Wie gehe ich denn (als Linux-Noob) bei der Fehlersuche am besten vor?

Danke schon mal im Voraus!
Hirnduebel
 
Hi,
was kommt den für eine Meldung wenn du das IPC WebIF aufrufen willst?
hast du einen oder mehrere Browser getestet? eventuell auch mal den Cache geleert?
 
Es kommt die Meldung, dass die Website nicht erreichbar ist. Hab dann den Tipp von oben gesehen und wollte das log von apache2 ansehen, aber der Ordner fehlt im Log-Verzeichnis. Somit läuft der Webserver gar nicht, richtig?

Edit: gerade die crontab noch mal kontrolliert, da ist der watchdog für den apache aber aktiv. Vielleicht hab ich ein größeres Problem?
Kann es sein, dass die crontab gar nicht ausgeführt wird? Wie kann ich das denn prüfen?
Oscam läuft zumindest stabil...

So, das syslog hat mir schon mal nen Fehler ausgeworfen, kann mir jemand bei der Deutung helfen?
Code:
Jul  6 07:32:28 CS-Raspi3b-KH udisksd[460]: mountpoint /media/pi/128GB_FBKH is invalid, cannot recover the canonical path
Jul  6 07:32:28 CS-Raspi3b-KH udisksd[460]: Cleaning up mount point /media/pi/128GB_FBKH (device 8:1 is not mounted)
Jul  6 07:32:28 CS-Raspi3b-KH vncserver-x11[598,root]: ConsoleDisplay: Cannot find a running X server on vt1
Jul  6 07:32:29 CS-Raspi3b-KH kernel: [   15.503061] ftdi_sio ttyUSB0: use of SPD flags is deprecated
Jul  6 07:32:29 CS-Raspi3b-KH kernel: [   15.668945] ftdi_sio ttyUSB1: use of SPD flags is deprecated
Jul  6 07:32:30 CS-Raspi3b-KH apachectl[563]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
Jul  6 07:32:30 CS-Raspi3b-KH apachectl[563]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-default.conf:1
Jul  6 07:32:30 CS-Raspi3b-KH apachectl[563]: AH00014: Configuration check failed
Jul  6 07:32:30 CS-Raspi3b-KH apachectl[563]: Action 'start' failed.
Jul  6 07:32:30 CS-Raspi3b-KH apachectl[563]: The Apache error log may have more information.
Jul  6 07:32:30 CS-Raspi3b-KH systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul  6 07:32:30 CS-Raspi3b-KH systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul  6 07:32:30 CS-Raspi3b-KH systemd[1]: Failed to start The Apache HTTP Server.

wenn ich den cron Status abfrage, kommt auch ein Fehler:
Code:
Jul 06 07:39:01 CS-Raspi3b-KH CRON[2000]: pam_unix(cron:session): session closed for user root
Jul 06 08:09:01 CS-Raspi3b-KH CRON[8196]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 06 08:09:01 CS-Raspi3b-KH CRON[8197]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jul 06 08:09:01 CS-Raspi3b-KH CRON[8196]: pam_unix(cron:session): session closed for user root
Jul 06 08:29:01 CS-Raspi3b-KH cron[458]: (*system*) RELOAD (/etc/crontab)
Jul 06 08:29:01 CS-Raspi3b-KH cron[458]: Error: bad username; while reading /etc/crontab
Jul 06 08:29:01 CS-Raspi3b-KH cron[458]: (*system*) ERROR (Syntax error, this crontab file will be ignored)
Jul 06 08:39:01 CS-Raspi3b-KH CRON[13864]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 06 08:39:01 CS-Raspi3b-KH CRON[13865]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jul 06 08:39:01 CS-Raspi3b-KH CRON[13864]: pam_unix(cron:session): session closed for user root
 
Zuletzt bearbeitet:
hallo, das schaut nach verschiedenen Problemen aus...
mountpoint /media/pi/128GB_FBKH is invalid, cannot recover the canonical path
No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-default.conf:1
und zu guter Letzt
(*system*) ERROR (Syntax error, this crontab file will be ignored)
und deshalb wird auch der cron nicht ausgeführt...

Gruß
jensebub
 
Hmmm, wie bekomme ich die oberen beiden Punkte denn gelöst?

Die crontab habe ich basierend auf einer Sicherung wiederhergestellt, das status sieht jetzt gut aus und gibt keinen Fehler mehr aus.
Code:
~
~

● cron.service - Regular background program processing daemon
   Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-07-06 09:35:01 CEST; 2min 32s ago
     Docs: man:cron(8)
 Main PID: 474 (cron)
    Tasks: 1 (limit: 2063)
   CGroup: /system.slice/cron.service
           └─474 /usr/sbin/cron -f

Jul 06 09:35:01 CS-Raspi3b-KH systemd[1]: Started Regular background program processing daemon.
Jul 06 09:35:01 CS-Raspi3b-KH cron[474]: (CRON) INFO (pidfile fd = 3)
Jul 06 09:35:01 CS-Raspi3b-KH cron[474]: (*system*) INSECURE MODE (group/other writable) (/etc/crontab)
Jul 06 09:35:01 CS-Raspi3b-KH cron[474]: (CRON) INFO (Running @reboot jobs)


Syslog sieht aber noch immer so aus:
Code:
Jul  6 09:43:37 CS-Raspi3b-KH systemd[1]: Started Disk Manager.
Jul  6 09:43:37 CS-Raspi3b-KH udisksd[440]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jul  6 09:43:37 CS-Raspi3b-KH udisksd[440]: mountpoint /media/pi/128GB_FBKH is invalid, cannot recover the canonical path
Jul  6 09:43:37 CS-Raspi3b-KH udisksd[440]: Cleaning up mount point /media/pi/128GB_FBKH (device 8:1 is not mounted)
Jul  6 09:43:38 CS-Raspi3b-KH vncserver-x11[573,root]: ConsoleDisplay: Cannot find a running X server on vt1
Jul  6 09:43:38 CS-Raspi3b-KH vncserver-x11[573,root]: ConsoleDisplay: Found running X server (pid=675, binary=/usr/lib/xorg/Xorg)
Jul  6 09:43:38 CS-Raspi3b-KH apachectl[549]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
Jul  6 09:43:38 CS-Raspi3b-KH apachectl[549]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at /etc/apache2/sites-enabled/000-default.conf:1
Jul  6 09:43:38 CS-Raspi3b-KH apachectl[549]: AH00014: Configuration check failed
Jul  6 09:43:38 CS-Raspi3b-KH apachectl[549]: Action 'start' failed.
Jul  6 09:43:38 CS-Raspi3b-KH apachectl[549]: The Apache error log may have more information.
Jul  6 09:43:38 CS-Raspi3b-KH systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul  6 09:43:38 CS-Raspi3b-KH systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul  6 09:43:38 CS-Raspi3b-KH systemd[1]: Failed to start The Apache HTTP Server.
Jul  6 09:43:39 CS-Raspi3b-KH kernel: [   18.055412] ftdi_sio ttyUSB0: use of SPD flags is deprecated
Jul  6 09:43:39 CS-Raspi3b-KH systemd[1]: systemd-rfkill.service: Succeeded.
Jul  6 09:43:39 CS-Raspi3b-KH kernel: [   18.220037] ftdi_sio ttyUSB1: use of SPD flags is deprecated
Jul  6 09:43:40 CS-Raspi3b-KH lightdm[706]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Jul  6 09:43:40 CS-Raspi3b-KH systemd[1]: Created slice User Slice of UID 1000.
 
Zuletzt bearbeitet:
Es gibt deb Pfad /var/log/apache2 zum Beispiel schon mal nicht. Das heißt jemand hat am Dateisystem rumgespielt
Von dem her eigentlich schon mal kein IPC-Problem. Was steht den in /etc/fstab ?
 
Ich bin mir sicher, dass der Fehler definitiv vor dem Bildschirm zu suchen ist, IPC hat da sicher keinen Fehler.
Ich hab das Log-Verzeichnis aber definitiv nicht gelöscht...
Die fstab sieht so aus:
Code:
proc            /proc           proc    defaults          0       0
PARTUUID=9f37983c-01  /boot           vfat    defaults          0       2
PARTUUID=9f37983c-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
tmpfs           /tmp                     tmpfs    size=100M         0       0
tmpfs           /var/tmp                 tmpfs    size=20M          0       0
tmpfs           /var/log                 tmpfs    size=70M          0       0
tmpfs           /var/cache/apt/archives  tmpfs    size=150M         0       0

meine crontab sieht so aus:
Code:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""

#  * * * * * Benutzer Befehl
#  | | | | |
#  | | | | +---- Wochentag (0-7) (Sonntag =0 oder =7)
#  | | | +------ Monat (1-12)
#  | | +-------- Tag (1-31)
#  | +---------- Stunde (0-23)
#  +------------ Minute (0-59)

# m h dom mon dow user    command
17 *    * * *    root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )


#Zeitabgleich -> benoetigt [apt-get install ntpdate]
0 8 * * * root ntpdate -s pool.ntp.org      #Zeitabgleich (Taeglich um 08:00 Uhr)

#IPC
0 4 * * 5 root /var/emu/script/ipc-backup.sh full f 30 #Backup - Full (Woechentlich um 04:00, Freitag)
0 2 * * 5 root /var/emu/script/ipc-backup.sh conf f 14  #Backup - Konfiguration (Taeglich um 02:00)
#0 6 * * * root /var/emu/script/ipc-set.sh               #Rechte setzen (Taeglich um 06:00)

#CCcam
#* * * * * root /var/emu/script/cccam-watchdog.sh       #CCcam - Teste ob CCcam laeuft (jede Minute)
#30 4 * * * root /var/emu/script/cccam restart          #CCcam - EMU Neustart (Taeglich um 04:30)
#0 5 * * * root /var/emu/script/cccam-cfgnl.sh          #CCcam - Lade neue Konfiguration (Taeglich um 05:00)
#01 5 * * * root /bin/cccam softkey && /bin/cccam restart  #CCcam EMU Keys updaten+restart (Taeglich um 05:01)

#CCcamInfoPHP (Update,Ping,Online)
#*/2 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_update.php?p=0 #CCcamInfoPHP - Update alle 2 Minuten
#58 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_ping.php?p=0    #CCcamInfoPHP - PING jede Stunde
#59 * * * * www-data wget -q --spider http://localhost/ipc/infophp/cron_online.php?p=0  #CCcamInfoPHP - Online jede Stunde

#OScam
* * * * * root /var/emu/script/oscam-watchdog.sh  #OScam - Teste ob OScam laeuft (jede Minute)
#29 4 * * * root /var/emu/script/oscam restart     #OScam - EMU Neustart (Taeglich um 04:29)

#NewCS
#* * * * * root /var/emu/script/newcs-watchdog.sh  #NewCS - Teste ob NewCS laeuft (jede Minute)

#Camd3
#* * * * * root /var/emu/script/camd3-watchdog.sh  #Teste ob Camd3 laeuft (jede Minute)
#01 5 * * * root /bin/camd3 softkey && /bin/camd3 restart  #Camd3 EMU Keys updaten+restart (Taeglich um 05:01)

#sBox
#* * * * * root /var/emu/script/sbox-watchdog.sh  #Teste ob sBox laeuft (jede Minute)


#DynDNS Static Update -> benoetigt [apt-get install ddclient]
#6 6 * * 1 root /usr/sbin/ddclient -force > /var/log/ipc/dyndns_update.log  #Static DynDNS Update (Woechentlich um 06:06, Montag)

#DDNSupdater.sh
#@reboot    root /var/emu/script/DDNSupdater.sh auto  #DDNSupdater.sh bei System boot/reboot starten
#0 6 * * 1 root /var/emu/script/DDNSupdater.sh now  #DDNSupdater.sh Static-IP Update erzwingen (Woechentlich um 06:00,Montag)

#DDNSupdater2.sh
#@reboot root /var/emu/script/DDNSupdater2.sh auto #DDNSupdater2.sh bei System boot/reboot starten
#15 * * * * root /var/emu/script/DDNSupdater2.sh now  #DDNSupdater2.sh Static-IP Update erzwingen (Woechentlich um 06:00, Montag)
#* * * * * root /var/emu/script/ip-check.sh  #IP Ableich jede Minute

#apache2
@reboot    root /var/emu/script/apache2-watchdog.sh >/dev/null 2>&1
* * * * *    root /var/emu/script/apache2-watchdog.sh >/dev/null 2>&1

Und meine ipc.cfg sieht so aus:
Code:
# =============================================================================
# ACHTUNG: Parameter immer zwischen Anfuehrungszeichen -> 'wert'

#WebIf Control anzeigen als:
# menue = eigener Menueeintrag
# hide = versteckt unter Home
# stay = immer sichtbar unter Home
 WEBIF_CON='stay'

#WebIf Menue in welchem Style anzeigen:
# new = neues Design
# old = altes Design
 WEBIF_MENUE='new'
 
#WebIf Logs Display Style (new/old)
# new = mit grep
# old = ohne grep, jedes logfile als eigener Button..
 WEBIF_LOGS='new'

#Website Benutzer und Kennwort (.htaccess)
# diese einstellung darf nicht leer sein sonst geht die website/webif nicht!
 HTTPUSER='xxxx'
 HTTPPASS='xxxx'

#Cron-Steuerung bei EMU stop/start? (0/1)
 CRON='1'

#Aenderungen in CCcam.cfg protokollieren? (0/1)
 CHANGELOG='1'
#SSH-Javaclients
 JAVASSHSIZE='80x40'
 JAVASSHPORT='22'

#Netzwerk-Backup -> benoetigt [apt-get install smbfs nfs-common portmap]
 LANTYP='cifs' LANSHARE='//FRITZBOX1KH/fritz.nas/My_Passport/Sicherung/Raspi_1/Backup/LAN' LANUSER='xxxx' LANPASS='xxxx'

#FTP-Backup -> benoetigt [apt-get install ncftp]
 FTPSERVER='192.168.xxx.x' FTPPORT='21' FTPDIR='/My_Passport/Sicherung/Raspi_1/Backup/FTP' FTPUSER='xxxx' FTPPASS='xxxx'

#Maileinstellung -> benoetigt [apt-get install sendEmail]
 SMTPFROM="xxxx" SMTPTO='xxxx' SMTPSERVER='xxxx' SMTPUSER='xxxx'
 SMTPPASS='xxxx'
 SMTPTLS='1'

#Mailnachricht bei Watchdog (0/1)
 CRASHMAIL='1'

#Mailnachricht bei Backup (0/1)
 BACKUPMAIL='1'

#Favorit Editor? (nano/vi/joe usw)
# womit die dateien bevorzugt bearbeitet werden sollen
 useEDITOR='nano'
 
df -h
Code:
root@CS-Raspi3b-KH ~ > df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root        15G    7,1G  6,6G   52% /
devtmpfs        430M       0  430M    0% /dev
tmpfs           463M       0  463M    0% /dev/shm
tmpfs           463M     13M  451M    3% /run
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           463M       0  463M    0% /sys/fs/cgroup
tmpfs            70M    176K   70M    1% /var/log
tmpfs            20M       0   20M    0% /var/tmp
tmpfs           150M       0  150M    0% /var/cache/apt/archives
tmpfs           100M     28K  100M    1% /tmp
/dev/mmcblk0p1  253M     54M  199M   22% /boot
tmpfs            93M    4,0K   93M    1% /run/user/1000
/dev/sda1       116G    3,9G  112G    4% /media/pi/128GB_FBKH
tmpfs            93M       0   93M    0% /run/user/0

und ls -lah /var/log
Code:
root@CS-Raspi3b-KH ~ > ls -lah /var/log
insgesamt 168K
drwxr-xr-x  6 root root  280 Jul  6 09:44 .
drwxr-xr-x 15 root root 4,0K Jan 30  2011 ..
drwxr-xr-x  2 root root   40 Jul  6 09:44 apache2
-rw-r-----  1 root adm  2,8K Jul  6 11:28 auth.log
-rw-rw----  1 root utmp    0 Jul  6 09:43 btmp
drwxr-x---  2 root lp     60 Jul  6 09:43 cups
-rw-rw-r--  1 root utmp 286K Jul  6 11:28 lastlog
drwx--x--x  2 root root   80 Jul  6 09:43 lightdm
-rw-r-----  1 root adm   39K Jul  6 09:43 messages
drwx------  2 root root   40 Jul  6 09:43 private
-rw-r-----  1 root adm   78K Jul  6 11:28 syslog
-rw-------  1 root root  14K Jul  6 09:43 vncserver-x11.log
-rw-rw-r--  1 root utmp 2,7K Jul  6 11:28 wtmp
-rw-r--r--  1 root root 8,3K Jul  6 09:43 Xorg.0.log
 
Zurück
Oben