Berimor66 / duplicati

Automatically exported from code.google.com/p/duplicati
0 stars 0 forks source link

Backup to S3 failing with DTD parser error #738

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. New S3 account
2. Configure backup (access key, etc.) (I see the created bucket in S3 console)
3. Configure folders (total 16 Gb in 10 folders) (photo's)
4. <run now> in wizrd

What is the expected output? What do you see instead?
I should just be running, instead I get the following error:

Error: Failed to upload file 
"duplicati-full-content.20121029T165024Z.vol1.zip.aes": -- is een onverwacht 
token. Het verwachte token is >. Regel 31, positie 3.

Error: System.Exception: Failed to upload file 
"duplicati-full-content.20121029T165024Z.vol1.zip.aes": -- is een onverwacht 
token. Het verwachte token is >. Regel 31, positie 3. ---> 
System.Xml.XmlException: -- is een onverwacht token. Het verwachte token is >. 
Regel 31, positie 3.
   bij System.Xml.XmlTextReaderImpl.Throw(Exception e)
   bij System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
   bij System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
   bij System.Xml.DtdParser.ScanClosingTag()
   bij System.Xml.DtdParser.ParseEntityDecl()
   bij System.Xml.DtdParser.ParseSubset()
   bij System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
   bij System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
   bij System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   bij System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
   bij System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
   bij System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules)
   bij System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt)
   bij System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   bij System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
   bij System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results)
   bij System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, TextWriter results)
   bij Amazon.S3.AmazonS3Client.transform(String responseBody, String actionName, Type t)
   bij Amazon.S3.AmazonS3Client.processRequestError(String actionName, HttpWebRequest request, WebException we, HttpWebResponse errorResponse, String requestAddr, WebHeaderCollection& respHdrs, Type t, Exception& cause)
   bij Amazon.S3.AmazonS3Client.handleHttpWebErrorResponse(S3Request userRequest, WebException we, HttpWebRequest request, HttpWebResponse httpResponse, Exception& cause, HttpStatusCode& statusCode)
   bij Amazon.S3.AmazonS3Client.getResponseCallback[T](IAsyncResult result)
   bij Amazon.S3.AmazonS3Client.endOperation[T](IAsyncResult result)
   bij Amazon.S3.AmazonS3Client.EndPutObject(IAsyncResult asyncResult)
   bij Duplicati.Library.Backend.S3Wrapper.AddFileStream(String bucketName, String keyName, Stream source)
   bij Duplicati.Library.Backend.S3.Put(String remotename, Stream input)
   bij Duplicati.Library.Main.BackendWrapper.PutInternal(BackupEntryBase remote, String filename)
   --- Einde van intern uitzonderingsstackpad ---
   bij Duplicati.Library.Main.BackendWrapper.ExtractPendingUploads()
   bij Duplicati.Library.Main.Interface.Backup(String[] sources)
   bij Duplicati.GUI.DuplicatiRunner.ExecuteTask(IDuplicityTask task)
InnerError: System.Xml.XmlException: -- is een onverwacht token. Het verwachte 
token is >. Regel 31, positie 3.
   bij System.Xml.XmlTextReaderImpl.Throw(Exception e)
   bij System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
   bij System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
   bij System.Xml.DtdParser.ScanClosingTag()
   bij System.Xml.DtdParser.ParseEntityDecl()
   bij System.Xml.DtdParser.ParseSubset()
   bij System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
   bij System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
   bij System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   bij System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
   bij System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
   bij System.Xml.Xsl.Runtime.XmlQueryContext..ctor(XmlQueryRuntime runtime, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, WhitespaceRuleLookup wsRules)
   bij System.Xml.Xsl.Runtime.XmlQueryRuntime..ctor(XmlQueryStaticData data, Object defaultDataSource, XmlResolver dataSources, XsltArgumentList argList, XmlSequenceWriter seqWrt)
   bij System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   bij System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
   bij System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results)
   bij System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input, XsltArgumentList arguments, TextWriter results)
   bij Amazon.S3.AmazonS3Client.transform(String responseBody, String actionName, Type t)
   bij Amazon.S3.AmazonS3Client.processRequestError(String actionName, HttpWebRequest request, WebException we, HttpWebResponse errorResponse, String requestAddr, WebHeaderCollection& respHdrs, Type t, Exception& cause)
   bij Amazon.S3.AmazonS3Client.handleHttpWebErrorResponse(S3Request userRequest, WebException we, HttpWebRequest request, HttpWebResponse httpResponse, Exception& cause, HttpStatusCode& statusCode)
   bij Amazon.S3.AmazonS3Client.getResponseCallback[T](IAsyncResult result)
   bij Amazon.S3.AmazonS3Client.endOperation[T](IAsyncResult result)
   bij Amazon.S3.AmazonS3Client.EndPutObject(IAsyncResult asyncResult)
   bij Duplicati.Library.Backend.S3Wrapper.AddFileStream(String bucketName, String keyName, Stream source)
   bij Duplicati.Library.Backend.S3.Put(String remotename, Stream input)
   bij Duplicati.Library.Main.BackendWrapper.PutInternal(BackupEntryBase remote, String filename)
Cleanup output:

What version of Duplicati are you using? On what operating system?
Duplicati 1.3.3 on Windows 7 (64 bit)

What backend (destination) are you using?
S3 (Ireland) from The Netherlands

Please provide any additional information below.

First I configured only 1 folder with everything in it, this seems to huge to 
me, so I splitted my photo's per year.

Original issue reported on code.google.com by WillemJ...@gmail.com on 29 Oct 2012 at 7:50

GoogleCodeExporter commented 9 years ago
I think S3 reports some kind of error message, but the S3 library thinks it is 
an Xml response and that fails with a non-informative error.

Since the initial "list" operation succeeds and the Put operation fails, I am 
thinking that the user is not allowed to write to the bucket in question? Does 
that make sense?

Original comment by kenneth@hexad.dk on 4 Nov 2012 at 12:04