OneDrive Error 401

Have questions about Backup4all, or having problems using it? Ask here for help.
lk-system
Posts: 1
Joined: Mon Jul 31, 2017 1:24 pm

OneDrive Error 401

Post by lk-system »

We have recently bought a professional license and trying to make a backup to OneDrive since the company we work for owns an Office 365 account with 1 TB OneDrive cloud storage.
Unfortunately we encountered some problems during the backup. I tried to make a daily mirror backup but it failed for some reason.
I have backup4all 6.5.373 running on a HP server OS: Windows 2012 R2 hungarian language version
source was a network drive but we tried a local disc too. Didn't work either.
I would like to point out that the connection seems ok when I setup the onedrive account. If I press the test connection the output is: The cloud connection was tested succesfully.
Since I am not sure what to share from the log file, I am just going to put some information here that I think is relevant. I am sure you will request the information you need if I missed any.

[2017.07.31. 10:57:00] Checking backup destination (OneDrive)
[2017.07.31. 10:57:03] [0] GET https://***-my.sharepoint.com/_api/v2.0/drive/
- Error : 401
{"error_description":"Invalid JWT token. Could not resolve issuer token."}
HTTP/1.1 401 Unauthorized
[2017.07.31. 10:57:04] Opening file "C:\Users\***\AppData\Roaming\Softland\Backup4all 6\Catalogs\Felho - NAPI.bkc"
[2017.07.31. 10:57:04] Checking if the drives of the sources exist
[2017.07.31. 10:57:04] Creating the list of files to backup
[2017.07.31. 10:57:04] Opening file ":memory:"
[2017.07.31. 10:57:04] Cannot use USN journal for this backup. Reason: There are not enough files in the backup
[2017.07.31. 10:57:41] Folders found to backup: 6 004
[2017.07.31. 10:57:41] Files found to backup: 81 282 (71,08 GB)

[2017.07.31. 10:57:42] Preparing shadow copy
[2017.07.31. 10:57:42] There are no source drives that support Volume Shadow Copy.
[2017.07.31. 12:02:39] [0] PUT https://***-my.sharepoint.com/personal/***_***_hu/_api/v2.0/drive/items/0164GN4BCR2J3BI67SPZCYSAZWFZFLLJJI/uploadSession?guid='674c80f5-a033-4f42-a7ed-0a831614aeed'&path='~tmp35_Hegeszt%C5%91%20berendez%C3%A9sek%20%C3%A9ves%20karbantart%C3%A1si%20%C3%A9s%20ellen%C5%91rz%C3%A9si%20lapja%20_%202016.pd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PT2RnUG1veVZZWGRoRTRUZXBqaDJQMEJ6N1pMb094RzJtdUFXQnFCMFl1OVJIdnFmZzZFOS9oQmNJK1I1OGR2VG1sRkNWb0VON0xTQWlFK3diakQydVpmTGdnRi9UQk5OdytCd2ZzdmRIdnUxczdUZzBTdy9Wc29PaGoyTHB2YmpUSTFRbU1NRlNuZXByU2ZYdGs5cjFsblRZOHJsVXhnamdSMVJvVGpQNTRaREZoSWJyVTc5cUJQZUJwcHlqdU1DZWMyWmtZMFJwcnBwOFBpNng5Vy84ZjJkQkdPS056M3pkalFRa2Rla1BmY1ZMSGNydTZUOTkxd1pJc2R3OUJLZUQ3djdvOE1rdFZSMTFWTG15SkZGWkN4U1VZTG1tak80VUhCTkQvOHhhcnNId3dnaHc4eTFWSjNkMVVFck9kWTFQOTZTNWgweHRLbFE9PSIsImlzdXNlciI6InRydWUifQ.STkG26asiLIJ3JN-2tGylQ8oXnIgKr_muAYU1UxHNVH4Mv6icGdiiEmKIW1umHTbbJPFFkYnIcPEeXXbkbyd-ur9ejAU-Hc1UW-5UO_h8zZGbtmWsMVBH_sRUtkiFQaAr8ruRkQIpiOIRyW9hjrDL4x2avZPNAwY2kppny4coOBTL1gElom5XjZ-R8iXulD7xTqvQdGVhQmYAldTZo9m3EXWGqdeqOnu2-m2I1Xg2Ty-6q-pWkovksPEwn6vBfnThOxCYANMNDCVC5Dddf3Jeum-u3mBHKANRxenWh3-SfpgAP0yuMJ4eqox-gQhqLH4RC79Ztt6_A-JQDqncxy3JQ
- Error : 401

HTTP/1.1 401 Unauthorized
[2017.07.31. 12:02:39] Upload returned 401. Will retry after sleeping 2140
.....log file continues I just left it out.
I stopped the job because it was just sleeping. Actually it uploaded some small files but that's about it.

Thanks for your help in advanced.

Adrian (Softland)
Posts: 1948
Joined: Wed Dec 16, 2009 12:46 pm

Re: OneDrive Error 401

Post by Adrian (Softland) »

Hi,

Please create a new backup job with less files to be backed up (approx 1 GB) and run it.
Let us know the results.

You can send us the complete backup log to support[at]backup4all[dot]com

mgpslz
Posts: 1
Joined: Thu Sep 27, 2018 11:38 am

Re: OneDrive Error 401

Post by mgpslz »

The backup was working normal suddenly began to generate error.
Backup4all Professional 7.4.461

}
HTTP/1.1 401 Unauthorized
[26/09/2018 19:30:10] Abrindo o arquivo "C:\Users\administrador.GARRETO\AppData\Roaming\Softland\Backup4all 7\Catalogs\ASPEC_CLOUD.bkc"...
[26/09/2018 19:30:16] Verificando se unidades das orígens existem...
[26/09/2018 19:30:16] Criando a lista dos arquivos do backup...
[26/09/2018 19:30:16] Abrindo o arquivo ":memory:"...
[26/09/2018 19:30:16] Não é possível usar o Journal USN para este backup. Motivo: O tipo de backup é Completo
[26/09/2018 19:31:03] Pastas encontradas para o backup: 1.944
[26/09/2018 19:31:03] Arquivos encontrados para o backup: 41.792 (5,65 GB)

[26/09/2018 19:31:04] Preparando a cópia sombra...
[26/09/2018 19:31:23] A cópia sombra foi criada para as unidades C:

[26/09/2018 19:31:23] Arquivando os arquivos em 2018-09-26.2_C.zip

[26/09/2018 19:36:18] Testando o conteúdo do zip C:\Users\administrador.GARRETO\AppData\Local\Temp\10\Softland\Backup4all 7\JIG3CTHGE117908SDPKPV50PBI73\2018-09-26.2_C.zip...
[26/09/2018 20:31:55] Tentar enviar o arquivo "C:\Users\administrador.GARRETO\AppData\Local\Temp\10\Softland\Backup4all 7\JIG3CTHGE117908SDPKPV50PBI73\2018-09-26.2_C.zip" novamente para "/Backup/ASPEC_CLOUD/2018-09-26.2_C.zip" (OneDrive)
Você precisa acessar a conta na nuvem para poder realizar o backup.
[26/09/2018 20:32:55] Tentar enviar o arquivo "C:\Users\administrador.GARRETO\AppData\Local\Temp\10\Softland\Backup4all 7\JIG3CTHGE117908SDPKPV50PBI73\2018-09-26.2_C.zip" novamente para "/Backup/ASPEC_CLOUD/2018-09-26.2_C.zip" (OneDrive)
HTTP/1.1 401 Unauthorized (401)
[26/09/2018 20:33:56] Tentar enviar o arquivo "C:\Users\administrador.GARRETO\AppData\Local\Temp\10\Softland\Backup4all 7\JIG3CTHGE117908SDPKPV50PBI73\2018-09-26.2_C.zip" novamente para "/Backup/ASPEC_CLOUD/2018-09-26.2_C.zip" (OneDrive)
HTTP/1.1 401 Unauthorized (401)
[26/09/2018 20:34:56] Tentar enviar o arquivo "C:\Users\administrador.GARRETO\AppData\Local\Temp\10\Softland\Backup4all 7\JIG3CTHGE117908SDPKPV50PBI73\2018-09-26.2_C.zip" novamente para "/Backup/ASPEC_CLOUD/2018-09-26.2_C.zip" (OneDrive)
HTTP/1.1 401 Unauthorized (401)
Backup cancelada. Motivo::
Não é possível enviar o arquivo "C:\Users\administrador.GARRETO\AppData\Local\Temp\10\Softland\Backup4all 7\JIG3CTHGE117908SDPKPV50PBI73\2018-09-26.2_C.zip" para "/Backup/ASPEC_CLOUD/2018-09-26.2_C.zip" (OneDrive). HTTP/1.1 401 Unauthorized (401)
Próximo backup agendado: 27/09/2018 19:30:00
O backup foi cancelado após 1:04:54 hora(s), às 26/09/2018 20:34:59 com 1 erro(s) e 0 aviso(s)

Adrian (Softland)
Posts: 1948
Joined: Wed Dec 16, 2009 12:46 pm

Re: OneDrive Error 401

Post by Adrian (Softland) »

Hi,

Please open Backup Properties->Compression.
Set the split size at 1 GB and also select the "Create independent splits" option.
Press Save and run again the backup.
Do you still have the problem?