Access Forbidden by server for Desktop client

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version 14:
Operating system and version Windows 10:
Apache or nginx version (eg, Apache 2.4.25):
PHP version 4.7.7:

The issue you are facing:
I try to connect with desktop client. It says “Access Forbidden by server. To verify that you have…”

I have tried using the app password from Nextcloud settings. Same result. I have added my current public IP address to trusted domains. I have tried creating a new using and doing that. I have tried “click here to access the service with your browser.” I can access it just fine in the browser. I also get a login error with the android app.

Is this the first time you’ve seen this error? Yes, but this is also the initial setup:

Steps to replicate it:

  1. NextCloud Connection Wizard
  2. use my HTTPS URL to access Nextcloud
  3. Type in my Login information

The output of your Nextcloud log in Admin > Logging:

{"reqId":"W@GqXEB9UM6XAXwemrM5gQAAAAA","level":3,"time":"2018-11-06T14:51:09+00:00","remoteAddr":"5.162.211.207","user":"--","app":"cron","method":"GET","url":"\/nextcloud\/cron.php","message":{"Exception":"Error","Message":"Call to undefined method OCP\\AppFramework\\Http\\DataResponse::succeeded()","Code":0,"Trace":[{"file":"\/home\/peakunit\/public_html\/nextcloud\/lib\/private\/BackgroundJob\/Job.php","line":61,"function":"run","class":"OCA\\Survey_Client\\BackgroundJobs\\MonthlyReport","type":"->","args":[null]},{"file":"\/home\/peakunit\/public_html\/nextcloud\/lib\/private\/BackgroundJob\/TimedJob.php","line":55,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"\/home\/peakunit\/public_html\/nextcloud\/cron.php","line":146,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"\/home\/peakunit\/public_html\/nextcloud\/apps\/survey_client\/lib\/BackgroundJobs\/MonthlyReport.php","Line":43,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko\/20100101 Firefox\/63.0","version":"14.0.3.0"}
{"reqId":"W@Gq53uhZFgLX0bpFyYxawAAACE","level":2,"time":"2018-11-06T14:53:27+00:00","remoteAddr":"5.162.211.207","user":"--","app":"core","method":"POST","url":"\/nextcloud\/index.php\/login?redirect_url=\/nextcloud\/index.php\/settings\/user\/security","message":"Login failed: 'admin' (Remote IP: '5.162.211.207')","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko\/20100101 Firefox\/63.0","version":"14.0.3.0"}

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

<?php
$CONFIG = array (
  'instanceid' => 'oco9wd8dwwdw',
  'passwordsalt' => 'e4qQO+UBW9LKt9R5VKMFzrumJY34DT',
  'secret' => 'xTKZhcdz1EnS4E7slLbmiK9khgvYvwFcC1YAEWHvODJ+N1Vz',
  'trusted_domains' => 
  array (
    0 => 'peakunited.co',
    1 => '5.162.211.207',
    2 => 'localhost',
  ),
  'datadirectory' => '/home/peakunit/public_html/nextcloud/data',
  'dbtype' => 'sqlite3',
  'version' => '14.0.3.0',
  'overwrite.cli.url' => 'https://peakunited.co/nextcloud',
  'installed' => true,
  'mail_from_address' => 'admin',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'peakunited.co',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'mail.peakunited.co',
  'mail_smtpport' => '2525',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'admin@peakunited.co',
  'mail_smtppassword' => '^vB^?C)J!DVN',
);

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

I cannot find this in on the file manager server.

Anyone help?