• Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PDF-Export Could not execute phantomjs, Error code: 1, Error message: Unable to load the address!

    Fragen
    self hosting phantomjs self-host pdf pdf export
    2
    5
    453
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • meM
      me
      last edited by

      Hallo zusammen,

      ich steh gerade auf dem Schlauch vielleicht habt ihr eine Idee was ich falsch mache.

      Im log steht immer der Fehler "Error in AbstractModule:call - Could not execute phantomjs, Error code: 1, Error message: Unable to load the address!"

      Anbei ein Auszug meiner Konfiguration:

      # file Berechtigung 
      drwxr-xr-x 1 www-data www-data     4096 Jun 20 14:55 bin
       rwxr-xr-x 1 www-data www-data 67932064 Jun 14 19:45 phantomjs 
      
      # Phantomjs kann ausgeführt werden
      /var/www/html/bin/phantomjs  -v
      2.1.1
      /var/www/html/bin/phantomjs 
      phantomjs>
      

      Php exec ist erlaubt.

      1 Reply Last reply Reply Quote 0
      • davidschillingD
        davidschilling ChurchToolsMitarbeiter
        last edited by

        @me sagte in PDF-Export Could not execute phantomjs, Error code: 1, Error message: Unable to load the address!:

        Unable to load the address

        Sieht so aus als könnte Phantomjs nicht auf die ChurchTools Adresse zugreifen.
        Vielleicht ein Netzwerkproblem.

        1 Reply Last reply Reply Quote 0
        • meM
          me
          last edited by

          Das hab ich auch schon vermutet, in der churchtools.config hab ich schon den Punkt "site_url=" mit der richtigen Adresse gepflegt.

          1 Reply Last reply Reply Quote 0
          • meM
            me
            last edited by

            Das einzige was ich in den Apachelogs gefunden habe ist ein 408 Fehler.

            [22/Jun/2020:10:38:40 +0000] "POST /index.php?q=churchcal/ajax HTTP/1.1" 200 79 "https://domainname/?q=churchcal&printview=true&category_id=2,3,5,1,4,-99,-98,-96,-94,-95" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0"
            [22/Jun/2020:10:38:44 +0000] "POST /index.php?q=churchcal/ajax HTTP/1.1" 200 79 "https://domainname/?q=churchcal" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0"
            [22/Jun/2020:10:38:47 +0000] "POST /index.php?q=churchcal/ajax HTTP/1.1" 200 79 "https://domainname/?q=churchcal&printview=true&category_id=2,3,5,1,4,-99,-98,-96,-94,-95" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0"
            [22/Jun/2020:10:37:52 +0000] "POST /index.php?q=churchcal/ajax HTTP/1.1" 408 221 "https://domainname/?q=churchcal&printview=true&category_id=2,3,5,1,4,-99,-98,-96,-94,-95" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0"
            [22/Jun/2020:10:38:55 +0000] "POST /index.php?q=churchcal/ajax HTTP/1.1" 200 79 "https://domainname/?q=churchcal&printview=true&category_id=2,3,5,1,4,-99,-98,-96,-94,-95" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0"
            
            1 Reply Last reply Reply Quote 0
            • meM
              me
              last edited by

              Mittlerweile bin ich einen Schritt weiter. Die DNS Auflösung hat leider nicht richtig funktioniert. Jetzt bekomme ich den Fehler nicht mehr aber kann trotzdem keine PDF erstellen. Ich sehe nur im Entwickler Modus des Browsers das eine Anfrage mit einem Timeout zurück kommt.

              Bildschirmfoto von 2020-07-10 08-29-50.png

              Alle anfragen gehen mit 200 (ok) durch nur wenn ich auf den PDF Knopf drücke habe ich einen auf pending und später 408 (timeout).

              1 Reply Last reply Reply Quote 0
              • First post
                Last post