Nextcloud version (eg, 12.0.2): 13.0.5
Operating system and version (eg, Ubuntu 17.04): Linux (kernel 3.10.0-714.10.2.lve1.4.74.el7.x86_64)
Apache or nginx version (eg, Apache 2.4.25): 2.4.34
PHP version (eg, 7.1): 7.2.8
PHP info: https://intothegarbagechuteflyboy.net/phpinfo.php
The issue you are facing:
I have installed Nextcloud (new install) on my shared hosting. I can log in fine via the web interface. I cannot get it to work with Thunderbird or the Android app. Thunderbird just asks for the username/password over and over. The Android app comes up with “Access failed. Operation finished with HTTP status code 401(fail)”. If I intentionally put in the wrong password in the Android app, it comes up with “Wrong password” so clearly it is authenticating.
As I am using Thunderbird 60, I have used the network.cookie.same-site.enabled
workaround. All my searches for how to fix this have proved fruitless. The only things I have been unable to try is altering the vhost file which I cannot do as I am on shared hosting. My IP is not blacklisted (bruteforce_attemps) and there is no whitelist section under Settings > Security so I cannot add my IP there.
Help much appreciated!
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install Nextcloud (new, fresh installation)
- Add calendar URL to Thunderbird/Install Android app and try to log in
- Repeatedly beat my head in frustration when neither work no matter what I try.
The output of your Nextcloud log in Admin > Logging:
https://pastebin.com/UxSAU52t
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'XXXXXX',
'passwordsalt' => 'XXXXXXXX',
'secret' => 'XXXXXX',
'trusted_domains' =>
array (
0 => 'intothegarbagechuteflyboy.net',
),
'datadirectory' => '/home/intothegarbage/nextclouddata',
'overwrite.cli.url' => 'https://intothegarbagechuteflyboy.net/nextcloud',
'dbtype' => 'mysql',
'version' => '13.0.5.2',
'dbname' => 'XXXXXXX',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'XXXXXXX',
'dbpassword' => 'XXXXXXXX',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
);
The output of your Apache/nginx/system log in /var/log/____
: (don’t have access to var/log so below is log from home/user/logs
Contents of the htaccess file in public_html folder in case it helps:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
EDIT/UPDATE: And Davdroid will not connect either. I see in the log there is a “405 Method Not Allowed” which I am currently investigating (no idea what this could mean currently). Here’s the log:
https://pastebin.com/VVk4cRJ2