Plötzlich über cron php Fehler pdo.so

L I V E Stammtisch ab 20:30 Uhr im Chat
  • Hallo,

    meine Raspi2 jessie installation läuft eigentlich sehr stabil.
    Nun kommt plötzlich über den Cron im Halbstundentakt folgende Fehlermeldung:


    Code
    Cron <root@blablai>   [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean
    PHP Warning:  PHP Startup: Unable to load dynamic library '[i]/usr/lib/php5/20131226/pdo.so' - dd-linux-armhf.s/[/i].3: cannot open shared object file: No such file or directory in Unknown on line 0
    
    
    PHP Warning:  PHP Startup: Unable to load dynamic library '[i]/usr/lib/php5/20131226/pdo.so' - dd-linux-armhf.s/[/i].3: cannot open shared object file: No such file or directory in Unknown on line 0

    Wie kann ich das beheben und woaran liegt es?

    Ich fahre über unattended-upgrades Systemupdates...


    Greets

    Byte

  • Hallo Bytechanger,

    schau mal hier.

    Beste Grüße

    Andreas

    Ich bin wirklich nicht darauf aus, Microsoft zu zerstören. Das wird nur ein völlig unbeabsichtigter Nebeneffekt sein.
    Linus Torvalds - "Vater" von Linux

    Linux is like a wigwam, no windows, no gates, but with an apache inside dancing samba, very hungry eating a yacc, a gnu and a bison.


  • Was genau führst du denn alle halbe Stunde aus?

    Hallo,

    also es hat lange Zeit zuvor ohne Fehler funktioniert. Dieser trat ab in der Nach vom 28. auf den 29.08. erstmalig auf, dann im Halbstundentakt.
    PECL habe ich nicht installiert und ein
    apt-get install --reinstall php5-common php5-mysql
    brachte auch keinen Erfolg!

    Die Betreffzeile der Fehler E-Mail sagt : [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean
    Dies wird ein von php angelegter Cronjob sein. Das Verzeichnis php5 und Sessionclean deutet darauf hin..


    Greets

    Byte

  • Der Fehler bleibt weiterhin,

    die Datei:

    /usr/lib/php5/20131226/pdo.so

    ist allerdings vorhanden und mit den gleichen Benutzern und Rechten, wie auf einem laufenden Raspi-System.


    In /etc/cron.d/php

    liegt der "Übeltäter" dort wurde durch das System folgender Code eingetragen:

    Und diese routine wird um 9 und 39 jede Stunde ausgeführt und führt zu dem Fehler:

    Code
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo.so' - dd-linux-armhf.s/.3: cannot open shared object file: No such file or directory in Unknown on line 0
    
    
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo.so' - dd-linux-armhf.s/.3: cannot open shared object file: No such file or directory in Unknown on line 0


    Ein --reinstall von mysql / php5 / apache2 brachte keine Änderung!?


    Greets

    Byte

    Einmal editiert, zuletzt von Bytechanger (31. August 2016 um 21:18)

  • Wenn ich auf der Console

    /usr/lib/php5/sessionclean

    ausführe kommt folgende Fehlermeldung:


    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo.so' - /usr/lib/php5/20131226/pdo.so: undefined symbol: cnmpiler_globals in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo.so' - /usr/lib/php5/20131226/pdo.so: undefined symbol: cnmpiler_globals in Unknown on line 0


    also cnmpiler_globals sieht komisch aus?!

  • Hallo,

    habe durch die Ausgabe vermutet, dass die DLL Datei defekt / kaputt ist?!

    Habe sie von einem intakten Rapsi kopiert, nun scheint alles zu funktionieren!
    Komisch dass die apt-get --reinstall nicht die DLL überschrieben haben??


    Eine wichtige Frage habe ich daher aber noch,
    wie hätte ich die DLL neu kopieren/installieren können??
    Sollte also in Zukunft nochmal eine DLL defekt sein, wie kann ich sie erneut installieren??

    Greets

    Byte

  • *.so ist keine DLL sondern: Shared Object

    Zitat

    Shared Object: A library that is automatically linked into a program when the program starts, and exists as a standalone file. The library is included in the linking list at compile time (ie: LDOPTS+=-lmylib for a library file named mylib.so). The library must be present at compile time, and when the application starts.

    Zitat


    DLL: Essentially the same as a shared object, but rather than being included in the linking list at compile time, the library is loaded via dlopen()/dlsym() commands so that the library does not need to be present at build time for the program to compile. Also, the library does not need to be present (necessarily) at application startup or compile time, as it is only needed at the moment the dlopen/dlsym calls are made.

    Quelle: http://stackoverflow.com/questions/9688…s-a-and-dlls-so

    Es kann helfen nicht --reinstall zu nutzen sondern erst tatsächlich zu deinstallieren, sicherstellen das es auch wirklich gelöscht wurde (--purge) und erst danach neu installieren.

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!