GDrive - Backup failed, Invalid status code: 308

Bug 28287 Summary: WebException.Response is null under Mono, not null under .net appears similar.

308 Permanent Redirect explains how Google uses 308 in a non-standard way as Resume Incomplete

You can try researching that, but I wonder if your upload stalled due to some sort of a network problem.

Have you raised dblock-size (a.k.a Remote Volume size on screen 5 Options beyond default 50 MB?

You can watch About → Show log → Live → Retry to see files try to upload while watching Pi network traffic using something (I assume). Ideally traffic should happen when upload starts, and go until done…

EDIT:

From your log, it looks like a 308 came back from an upload and mono wound up considering it an error:

—> (Inner Exception #1) System.AggregateException: One or more errors occurred. (Invalid status code: 308) —> System.Net.ProtocolViolationException: Invalid status code: 308
at System.Net.HttpWebRequest.Redirect (System.Net.HttpStatusCode code, System.Net.WebResponse response) [0x000e2] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.HttpWebResponse response) [0x0016f] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.HttpWebRequest.GetResponseFromData (System.Net.WebResponseStream stream, System.Threading.CancellationToken cancellationToken) [0x0006f] in <3d97dda773a54430b892e1d794e5d921>:0
at System.Net.HttpWebRequest.MyGetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x002fd] in <3d97dda773a54430b892e1d794e5d921>:0
at Duplicati.Library.Main.Operation.Backup.BackendUploader.b__13_0 (<>f__AnonymousType12`1[j__TPar] self) [0x00673] in <8f1de655bd1240739a78684d845cecc8>:0

I’d note that the mono bug report at its end does give a workaround that I don’t think Duplicati is using.

308 appears to be a longstanding sore spot, and others have worked on it. Here’s a comment in code: