libapache-mod-fastcgi für Raspbian Jessie

Horst_33

Lieutenant
Registriert
Dez. 2008
Beiträge
684
Hi,

ich hab heute versucht fast-cgi für apache2 aufn raspberry mit raspbian jessie zum laufen zu bekommen. Dabei habe ich folgende Anleitung befolgt.

Beim Schritt:

Code:
apt-get update
apt-get -b source libapache-mod-fastcgi
dpkg -i libapache2-mod-fastcgi*.deb

hatte ich jedoch ein Problem. Beim laden und basteln der source geht irgendwas schief. Leider komme ich mit den Fehlermeldungen auch nicht weiter. Hat hier einer eine Idee, wie ich das zum Laufen bekomme?

Code:
pi@pi31:/tmp $ sudo apt-get -b source libapache-mod-fastcgi                                                                                 
Paketlisten werden gelesen... Fertig                                                                                                        
Abhängigkeitsbaum wird aufgebaut.                                                                                                           
Statusinformationen werden eingelesen.... Fertig                                                                                            
Es müssen 113 kB an Quellarchiven heruntergeladen werden.                                                                                   
Holen: 1 http://mirrordirector.raspbian.org/raspbian/ wheezy/non-free libapache-mod-fastcgi 2.4.7~0910052141-1 (dsc) [1.976 B]
Holen: 2 http://mirrordirector.raspbian.org/raspbian/ wheezy/non-free libapache-mod-fastcgi 2.4.7~0910052141-1 (tar) [103 kB]
Holen: 3 http://mirrordirector.raspbian.org/raspbian/ wheezy/non-free libapache-mod-fastcgi 2.4.7~0910052141-1 (diff) [7.631 B]
Es wurden 113 kB in 0 s geholt (172 kB/s).
gpgv: Schlüsselblockhilfsmittel`/root/.gnupg/trustedkeys.gpg': Fehler beim Öffnen der Datei                                                 
gpgv: Unterschrift vom Di 16 Nov 2010 16:33:54 CET mittels RSA-Schlüssel ID E909CDEE                                                        
gpgv: Unterschrift kann nicht geprüft werden: Öffentlicher Schlüssel nicht gefunden                                                         
dpkg-source: Warnung: Fehler beim Überprüfen der Signatur von ./libapache-mod-fastcgi_2.4.7~0910052141-1.dsc                                
dpkg-source: Information: libapache-mod-fastcgi wird nach libapache-mod-fastcgi-2.4.7~0910052141 extrahiert                                 
dpkg-source: Information: libapache-mod-fastcgi_2.4.7~0910052141.orig.tar.gz wird entpackt                                                  
dpkg-source: Information: libapache-mod-fastcgi_2.4.7~0910052141-1.diff.gz wird angewandt                                                   
dpkg-buildpackage: Quellpaket libapache-mod-fastcgi                                                                                         
dpkg-buildpackage: Quellversion 2.4.7~0910052141-1                                                                                          
dpkg-buildpackage: Quelldistribution unstable                                                                                               
dpkg-buildpackage: Quellen geändert durch Tatsuki Sugiura <sugi@nemui.org>                                                                  
dpkg-buildpackage: Host-Architektur armhf                                                                                                   
 dpkg-source --before-build libapache-mod-fastcgi-2.4.7~0910052141                                                                          
dpkg-checkbuilddeps: Nicht erfüllte Bauabhängigkeiten: apache2-threaded-dev (>= 2.2.4) | apache2-prefork-dev (>= 2.2.4)                     
dpkg-buildpackage: Warnung: Bauabhängigkeiten/-konflikte nicht erfüllt; Abbruch                                                             
dpkg-buildpackage: Warnung: (Verwenden Sie -d, um sich darüber hinwegzusetzen.)                                                             
Build-Befehl »cd libapache-mod-fastcgi-2.4.7~0910052141 && dpkg-buildpackage -b -uc« fehlgeschlagen.                                        
E: Kindprozess fehlgeschlagen
 
/root/.gnupg/trustedkeys.gpg existiert?

Laut log nicht lesbar und damit wird auch das Paket nicht installiert, da die Signatur nicht geprüft werden kann.
 
Dann liegt dort das Problem ;-)

Den Mirror hast du manuell eingepflegt? Dann liegt wohl dort der Hund begraben.

Probier doch mal

Code:
su apt-get update
su apt-get install debian-keyring
 
Zuletzt bearbeitet:
Zuletzt bearbeitet:
frkazid schrieb:
Edit2: Was hast du denn eigentl. vor?

Miniwebserver im internen Netzwerk?

Auf den Pi soll mal ein SeaFile Sever laufen. Bisher hatte ich immer nginx genutzt aber aus mir unbekannten Gründen bekomme ich den nicht mehr zum laufen. Deswegen habe ich mir die Lösung mal mit apache2 angeschaut. Überzeugt aber auch nicht gerade, muss ich zugeben :rolleyes:

Dann doch lieber ne alte raspbian version vor jessie, ne 1-2 versionen alte Version von seafile server und gut is :freaky:
 
Würde dann auch eher auf nginx setzen.

Was hat denn da nicht funktioniert?
 
SeaFile lief grundsätzlich schon mal. Hab dann nginx installiert, SSL zertifikate erstellt und die Umleitung von 80 auf 443 eingerichtet inkl. direktion auf die SeaFile Web-Daten. Effekt war dann, dass ich immer n "ERR_CONNECTION_CLOSED" Fehler bekam, sobald ich auf den Dienst zugreifen wollte.

Hier die config file unter
/etc/nginx/sites-enabled/seafile.conf

Code:
server {                                                                                                                                    
    listen 80;                                                                                                                              
    server_name #removed;                                                                                                       
    rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https                                                     
}                                                                                                                                           
                                                                                                                                            
server {                                                                                                                                    
    listen 443;                                                                                                                             
    ssl on;                                                                                                                                 
    ssl_certificate /etc/nginx/ssl/cacert.pem;                                                                                              
    ssl_certificate_key /etc/nginx/ssl/privkey.pem;                                                                                         
    server_name #removed;                                                                                                       
    proxy_set_header X-Forwarded-For $remote_addr;                                                                                          
                                                                                                                                            
    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";                                                             
    server_tokens off;                                                                                                                      
                                                                                                                                            
    location / {                                                                                                                            
        fastcgi_pass    127.0.0.1:8000;                                                                                                     
        fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;                                                             
        fastcgi_param   PATH_INFO           $fastcgi_script_name;                                                                           
                                                                                                                                            
        fastcgi_param    SERVER_PROTOCOL        $server_protocol;                                                                           
        fastcgi_param   QUERY_STRING        $query_string;                                                                                  
        fastcgi_param   REQUEST_METHOD      $request_method;                                                                                
        fastcgi_param   CONTENT_TYPE        $content_type;                                                                                  
        fastcgi_param   CONTENT_LENGTH      $content_length;                                                                                
        fastcgi_param    SERVER_ADDR         $server_addr;                                                                                  
        fastcgi_param    SERVER_PORT         $server_port;                                                                                  
        fastcgi_param    SERVER_NAME         $server_name;                                                                                  
        fastcgi_param   REMOTE_ADDR         $remote_addr;                                                                                   
        fastcgi_param   HTTPS           on;                                                                                                 
        fastcgi_param   HTTP_SCHEME     https;                                                                                              
                                                                                                                                            
                                                                                                                                            
        access_log      /var/log/nginx/seahub.access.log;                                                                                   
        error_log       /var/log/nginx/seahub.error.log;                                                                                    
        fastcgi_read_timeout 36000;                                                                                                         
    }                                                                                                                                       
                                                                                                                                            
    location /seafhttp {                                                                                                                    
        rewrite ^/seafhttp(.*)$ $1 break;                                                                                                   
        proxy_pass http://127.0.0.1:8082;                                                                                                   
        client_max_body_size 0;                                                                                                             
        proxy_connect_timeout  36000s;                                                                                                      
        proxy_read_timeout  36000s;                                                                                                         
        proxy_send_timeout  36000s;                                                                                                         
        send_timeout  36000s;                                                                                                               
    }                                                                                                                                       
                                                                                                                                            
    location /media {                                                                                                                       
        root /mnt/pidrive/seafile/seafile-server-latest/seahub;                                                                             
    }                                                                                                                                       
}

Habe den Fehler mehrfach reproduziert und nach aussagekräftigen logs gesucht, aber entweder stand nichts, oder nichts interessantes drinnen. Grundsätzlich würde ich schon gerne bei nginx bleiben ...
 
Haste mal nen Auszug aus dem access und error log?
 
frkazid schrieb:
Haste mal nen Auszug aus dem access und error log?

Die beiden logs unter /var/log/nginx/ sind leer. Auch die beiden Seafile Weblogs ./log/seahub.log und ./log/seahub_django.log sind leer. Kommt mir eher so vor, als würde nie eine Verbindung zum eigentlich webserver aufgebaut werden können.

Die Zugriffe mache ich entweder von der ferne (inkl. Portfreigabe auf Port 8000, worauf der seahub dienst lauscht) oder im internen Netzwerk. Bei beiden bekomme immer den selben "RR_CONNECTION_CLOSED" fehler, als würde ne Firewall dazwischen sitzen. Die seafile eigenen logs sehen soweit alle gut aus.
Wenn ich direkt am Pi versuche z.B. per wget auf die Seite zu komme, passiert folgendes:

Code:
pi@pi31:/tmp $ wget https://foo.spdns.eu:8000
--2016-11-09 17:12:34--  https://foo.spdns.eu:8000/                                                                                 
Auflösen des Hostnamen »foo.spdns.eu (foo.spdns.eu)«... xxx.xxx.123.69                                                      
Verbindungsaufbau zu foo.spdns.eu (foo.spdns.eu)|xxx.xxx.123.69|:8000... fehlgeschlagen: Verbindungsaufbau abgelehnt.

Any Ideas?
 
Zuletzt bearbeitet:
Der Zugriff aus der Ferne ohne SSL/TLS funktioniert?

Edit: Ich glaube du hast einen Denkfehler.

Läuft nicht nur intern der Zugriff auf Seafile auf dem Port 8000 (siehe config).

Du verbindestens dich ja per SSL/TLS (=https) auf den Webserver welcher "Seitenintern" auf den lokalen Seafile-Serverclient zugreift.
 
Zuletzt bearbeitet:
frkazid hat Recht. Deine Serverconfig lässt den NGINX auf den Standardports für HTTP(S) lauschen. Auf Port 8000 solltest du korrekterweise nichts erreichen.
Das könntest du z.B. auch durch einen Portscan von einer anderen Maschine oder ein 'netstat -tulpn' auf dem Pi verifizieren. Letzterer Befehl sollte für Port 8000 nur einen intern lauschenden CGI-Prozess zeigen.
 
Danke danke... bin da echt auf der Leitung gesessen :rolleyes:

Das Webinterface läuft, aber irgendwie funktioniert der Datei Upload noch nicht :/
Beim Upload erhalte ich den Fehler "Unknown Error" im Upload Fenster vom Webbrowser. Google spuckt aus, dass man in die seahub_settings.py die HTTP_SERVER_ROOT Zeile hinzufügen soll. Auch das löst leider nicht das Problem. Hat wer ne Idee, woran das liegen kann und warum der Fehler nicht mal in den Logs auftaucht? (zumindest les ich da nichts raus)

Hier mal meine Configs und logs:

nginx - config

Code:
server {
        listen 80;
        server_name  foob.bar.tld;
        rewrite ^ https://$http_host$request_uri? permanent;    # force redirect http to https
    }

server {
        listen 8008;
        ssl on;
        ssl_certificate /etc/nginx/ssl/cacert.pem;        # path to your cacert.pem
        ssl_certificate_key /etc/nginx/ssl/privkey.pem;    # path to your privkey.pem
        server_name foob.bar.tld;
        proxy_set_header X-Forwarded-For $remote_addr;

        add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
        server_tokens off;

        location / {
            fastcgi_pass    127.0.0.1:8000;
            fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
            fastcgi_param   PATH_INFO           $fastcgi_script_name;

            fastcgi_param   SERVER_PROTOCOL        $server_protocol;
            fastcgi_param   QUERY_STRING        $query_string;
            fastcgi_param   REQUEST_METHOD      $request_method;
            fastcgi_param   CONTENT_TYPE        $content_type;
            fastcgi_param   CONTENT_LENGTH      $content_length;
            fastcgi_param   SERVER_ADDR         $server_addr;
            fastcgi_param   SERVER_PORT         $server_port;
            fastcgi_param   SERVER_NAME         $server_name;
            fastcgi_param   REMOTE_ADDR         $remote_addr;
            fastcgi_param   HTTPS               on;
            fastcgi_param   HTTP_SCHEME         https;

            access_log      /var/log/nginx/seahub.access.log;
            error_log       /var/log/nginx/seahub.error.log;
            fastcgi_read_timeout 36000;
        }
        location /seafhttp {
            rewrite ^/seafhttp(.*)$ $1 break;
            proxy_pass http://127.0.0.1:8082;
            client_max_body_size 0;
            proxy_connect_timeout  36000s;
            proxy_read_timeout  36000s;
            proxy_send_timeout  36000s;
            send_timeout  36000s;
        }
        location /media {
            root /mnt/pidrive/seafile/seafile-server-latest/seahub;
        }
    }

nginx - access.log

Code:
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/CACHE/css/c8340f180c0b.css HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/img/seafile-logo.png HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/avatars/default.png HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/assets/scripts/i18n/de/djangojs.js HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/assets/scripts/lib/require.640929dac3c2.js HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/css/sf_font2/seafile-font2.woff?efa92e9dee42 HTTP/1.1" 304 0 "https://foo.bar.tld:8008/media/CACHE/css/c8340f180c0b.css" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/css/font/fontawesome-webfont.woff?v=3.0.1&b683029bafe0 HTTP/1.1" 304 0 "https://foo.bar.tld:8008/media/CACHE/css/c8340f180c0b.css" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET /media/assets/scripts/dist/main.b3772c306948.js HTTP/1.1" 200 678015 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:44 +0100] "GET /media/img/lib/24/lib.png HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:45 +0100] "GET /media/img/file/24/word.png HTTP/1.1" 304 0 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"

nginx - error.log (leer)

nginx - seahub.access.log

Code:
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:42 +0100] "GET / HTTP/1.1" 200 22639 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:44 +0100] "GET /ajax/unseen-notices-count/?_=1478805521143 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:44 +0100] "GET /api2/repos/?type=mine&_=1478805521144 HTTP/1.1" 200 584 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:18:45 +0100] "GET /ajax/lib/fa663e6f-cfca-40c0-a3bd-a1817fd5cf04/dir/?p=%2F&thumbnail_size=48&_=1478805521145 HTTP/1.1" 200 512 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:19:12 +0100] "GET /ajax/unseen-notices-count/?_=1478805521146 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:19:44 +0100] "GET /ajax/unseen-notices-count/?_=1478805521147 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:19:51 +0100] "GET /ajax/repo/fa663e6f-cfca-40c0-a3bd-a1817fd5cf04/file_op_url/?op_type=upload&path=%2F&_=1478805521148 HTTP/1.1" 200 106 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:12 +0100] "GET /ajax/unseen-notices-count/?_=1478805521149 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:39 +0100] "GET /api2/repos/?type=mine&_=1478805521150 HTTP/1.1" 200 584 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:42 +0100] "GET /ajax/lib/fa663e6f-cfca-40c0-a3bd-a1817fd5cf04/dir/?p=%2F&thumbnail_size=48&_=1478805521151 HTTP/1.1" 200 512 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:43 +0100] "GET /api2/repos/?type=mine&_=1478805521152 HTTP/1.1" 200 584 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:43 +0100] "GET /ajax/unseen-notices-count/?_=1478805521153 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:43 +0100] "GET /api2/repos/?type=shared HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:44 +0100] "GET /api2/repos/?type=mine&_=1478805521154 HTTP/1.1" 200 584 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:44 +0100] "GET /api2/repos/public/?_=1478805521155 HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:47 +0100] "GET /api2/repos/?type=mine&_=1478805521156 HTTP/1.1" 200 584 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:50 +0100] "GET /api/v2.1/shared-folders/?_=1478805521157 HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:50 +0100] "GET /api/v2.1/shared-repos/?_=1478805521158 HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:51 +0100] "GET /api2/devices/ HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:52 +0100] "GET /api2/starredfiles/ HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:52 +0100] "GET /api2/devices/ HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:53 +0100] "GET /api/v2.1/groups/?with_repos=1&_=1478805521159 HTTP/1.1" 200 12 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:20:56 +0100] "GET /api2/repos/?type=mine&_=1478805521160 HTTP/1.1" 200 584 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:21:13 +0100] "GET /ajax/unseen-notices-count/?_=1478805521161 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:21:25 +0100] "GET /ajax/lib/fa663e6f-cfca-40c0-a3bd-a1817fd5cf04/dir/?p=%2F&thumbnail_size=48&_=1478805521162 HTTP/1.1" 200 512 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:21:33 +0100] "GET /ajax/repo/fa663e6f-cfca-40c0-a3bd-a1817fd5cf04/file_op_url/?op_type=upload&path=%2F&_=1478805521163 HTTP/1.1" 200 106 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:21:42 +0100] "GET /ajax/unseen-notices-count/?_=1478805521164 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:22:12 +0100] "GET /ajax/unseen-notices-count/?_=1478805521165 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:22:43 +0100] "GET /ajax/unseen-notices-count/?_=1478805521166 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:23:13 +0100] "GET /ajax/unseen-notices-count/?_=1478805521167 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:23:43 +0100] "GET /ajax/unseen-notices-count/?_=1478805521168 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:24:13 +0100] "GET /ajax/unseen-notices-count/?_=1478805521169 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:24:43 +0100] "GET /ajax/unseen-notices-count/?_=1478805521170 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:25:13 +0100] "GET /ajax/unseen-notices-count/?_=1478805521171 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
xxx.xxx.xxx.xxx - - [10/Nov/2016:20:25:43 +0100] "GET /ajax/unseen-notices-count/?_=1478805521172 HTTP/1.1" 200 22 "https://foo.bar.tld:8008/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"

nginx - seahub.error.log (leer)

seafile - ccnet.conf

Code:
[General]
USER_NAME = DankFile
ID = 5464ceee5abb5d6517b2b2276679f1c308637e06
NAME = DankFile
SERVICE_URL = https://foo.bar.tld:8000

[Client]
PORT = 13419

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = foo
DB = ccnet-db
CONNECTION_CHARSET = utf8

seafile - seafile.conf

Code:
[fileserver]
port = 8082

[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = foo
db_name = seafile-db
connection_charset = utf8

seafile - seahub_settings.py

Code:
SECRET_KEY = "someKey"

FILE_SERVER_ROOT = 'https://foo.bar.tld/seafhttp'
HTTP_SERVER_ROOT = 'https://foo.bar.tld/seafhttp'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'seahub-db',
        'USER': 'seafile',
        'PASSWORD': 'foo',
        'HOST': '127.0.0.1',
        'PORT': '3306'
    }
}

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}
 
Nehm mal in der ccnet.conf den Port hinter der ServiceURL weg.

Und dann seafile und seahub stoppen und neu starten, dann nginx reloaden.
 
Zuletzt bearbeitet:
Passiert das mit allen Browsern?

Edit1:Evtl. kannst du auch mal die Sessions zurücksetzen.

Die Berechtigungen read-only, read-write sind ordentlich gesetzt?

Edit2: Wenn Seafile keine logs auswirft, kannst du dann evtl. mal mit dem Browser debuggen?

Auch mal Browsercache löschen. Bei selbstsignierten Zertifikaten ist das immer sone Sache ^^
 
Zuletzt bearbeitet:
- Habs mit 2 verschiedenen Chrome Instanzen und IE9 ausprobiert -> Selbes Verhalten
- Sessions auch mit allen mal zurück gesetzt -> Hat auch nix gebracht

- Früher habe ich immer mit zwei separaten usern aufn pi gearbeitet - einer fürs seafile, einer zur administration (pi). Diesmal hab ich um Zugriffsprobleme zu vermeiden nur den pi-user für alles verwendet (ist ja vorerst nur ein Test System).

Hier der Fehler aus dem Chrome Debugg Fenster beim Datei Upload:

Code:
main.b3772c306948.js:221 OPTIONS https://foo.bar.tld/seafhttp/upload-aj/e2bf7b59-3fa9-41c1-80ce-2f5c3f54e5ef net::ERR_CONNECTION_CLOSEDsend 
@ main.b3772c306948.js:221ajax 
@ main.b3772c306948.js:221f 
@ main.b3772c306948.js:221(anonymous function) 
@ main.b3772c306948.js:221f 
@ main.b3772c306948.js:221add 
@ main.b3772c306948.js:221(anonymous function) 
@ main.b3772c306948.js:221each 
@ main.b3772c306948.js:221(anonymous function) 
@ main.b3772c306948.js:221Deferred 
@ main.b3772c306948.js:221then 
@ main.b3772c306948.js:221_onSend 
@ main.b3772c306948.js:221(anonymous function) 
@ main.b3772c306948.js:221send 
@ main.b3772c306948.js:221(anonymous function) 
@ main.b3772c306948.js:221(anonymous function) 
@ main.b3772c306948.js:221each 
@ main.b3772c306948.js:221each 
@ main.b3772c306948.js:221e.fn.(anonymous function) 
@ main.b3772c306948.js:221success 
@ main.b3772c306948.js:221f 
@ main.b3772c306948.js:221fireWith 
@ main.b3772c306948.js:221x 
@ main.b3772c306948.js:221t 
@ main.b3772c306948.js:221

Chrome meckert da schon ordentlich wegen den selbst erstellten Zertifikaten rum :rolleyes:
 
Also es liegt an der SSL/TLS Verbindung.

Kannst du denn mit dem Sync-Client Daten hochladen?
 
Nope, funktioniert auch nicht. Beim Einrichten des Servers werde ich erst nach den nicht vertrauenswürdigen Zertifikat gefragt (was verständlich ist) und danach bekomme ich die Meldung "Fehler beim Anmelden"

Hier der log aus /var/log/nginx/seahub.error.log

Code:
2016/11/11 18:48:43 [error] 812#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: foo.bar.tld, request: "POST /api2/auth-token/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:8000", host: "foo.bar.tld:8008"

log vom client (Windows 7, ccnet.log)

Code:
[11/11/16 18:48:25]Fehler beim Anmelden
[11/11/16 18:48:41]request failed for https://foo.bar.tld:8008/api2/auth-token/: <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
 
Zuletzt bearbeitet:
Zurück
Oben