Authentication required

i setup my nextcloud last week and now I want to work with my calendar, in NC12 there is an app called calendar, that i want to use for me and my family. But when I want to enable it, there can an error message called “authentication required”. I used the same password as for the login and it failed now 15 times in different time areas.

Please delete everything above when creating your topic and provide the following:

Nextcloud version (eg, 12.0.2): Nextcloud 12.0.5
Operating system and version (eg, Ubuntu 17.04): Debian 8 Jessie
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.10-10+deb8u11
PHP version (eg, 7.1): PHP5.6.30+dfsg-0+deb8u1

Thats the output of my psql.

                              List of databases

Name | Owner | Encoding | Collate | Ctype | Access privileges
nextcloud | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres+
| | | | | nextuser=CTc/postgres

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

|Warning|core|Login failed: 'muelleste' (Remote IP: '')|2018-02-08T20:29:02+0000|
|Warning|core|Login failed: 'muelleste' (Remote IP: '')|2018-02-08T20:28:58+0000|

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'pgsql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextuser',
'dbpass' .... 
  'installed' => true,
  '' => 'production',

The output of your Apache/nginx/system log in /var/log/____:

[Thu Feb 08 21:15:47.440725 2018] [authz_core:error] [pid 27067] [client] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu Feb 08 21:15:54.207729 2018] [authz_core:error] [pid 28638] [client] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata

What were going wrong, i can login to my site, but the authication to enable plugins failed ? But i am in the admin group.

No solution. But can you enable from the commandline?

@guddl thanks for the tip

I don’t think so, because in my list:


  • admin_audit
  • encryption
  • files_external
  • user_external
  • user_ldap

There is not my destination app called “calendar”.

– ok a got an workaround.

root@nextcloud /var/www/nextcloud/apps # wget

root@nextcloud /var/www/nextcloud # tar -xf calendar.tar.gz

root@nextcloud /var/www/nextcloud # rm -rf calendar.tar.gz

root@nextcloud /var/www/nextcloud # php occ app:enable calendar

Okay. You are faster then I can answer. :grin: