"Internal Server Error" nach Serverumzug

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • nelhop
    Contao-Nutzer
    • 29.11.2010
    • 158

    #1

    "Internal Server Error" nach Serverumzug

    Hey Community,
    ich habe folgendes Problem:

    Nach dem Umzug der Contao-Installation auf einen neuen Server (selber Anbeiter, selbe Konfiguration) funktioniert Avisota nicht mehr.
    Wenn ich im Backend einen Newsletter anzeigen will, wird anstelle des Newsletters "Internal Server Error" ausgegeben. (siehe Anhang)

    Ich habe leider Keine Idee, wo der Fehler liegen könnte.
    Hat vielleicht jemand eine Idee, wie ich einen Hinweis auf die Fehlerquelle bekommen könnte?
    Oder hat irgendwer sogar eine Lösung parat??

    Danke für eure Hilfe,
    nelhop
    Angehängte Dateien
  • BugBuster
    Wandelndes Contao-Lexikon
    • 15.06.2009
    • 10679

    #2
    Schalte mal über Einstellungen die Fehlermeldungen ein, und rufe die Seite dann nochmal so auf. Vielleicht kommen hilfreiche Meldungen.
    Grüße, BugBuster
    "view source" is your guide.
    Danke an alle Amazon Wunschlisten Erfüller

    Kommentar

    • nelhop
      Contao-Nutzer
      • 29.11.2010
      • 158

      #3
      Hey BugBuster,
      danke für die schnelle Antwort.

      Fehlermeldungen hatte ich bereits eingeschaltet. Ohne Ergebnis.

      Die Debugging Informationen geben dies hier aus:
      Code:
      Debug information
      
      Array
      (
          [0] => Array
              (
                  [0] => SELECT * FROM tl_session WHERE hash='32acb44b3a247f10903b8886e67d936ae1b16933' AND name='BE_USER_AUTH'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_session
                          [type] => system
                          [possible_keys] => hash
                          [key] => 
                          [key_len] => 
                          [ref] => 
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [1] => Array
              (
                  [0] => SELECT * FROM tl_user WHERE id='1'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_user
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [2] => Array
              (
                  [0] => SELECT * FROM tl_user_group WHERE id=NULL AND disable!=1 AND (start='' OR start<1324583913) AND (stop='' OR stop>1324583913) LIMIT 0,1
                  [1] => 0 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => 
                          [type] => 
                          [possible_keys] => 
                          [key] => 
                          [key_len] => 
                          [ref] => 
                          [rows] => 
                          [Extra] => Impossible WHERE noticed after reading const tables
                      )
      
              )
      
          [3] => Array
              (
                  [0] => UPDATE tl_session SET tstamp=1324583913 WHERE sessionID='415f8dbe5d08fc8914107b9a2a2c89fb'
                  [1] => 0 rows affected
              )
      
          [4] => Array
              (
                  [0] => SELECT * FROM tl_iso_config WHERE fallback='1' AND archive<2
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_iso_config
                          [type] => system
                          [possible_keys] => 
                          [key] => 
                          [key_len] => 
                          [ref] => 
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [5] => Array
              (
                  [0] => SELECT * FROM tl_user WHERE id='1'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_user
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [6] => Array
              (
                  [0] => UPDATE tl_session SET tstamp=1324583913 WHERE sessionID='415f8dbe5d08fc8914107b9a2a2c89fb'
                  [1] => 0 rows affected
              )
      
          [7] => Array
              (
                  [0] => SELECT
      					*
      				FROM
      					tl_avisota_newsletter
      				WHERE
      					id='41'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_newsletter
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [8] => Array
              (
                  [0] => SELECT
      					*
      				FROM
      					tl_avisota_newsletter_category
      				WHERE
      					id='1'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_newsletter_category
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [9] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='21'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [10] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='20'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [11] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='27'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [12] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='19'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [13] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='2'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [14] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='24'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [15] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_avisota_recipient_list
      							WHERE
      								id='26'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_avisota_recipient_list
                          [type] => const
                          [possible_keys] => PRIMARY
                          [key] => PRIMARY
                          [key_len] => 4
                          [ref] => const
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [16] => Array
              (
                  [0] => SELECT
      								*
      							FROM
      								tl_member_group
      							WHERE
      								id='1'
                  [1] => 1 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_member_group
                          [type] => system
                          [possible_keys] => PRIMARY
                          [key] => 
                          [key_len] => 
                          [ref] => 
                          [rows] => 1
                          [Extra] => 
                      )
      
              )
      
          [17] => Array
              (
                  [0] => SELECT * FROM tl_user ORDER BY name,email
                  [1] => 2 rows returned
                  [2] => Array
                      (
                          [id] => 1
                          [select_type] => SIMPLE
                          [table] => tl_user
                          [type] => ALL
                          [possible_keys] => 
                          [key] => 
                          [key_len] => 
                          [ref] => 
                          [rows] => 2
                          [Extra] => Using filesort
                      )
      
              )
      
          [18] => Array
              (
                  [0] => SHOW COLUMNS FROM `tl_user_group`
                  [1] => 31 rows affected
              )
      
          [19] => Array
              (
                  [0] => SHOW INDEXES FROM `tl_user_group`
                  [1] => 1 rows affected
              )
      
      )

      Kommentar

      • tril
        Contao-Urgestein
        • 07.01.2010
        • 2939

        #4
        Die Debug Informationen helfen leider nicht, du müsstest mal ins Error Log des Servers schauen. Normalerweise bieten die meisten Hoster die Möglichkeit an, dieses Log einzusehen. Bei einigen liegt das access.log/error.log im stats Verzeichnis.

        Kommentar

        • nelhop
          Contao-Nutzer
          • 29.11.2010
          • 158

          #5
          Im Error Log des Servers steht folgendes:

          Code:
          [Fri Dec 23 13:22:45 2011] [error] [client <ip zensiert>] Premature end of script headers: php52-cgi, referer: http://profrie-dive.de/contao/main.php?do=avisota_newsletter&table=tl_avisota_newsletter&key=send&id=41
          [Fri Dec 23 15:38:05 2011] [error] [client <ip zensiert>] Premature end of script headers: php52-cgi, referer: http://profrie-dive.de/contao/main.php?do=avisota_newsletter&table=tl_avisota_newsletter&key=send&id=41
          [Fri Dec 23 17:24:52 2011] [error] [client <ip zensiert>] Premature end of script headers: php52-cgi, referer: http://profrie-dive.de/contao/main.php?do=avisota_newsletter&table=tl_avisota_newsletter&key=send&id=41
          Die Meldung lässt ja darauf schließen, dass hier ein Limit überschritten wurde. Entweder wurde die maximale Ausführungszeit von 45 Sekunden oder der maximale Speicherverbrauch von ca. 900 MB vom Script überschritten.

          Das kann ich mir aber nicht erkähren. Immerhin hat es zuvor ja auch geklappt.
          Ich denke, der Fehler liegt also woanders?! Aber wo??
          Zuletzt geändert von nelhop; 23.12.2011, 20:55.

          Kommentar

          • nelhop
            Contao-Nutzer
            • 29.11.2010
            • 158

            #6
            Der Support war so freundlich, die Laufzeitbegrenzung kurzzeitig auszuschalten.
            Dann erscheint nach 30sec folgende Meldung:
            Code:
            Fatal error: Maximum execution time of 30 seconds exceeded in /www/htdocs/<kundenid>/system/libraries/Database.php on line 151
            Zuletzt geändert von nelhop; 23.12.2011, 20:54.

            Kommentar

            • nelhop
              Contao-Nutzer
              • 29.11.2010
              • 158

              #7
              Mir ist noch folgendes aufgefallen:

              Wenn ich versuche Avisota in der Erweiterungsverwaltung zu Reparieren sieht das so aus:

              Prüfung/Reparatur Avisota 1.5.1 stable Build 24
              2 Datei(en) installiert
              404 Datei(en) unverändert
              Aktion erfolgreich.

              Soweit ganz gut.
              Aber wenn ich jetzt nochmal repariere sieht es genauso aus. Es wird also wieder 1 Datei installiert. Da kann doch was nicht stimmen. Oder?
              Gibt es eine Möglichkeit herauszufinden um welche Datei es sich handelt?

              EDIT:
              Ich denke es handelt sich um 2 runonce.php Dateien. In diesem Fall wäre es ja korrekt, wenn sie nachinstalliert würden (da die ja verschwinden, wenn sie ausgeführt wurden).
              Zuletzt geändert von nelhop; 23.12.2011, 20:54.

              Kommentar

              • nelhop
                Contao-Nutzer
                • 29.11.2010
                • 158

                #8
                gelöst!

                Als ich Avisota eigentlich neu installieren wollte, bin ich durch Zufall auf stylesheets_external_avisota_fix gestoßen.
                Nach der Installation dieser Extension klappt wieder alles wie gewohnt.

                An dieser Stelle vielen Dank an Daniel Kiesel (zeitwerk) für diese Extension!

                Kommentar

                Lädt...