Weblogin nicht möglich - Danke fürs Lesen!


#1

Bitte die folgenden Infos bereit stellen. Bevor ein Thread erstellt wird beachte die angepinnten "Known issues" threads und stelle sicher dass Du die letzte verfügbare Version Deines oC releases verwendest: https://owncloud.org/changelog/

Schritte zum Reproduzieren
1. https://cloud.domain.com
2. eingabe user1 oben
3. tab eingabe passwort unten, klick auf pfeil oder enter-taste

Erwartetes Verhalten
webapp-owncloud des user1 sollte sich öffnen

Aktuelles Verhalten
Nichts - keine Fehlermeldung. Bevor ich /etc/hosts verändert habe und redis installiert und in config/config.php eingetragen habe hat es funktioniert

Server-Konfiguration
Betriebssystem: Bananian Debian 8.6
Webserver-Typ: apache 2.4.10-10+deb8u5
Datenbank-Typ:MySQL
PHP-Version: 5.6.24+dfsg-0+deb8u1
ownCloud-Version (siehe ownCloud Administrationsseite): 9.1.1.3
Von einer älteren ownCloud-Version aktualisiert oder neu installiert?: neu installiert
Sonderkonfigurationen (external storage, external authentication, reverse proxy, server-side-encryption):
lets encrypt SSL
redis
<?php
$CONFIG = array (
'instanceid' => 'oczig4xxxxxx',
'passwordsalt' => 'dtXC+zHiOk1BSwpkh3xxxxxxxxxxxx',
'secret' => 'W7lHVsqIvBFzu6EK4u+Wl0TR7q5PZYxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'cloud.domain.com',
1 => 'xxx.xxx.xxx.xxx',
2 => 'localhost',
3 => 'cloud',
),
'datadirectory' => '/var/www/html/domain.com/owncloud/data',
'overwrite.cli.url' => 'https://cloud.domain.com',
'dbtype' => 'mysql',
'version' => '9.1.1.3',
'dbname' => 'mysqluser1',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'mysqluser1',
'dbpassword' => 'geheimespw',
'logtimezone' => 'UTC',
'installed' => true,
'asset-pipeline.enabled' => true,
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'mail_from_address' => 'herrmeier',
'mail_smtpmode' => 'php',
'mail_domain' => 'domain.com',
);

ownCloud log (data/owncloud.log)
{"reqId":"qP7CBDtiBLGSUwX95Mvg","remoteAddr":"WAN_IP","app":"core","message":"Login failed: 'user1' (Remote IP: 'WAN_IP')","level":2,"time":"2016-10-27T15:37:34+00:00","method":"GET","url":"\/index.php\/login?user=user1","user":"--"}
{"reqId":"OOwIQ1cngSsSFdu5SPj\/","remoteAddr":"WAN_IP","app":"core","message":"Login failed: 'user1' (Remote IP: 'WAN_IP')","level":2,"time":"2016-10-27T15:37:36+00:00","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=b9a08fde301d9d66deb807795971645e","user":"--"}
{"reqId":"p4OJVZs79Wp7fMzkui6P","remoteAddr":"WAN_IP","app":"core","message":"Login failed: 'user1' (Remote IP: 'WAN_IP')","level":2,"time":"2016-10-27T15:37:48+00:00","method":"POST","url":"\/index.php\/login?user=user1","user":"--"}
{"reqId":"r0252T+E\/Cg9Dt5y2HyH","remoteAddr":"LAN_IP1","app":"core","message":"Trusted domain error. \"LAN_IP1\" tried to access using \"owncloud\" as host.","level":2,"time":"2016-10-27T18:34:10+00:00","method":"GET","url":"\/","user":"--"}
{"reqId":"vG6\/YthVSGg+DavEHbAo","remoteAddr":"LAN_IP1","app":"core","message":"Trusted domain error. \"LAN_IP1\" tried to access using \"owncloud\" as host.","level":2,"time":"2016-10-27T18:39:09+00:00","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=e26d78536d7c900bab12d9cf871ef359","user":"--"}
{"reqId":"L+9ZFYGpAXxT33MHeZzY","remoteAddr":"LAN_IP2","app":"core","message":"Trusted domain error. \"LAN_IP2\" tried to access using \"cloud\" as host.","level":2,"time":"2016-10-28T11:29:19+00:00","method":"GET","url":"\/","user":"--"}
{"reqId":"4rbkWwG7etaUyI1weTI6","remoteAddr":"LAN_IP2","app":"core","message":"Trusted domain error. \"LAN_IP2\" tried to access using \"cloud\" as host.","level":2,"time":"2016-10-28T11:29:20+00:00","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=e26d78536d7c900bab12d9cf871ef359","user":"--"}
{"reqId":"hM3skrpCRbHo9M\/33l9W","remoteAddr":"LAN_IP1","app":"core","message":"Trusted domain error. \"LAN_IP1\" tried to access using \"owncloud\" as host.","level":2,"time":"2016-10-28T12:04:15+00:00","method":"GET","url":"\/","user":"--"}
{"reqId":"FRFjvp2fgUmCbrJOfkSH","remoteAddr":"LAN_IP1","app":"core","message":"Trusted domain error. \"LAN_IP1\" tried to access using \"owncloud\" as host.","level":2,"time":"2016-10-28T12:04:16+00:00","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=e26d78536d7c900bab12d9cf871ef359","user":"--"}
{"reqId":"pGYvQYDN02UG+Cb1BXYF","remoteAddr":"WAN_IP2","app":"core","message":"Trusted domain error. \"WAN_IP2\" tried to access using \"WAN_IP3\" as host.","level":2,"time":"2016-10-28T12:31:49+00:00","method":"GET","url":"\/","user":"--"}

Bitte füge mögliche Fehler in den folgenden Code-Block, siehe https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 für mehr info.

Integrity status für oC9+

Logge Dich als Admin in Deine ownCloud Instanz ein, öffne
http://example.com/index.php/settings/integrity/failed
und kopiere das Ergebnis hier.

#2

Hi,

dann wäre ein erster Schritt diese Änderungen rückgängig zu machen um herauszufinden welche dafür verantwortlich ist (höchst wahrscheinlich die /etc/hosts Änderung).


#3

Hi RealRancor, danke für Deine freundliche Nachricht:

cat /etc/hosts

127.0.0.1 localhost subdomain2.dyndnshoster.com subdomain2.domain2.com subdomain1.dyndnshoster.com cloud.domain.com cloud
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
xxx.xxx.xxx.xxx localdomain.local
Wo könnte der Fehler sein?

     <IfModule mod_ssl.c>
          <VirtualHost *:443>
              ServerAdmin webmin@domain.com
              ServerName cloud.domain.com:443
              ServerAlias subdomain1.dyndnshoster.com 192.168.xxx.xxx owncloud
              DocumentRoot /var/www/html/domain.com/owncloud
              Alias /phpmyadmin /usr/share/phpmyadmin
              SSLEngine on
            SSLCertificateFile /etc/letsencrypt/live/cloud.domain.com/cert.pem
            SSLCertificateKeyFile /etc/letsencrypt/live/cloud.domain.com/privkey.pem
            SSLCertificateChainFile /etc/letsencrypt/live/cloud.domain.com/chain.pem
              SSLProtocol All -SSLv2 -SSLv3
              SSLHonorCipherOrder On
              SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
              BandwidthModule On
              ForceBandWidthModule On
              Bandwidth all 604800
              ErrorDocument 510 /errors/maxconexceeded.html
              BandWidthError 510
              LargeFileLimit .avi 1 200000
              LargeFileLimit .mpg 1 200000
           <IfModule mod_headers.c>
              Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
           </IfModule>
                    <Directory /var/www/html/domain.com/owncloud/>
                        Options +FollowSymlinks
                        AllowOverride All
                            <IfModule mod_dav.c>
                                Dav off
                            </IfModule>
                    </Directory>
          ErrorLog /var/log/apache2/cloud.domain.com-error.log
          CustomLog /var/log/apache2/cloud.domain.com-access.log combined
          LogLevel warn
       </VirtualHost>
    </IfModule>

Oh...ich glaube ich habe da etwas entdeckt:
# sudo -u www-data php occ app:check-code dav
Analysing /var/www/html/domain.com/owncloud/apps/dav/appinfo/v1/publicwebdav.php
3 errors
line 32: OC_App - Static method of private class must not be called
line 34: OC_Util - Static method of private class must not be called
line 75: OC_Util - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/appinfo/v1/webdav.php
1 errors
line 28: OC_Util - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/appinfo/v2/remote.php
1 errors
line 25: OC_Util - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/DAV/Sharing/Backend.php
1 errors
line 164: == - is discouraged
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/CardDAV/CardDavBackend.php
2 errors
line 910: == - is discouraged
line 910: == - is discouraged
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/PublicAuth.php
1 errors
line 93: OC_User - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/Sabre/File.php
9 errors
line 132: OC_Helper - Static method of private class must not be called
line 148: != - is discouraged
line 255: OC_Hook - Static method of private class must not be called
line 260: OC_Hook - Static method of private class must not be called
line 265: OC_Hook - Static method of private class must not be called
line 281: OC_Hook - Static method of private class must not be called
line 285: OC_Hook - Static method of private class must not be called
line 289: OC_Hook - Static method of private class must not be called
line 402: != - is discouraged
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/Sabre/Node.php
1 errors
line 217: OC_Util - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/Sabre/ObjectTree.php
2 errors
line 81: == - is discouraged
line 81: == - is discouraged
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/Sabre/Auth.php
5 errors
line 115: OC_Util - Static method of private class must not be called
line 119: OC_Util - Static method of private class must not be called
line 122: OC_Util - Static method of private class must not be called
line 221: OC_User - Static method of private class must not be called
line 228: OC_Util - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/Sabre/Directory.php
2 errors
line 208: == - is discouraged
line 297: OC_Helper - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
1 errors
line 100: OC_User - Static method of private class must not be called
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/Files/BrowserErrorPagePlugin.php
2 errors
line 26: OC_Template - private class must not be imported with a use statement
line 96: OC_Template - private class must not be instantiated
Analysing /var/www/html/domain.com/owncloud/apps/dav/lib/CalDAV/CalDavBackend.php
1 errors
line 781: == - is discouraged
App is not compliant

Es könnte auch hiermit zu tun haben...


#4

Du bekommst den Fehler mit der trusted_domain eigentlich nur, wenn du deine cloud über die IP-Adresse aufrufst, in diesem Fall müsstest du die IP-Adressen auch in die trusted-domains-Liste aufnehmen (WAN und LAN-IP) oder du verwendest immer den hostnamen, um auf dein Owncloud zuzugreifen.