Dropbox OAuth failed

Hello,

I tried connect to Dropbox, get message
“Failed to connect: Error reading JObject from JsonReader. Path ‘’, line 0, position 0.”

Attach image

Settings Dropbox have this

Do you still have the problem? The error message indicates that the Dropbox server (or at least some server) is returning a non-json response.

This could be caused by proxies perhaps?

Hi kenkendk

Yes i’m still have the problem. The server is CentOS 7.

The server is CentOS 7, we do not use proxy, we use mikrotik for the firewall, before we had NethServer as a firewall, the same problem. You do not have to enable a port something like that?

All those who use oAuth (onedrive, dropbox, box, gdrive) I get the same error, with Mega.nz I have no inconvenience because it does not use.

Is there a duplicate log to see if there is more information about the error?

¿Can you help me?

There is no specific log for this part, but it basically sends your AuthID to duplicati-oauth-handler.appspot.com and gets an OAuth token back.

If you know the public IP for the machine, I can see if there is a problem on the server. Otherwise I suggest enabling socket debug logging as explained here:
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing

Simply copy the xml to a file called Duplicati.GUI.TrayIcon.exe.config and place it in the Duplicati folder, then restart Duplicati and you should get a trace of all network traffic in the network.log file.

I’m tried copy and restart service, but the network.log doesn’t appear in folder Duplicati.

I get log by email from duplicati

Failed: Error reading JObject from JsonReader. Path ‘’, line 0, position 0.
Details: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path ‘’, line 0, position 0.
at Duplicati.Library.Main.BackendManager.List () <0x41f34b60 + 0x00163> in :0
at Duplicati.Library.Main.Operation.FilelistProcessor.RemoteListAnalysis (Duplicati.Library.Main.BackendManager backend, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Database.LocalDatabase database, IBackendWriter log, System.String protectedfile) <0x41f317a0 + 0x00157> in :0
at Duplicati.Library.Main.Operation.FilelistProcessor.VerifyRemoteList (Duplicati.Library.Main.BackendManager backend, Duplicati.Library.Main.Options options, Duplicati.Library.Main.Database.LocalDatabase database, IBackendWriter log, System.String protectedfile) <0x41f2da70 + 0x000cb> in :0
at Duplicati.Library.Main.Operation.BackupHandler.PreBackupVerify (Duplicati.Library.Main.BackendManager backend, System.String protectedfile) <0x41f2c8e0 + 0x001a7> in :0

If you are using the service, the file should be named Duplicati.Server.exe.config

Unfortunately, it does not reveal more about the cause of the problem.

Copy xml file

in the folder /usr/lib/duplicati/
Duplicati.Server.exe.config and Duplicati.GUI.TrayIcon.exe.config

I’m restart duplicati service
systemctl restart duplicati.service

the files does not appear network.log

Maybe the path needs to be something else? Can you try setting the network.log path in the config file to be something world write-able, like /tmp/network.log ?

I’m enabled port 443 and add option duplicati --accept-any-ssl-certificat=true

I get message:

Backup started at 12/12/2017 8:18:19
Checking remote backup …
Listing remote folder …
Missing file: duplicati-20171210T165144Z.dlist.zip
Missing file: duplicati-b066c4fee48f6433b87c03039c554dbed.dblock.zip
Missing file: duplicati-i17da2c4cd2394a87ae1e40387c161057.dindex.zip
Missing file: duplicati-be60ac35114f641ca9f09de75ca7fc3a9.dblock.zip
Missing file: duplicati-ib0b254d3fb514ba9b5abc9e4bf921b76.dindex.zip
Missing file: duplicati-b708784514ab84a409480f279309a0e1b.dblock.zip
Missing file: duplicati-i02a9936c83d64d31be6560f81e4fb358.dindex.zip
Found 7 files that are missing from the remote storage, please run repair
Fatal error => Found 7 files that are missing from the remote storage, please run repair

Found 7 files that are missing from the remote storage, please run repair
Return code: 100

Arh, so a firewall issue.

That most likely means that the backup has run at some point, but now it can no longer find the files that were supposed to be at the remote site. Check the destination folder with https://drive.google.com and see if the files are there.

I’m set configuration in Dropbox, but I’m find files does not shown

I’m tried again and get this message:

Backup started at 12/12/2017 8:36:27
Checking remote backup …
Listing remote folder …
Missing file: duplicati-b066c4fee48f6433b87c03039c554dbed.dblock.zip
Missing file: duplicati-be60ac35114f641ca9f09de75ca7fc3a9.dblock.zip
Missing file: duplicati-b708784514ab84a409480f279309a0e1b.dblock.zip
Found 3 files that are missing from the remote storage, please run repair
Fatal error => Found 3 files that are missing from the remote storage, please run repair

Found 3 files that are missing from the remote storage, please run repair
Return code: 100

Attach image from dropbox

Clearly the files are not found on Dropbox.

I notice that they are all dblock files. Could it be that you have a very high volume-size setting so the files are larger than what Dropbox allows?

Do you get any errors during upload?

Configuration this:

–send-mail-username=sgh@hgsd.gob.ec
–send-mail-url=smtp://mail.hgsd.gob.ec:587/?starttls=always
–send-mail-password=************
–send-mail-subject=Duplicati %OPERATIONNAME% report for %backup-name%
–send-mail-to=vinicio.gomez@hgsd.gob.ec
–send-mail-level=Success,Error,Fatal
–send-mail-body=%RESULT%
–backup-name=dropbox-admision
–dbpath=/root/.config/Duplicati/OFHYYYYVHH.sqlite
–encryption-module=
–compression-module=zip
–dblock-size=25MB
–keep-time=3M
–no-encryption=true
–disable-module=console-password-input

I get message:
Backup started at 12/12/2017 15:09:09
Checking remote backup …
Listing remote folder …
promoting uploaded complete file from Uploading to Uploaded: duplicati-20171210T165144Z.dlist.zip
promoting uploaded complete file from Uploading to Uploaded: duplicati-i17da2c4cd2394a87ae1e40387c161057.dindex.zip
promoting uploaded complete file from Uploading to Uploaded: duplicati-ib0b254d3fb514ba9b5abc9e4bf921b76.dindex.zip
promoting uploaded complete file from Uploading to Uploaded: duplicati-i02a9936c83d64d31be6560f81e4fb358.dindex.zip
Missing file: duplicati-b066c4fee48f6433b87c03039c554dbed.dblock.zip
Missing file: duplicati-be60ac35114f641ca9f09de75ca7fc3a9.dblock.zip
Missing file: duplicati-b708784514ab84a409480f279309a0e1b.dblock.zip
Found 3 files that are missing from the remote storage, please run repair
Fatal error => Found 3 files that are missing from the remote storage, please run repair

Found 3 files that are missing from the remote storage, please run repair
Return code: 100

From Dropbox:

Yes, but this is a continued backup (i.e. you ran the backup before).

I was thinking that there might be errors or warnings reported during the first backup. In the listing here it also states that the dblock files are the problem.

I’m read other forum:

I’m trying add option –no-backend-verification set true

It’s works, but doesnt upload dblock

I have just re-tested uploading 50mb files to Dropbox without any problems.

My best guess is that this is a setting on your account that prevents storing the larger files. Maybe you are out of storage space on your plan?