Probleme beim Zugriff von extern / config.php


#1

Hallo
ich habe OC 9.1.4.2 mit NGINX,sqlite und php5 nach folgender Anleitung installiert:


intern läuft es wunderbar.

Mein Problem besteht von außerhalb meines Netzwerkes auf die OC zuzugreifen.

Ich habe diverse DYNDNS Provider ausprobiert: spdns, dtdns und dnshome.de.
Anmeldung erfolgt über die Fritzbox.
Das Update der IP-Adresse funktioniert, anpingen des OC ist jedes mal möglich.
Es gibt auch einen Workaround das es funktioniert von externen Browser und der App darauf zuzugreifen.
Das Problem liegt meines erachten, an der config.php und zwar an den Array eintrag.
Wenn ich anstelle des DYNDNS Namen meine externe IP eintrage funktioniert es anstandslos.
Ich will bloß nicht jeden Tag da eine neue IP-Adresse eintragen.

Meine config.php schaut folgendermaßen aus:

<?php
$CONFIG = array (
'instanceid' => 'ocj6skait3d4',
'passwordsalt' => '/nH68x3ppwZq/90UvwrMMI6ScNbmDO',
'secret' => 'd0gPjtOYqjTlkZf7+kdTDRtBoVfIN7MnWIUmzFNrfmrKB50I',
'trusted_domains' =>
array (
0 => '192.168.99.33',
1 => 'rernst.dnshome.de',
2 => 'localhost'

),
'datadirectory' => '/var/www/owncloud/data',
'overwrite.cli.url' => 'https://rernst.dnshome.de',
'dbtype' => 'sqlite3',
'version' => '9.1.4.2',
'logtimezone' => 'UTC',
'installed' => true,
);

Gebe ich bei Array 1 meine externe IP-Adresse ein kann ich mit der Eingabe der IP-Adresse darauf zugreifen.

(Es ist defenitiv kein Firewall-Problem)

Die Datei /etc/nginx/sites-available/default:

upstream php-handler {
server 127.0.0.1:9000;
#server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name rernst.dnshome.de;
return 301 https://$server_name$request_uri; # enforce https
}

server {
listen 443 ssl;
server_name rernst.dnshome.de;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/cert.key;
# Path to the root of your installation
root /var/www/owncloud;
client_max_body_size 1000M; # set max upload size
fastcgi_buffers 64 4K;
rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;
index index.php;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ ^/(?:.htaccess|data|config|db_structure.xml|README) {
deny all;
}
location / {
# The following 2 rules are only needed with webfinger
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
try_files $uri $uri/ index.php;
}
location ~ .php(?:$|/) {
fastcgi_split_path_info ^(.+.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_pass php-handler;
}
# Optional: set long EXPIRES header on static assets
location ~* .(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
expires 30d;
# Optional: Don't log access to assets
access_log off;
}
}

Die Ausgabe von https://192.168.99.33/index.php/settings/integrity/failed lautet:

Technical information

The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results

  • core
    • INVALID_HASH
      • .htaccess
      • .user.ini

Raw output

Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[.htaccess] => Array
(
[expected] => ab5f4c44ba2f9c66f2ed25c3ad3d84660b2808cca11ffa8fe2778a648a054d8ada495a0bf4715dc873aac1efe8dfd92a72f9a24441d8f5240834e639325fd892
[current] => f1c81e14b7e5d19e38c33390e445506e04d82321ea743212a9c8dd62b5321f8c7e5121fbccfd36c7a9f25ec5233fd01f064a3f19bb5a86d5a6a4d6207ed3cbe2
)

                [.user.ini] => Array
                    (
                        [expected] => 0a557e3cdca4c2e3675deed761d79d109011dcdebbd9c7f6429f1d3476938ec95729543d7384651d1d0c48e26c5024cc5f517445920915a704ea748bdb903c5f
                        [current] => e8399257b0a2daec8af966a0c515a896653912e7f2da8b3199c445749430a3fab180307ba64a2b2913d147a40eebe0c898ae119292687ca6d683ec9535c0d25e
                    )

            )

    )

)

Die Hash Fehler kommen daher, weil nach Anleitung die File-Uploadgröße angepasst habe.

Und zu Guter Letzt noch das Log-File von OC
/var/www/owncloud/data/owncloud.log

$will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream inste$
{"reqId":"dM6Qyc+wTG\/bSsIk+R8y","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will $
{"reqId":"hg+F5T9QESEZJyVqWlMv","remoteAddr":"109.43.0.3","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be r$
{"reqId":"EqGv4O\/bO8B+f8PWtTZV","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will $
{"reqId":"+b2aOU6VqXzwnfqIMv09","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"UrtT0YiW0rDzoCM7Io5g","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"tJof307\/p2\/E0E1qt1Ue","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.1$
{"reqId":"58ZLKv9JvJaBWB1BX3RK","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"8WFQ8pad+Kz+26v1muis","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"C3Y7bWmy67AA6fk0amRM","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"B9N6DiUaoml1sx883Fe1","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"y4EGUbCEoQyNf0Jj736d","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"EYyYtl92GPpCFhkKgbQj","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"EOx+GJ9VgrE6rHn55djg","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"D4ker7FRwQQYhQ6R\/HgP","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.17$
{"reqId":"L\/8bkbEDr5prencj6lAd","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.17$
{"reqId":"rsycDF\/srzLenai7GpIW","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.17$
{"reqId":"wvb3\/B3GvSo2aN+m0VVR","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.17$
{"reqId":"JoBXX1IC7F3X5i8AWLhv","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"g\/XBx77k\/Y5T7xjBtD7h","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.1$
{"reqId":"vg3fngnVSEQJi8WA+tlU","remoteAddr":"109.43.0.3","app":"core","message":"Trusted domain error. \"109.43.0.3\" tried to access using \"46.244.170$
{"reqId":"ydO5+RSDIJNPlhkgvn\/w","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.24$
{"reqId":"KT1PoUJfC1RLUBtWjYpx","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.244$
{"reqId":"sIskAL4\/CSw1PLeJKtd0","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.24$
{"reqId":"ipzrQrbDrZGc\/A1E1lhK","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.24$
{"reqId":"TI6ruuBhkkKSVeZg0bfo","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.244$
{"reqId":"\/SlajxF6bDjDoC7E4vs3","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.24$
{"reqId":"bMZ0o4SvBubzIzQgEclH","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.244$
{"reqId":"\/g6ll8n4ncKw\/Q+O67ka","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.2$
{"reqId":"US\/k\/eSVKazXcpCAJVdA","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.2$
{"reqId":"mZRHFeVFZAsI3+FD9yhW","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.244$
{"reqId":"RFx\/hm4tjaqt44yg0HFP","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.24$
{"reqId":"DUFFk5Uq0105TiKR38j5","remoteAddr":"109.43.1.114","app":"core","message":"Trusted domain error. \"109.43.1.114\" tried to access using \"46.244$
{"reqId":"UKMimFff+teVqgSjsXeF","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will b$
{"reqId":"mpwNapz\/H+dKeBbhOeqQ","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will $
{"reqId":"VHwcdukH1pVdoP3hdyoH","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will b$
{"reqId":"EgCKpJpRGvEcf7OpvyJD","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will b$
{"reqId":"qUdj3ppnqrH4SVWNix\/u","remoteAddr":"192.168.99.27","app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will $
{"reqId":"0CWs0cUptXvtA1x1fGq2","remoteAddr":"192.168.99.27","app":"core","message":"Login failed: 'chefe-admin' (Remote IP: '192.168.99.27')","level":2,$

Ich hoffe Ihr könnt mir helfen und Vielen Dank bereits im voraus.

Raimund


#2

Hi,

was heißt denn "Probleme beim Zugriff"? Du hattest bisher geschrieben:

meine externe IP eintrage funktioniert es anstandslos

Und was passiert, wenn Du die DynDNS Adresse eingibst?


#3

Hallo, bitte diesen Tread als gelöst markieren.
Nachdem ich über Nacht den Raspi und den Router ausgeschaltet habe, funktioniert es jetzt einwandfrei. Ich denke der DYNDNS hat länger gebraucht bis er die Seite weiter geleitet hat.

Danke nochmal "kljhlkhglklfgh".
Es macht natürlich Sinn, wenn man die Fehlermeldungen mit postet.