WordPress.org

Ready to get started?Download WordPress

Forums

Online Backup for WordPress
[resolved] An online request succeeded but was malformed. (77 posts)

  1. zaheer22
    Member
    Posted 2 years ago #

    Hello,

    I think this is a great plugin, Once i am able to make it work reliably :) I found one problem with "receiving junk from your blog" was fixed by excluding the W3 total cache caches, from wp-contentt/w3tc . This solved a lot of my errors that I was seeing in the activity log. However it still fails with this :

    "The backup failed: Communication with the online vault failed."
    "An online request succeeded but was malformed."
    "Failed at: /var/www/wordpress/wp-content/plugins/wponlinebackup/include/transmission.php(244)"

    My username is just "zaheer"

    I am using CloudFlare, and W3 total cache, but as noted above i fixed all errors related to cacheing, Any suggestions to bring this amazing plugin to a functional level would ne GREATLY appreciated.

    http://wordpress.org/extend/plugins/wponlinebackup/

  2. zaheer22
    Member
    Posted 2 years ago #

    Here is the whole log:

    19th Apr 2012 8.57.19 PM Error The backup failed: Communication with the online vault failed.
    19th Apr 2012 8.57.19 PM Error An online request succeeded but was malformed.
    Please contact support if the issue persists, providing the complete event log for the activity. Diagnostic information follows:

    Failed at: /var/www/wordpress/wp-content/plugins/wponlinebackup/include/transmission.php(244)
    XML parser: Completed entries: 1
    XML log:
    New xml() object instantiated.
    fetch() called.
    Raw XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <SynchroniseItems Final="0">
    <Item>
    <Bin>1</Bin>
    <ID>1</ID>
    <ParentID>0</ParentID>
    <Type>1</Type>
    <Name>OBFW_Database.sql</Name>
    <Exists>1</Exists>
    <FileSize>1300106</FileSize>
    <ModTime>1334811104</ModTime>
    <Path></Path>
    </Item>
    <Item>
    <Bin>2</Bin>
    <ID>1</ID>
    <ParentID>0</ParentID>
    <Type>0</Type>
    <Name></Name>
    <Exists>1</Exists>
    <FileSize></FileSize>
    <ModTime></ModTime>
    <Path>a:0:{}</Path>
    </Item>
    </SynchroniseItems>

  3. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer,

    Can you run another backup? There was a corruption in the backup file somewhere. I've setup diagnostics to see if we can find out what is happening to it.

    Jason.

  4. zaheer22
    Member
    Posted 2 years ago #

    Hey there,

    I changed my username for testing.. to "zaheer22" it worked once and only once.. then the following again. I tried to switch back to the other name but the system would not allow me , saying my blog is not registered, no matter how many times i re-ran it, So now im just using "zaheer22" same errors...

    20th Apr 2012 3.39.03 PM Error The backup failed: Communication with the online vault failed.
    20th Apr 2012 3.39.03 PM Error An online request succeeded but was malformed.
    Please contact support if the issue persists, providing the complete event log for the activity. Diagnostic information follows:

    Failed at: /var/www/wordpress/wp-content/plugins/wponlinebackup/include/transmission.php(244)
    XML parser: Completed entries: 1
    XML log:
    New xml() object instantiated.
    fetch() called.
    Raw XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <SynchroniseItems Final="0">
    <Item>
    <Bin>1</Bin>
    <ID>1</ID>
    <ParentID>0</ParentID>
    <Type>1</Type>
    <Name>OBFW_Database.sql</Name>
    <Exists>1</Exists>
    <FileSize>1304275</FileSize>
    <ModTime>1334934485</ModTime>
    <Path></Path>
    </Item>
    <Item>
    <Bin>2</Bin>
    <ID>1</ID>
    <ParentID>0</ParentID>
    <Type>0</Type>
    <Name></Name>
    <Exists>1</Exists>
    <FileSize></FileSize>
    <ModTime></ModTime>
    <Path>a:0:{}</Path>
    </Item>
    </SynchroniseItems>

  5. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer22,

    I'd fixed the error on the zaheer account. I've fixed it on the zaheer22 account so it should let you run another backup. It will fail on the one after again though but it will create some diagnostics for me so we can get to the bottom of the issue.

    So just run another backup and let me know.

    Thanks,

    Jason.

  6. zaheer22
    Member
    Posted 2 years ago #

    Running another backup to Account "Zaheer" domain khurshed.com Can you let me know what you see? i am leaving it on hourly for now.

  7. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer22,

    I saw a backup run but it didn't seem to include the filesystem, which is where the problem was happening. If it will run that on schedule in a hour or so that is fine. I will let you know if I need anything else on Monday if not before then. Thanks for the cooperation.

    Jason.

  8. zaheer22
    Member
    Posted 2 years ago #

    Tried again, On zaheer22 , Received the following :

    The backup failed: The server returned the following error message: The backup serial number has changed.
    21st Apr 2012 12.58.26 AM Error A transmission operation failed.
    If the following error message is not clear as to the problem and the issue persists, please contact support providing the complete event log for the activity. Diagnostic information follows:

    Failed at: /var/www/wordpress/wp-content/plugins/wponlinebackup/include/transmission.php(737)
    An online request failed: The server responded with status code 500 and error code 4102: The backup serial number has changed.

  9. zaheer22
    Member
    Posted 2 years ago #

    Update on Account zaheer22,

    Very strange, I got 12 successful hourly backups, most "green" i've ever seen this plugin, then it began to fail again same error:

    The backup failed: The server returned the following error message: The backup serial number has changed.
    21st Apr 2012 8.36.43 PM Error A transmission operation failed.
    If the following error message is not clear as to the problem and the issue persists, please contact support providing the complete event log for the activity. Diagnostic information follows:

    Failed at: /var/www/wordpress/wp-content/plugins/wponlinebackup/include/transmission.php(737)
    An online request failed: The server responded with status code 500 and error code 4102: The backup serial number has changed.

  10. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer22,

    Still looking into this. Apologies for the inconvenience.
    What timezone is your WordPress set to?

    I'm interested in the backup activity at the following time (GMT) if you could let us know what the event log for it was. Not sure if it is the same as the one you are saying but if it is let me know as it looks to be a new issue.
    21/Apr/2012 20:27:14

    There is a new update coming out soon fixing some other issues so it would be good to resolve this for that update!

    Thanks for the cooperation, and again, apologies for the inconvenience.

    Jason

  11. zaheer22
    Member
    Posted 2 years ago #

    Hey There,

    Time is an interesting thing i've noticed with this Plugin.. WordPress has the correct time zone, I see the correct time in posts etc. Also on the Backup-tech wordpress portal the time is correct. However, in the plugin itself the time is never what I expect it to be

    For example WordPress right now says : Local time is 2012-04-23 7:05:52
    Backup Plugin: 23rd Apr 2012 1.02.32 PM
    Backup-Tech wordpress portal Says last Backup : Today, 7.02 am

    it is currently 7:11AM , So thats how I know the time is messed up i the plugin itself. I thought maybe it was just programmed to be permanently in UK time, not sure if that's a "feature".

    Also, i've had a string of successful backups more than 20 hourlies, 2 failures then 5 more successful backups. (Weird). Look forward to seeing this plugin get to 100% functional, no one offers what you guys do. I'm not sure if the plan is to take away the free service after it's stable, but if it is, I hope you grandfather in existing people :)

  12. zaheer22
    Member
    Posted 2 years ago #

    The particular log your asking about has no real info unfortunately:

    Activity ID: 43

    Completion: Unexpected stop

    Start Time: 21st Apr 2012 8.27.13 PM
    End Time: 21st Apr 2012 8.29.07 PM

    Time Type Event
    Time Type Event
    21st Apr 2012 8.27.42 PM Information Folder /wordpress/wp-content/plugins/wponlinebackup was excluded.
    21st Apr 2012 8.27.42 PM Information Folder /wordpress/wp-content/w3tc was excluded.
    21st Apr 2012 8.27.41 PM Information Folder /wordpress/projects was excluded.
    21st Apr 2012 8.27.41 PM Information Database backup completed.
    21st Apr 2012 8.27.13 PM Information Initialisation completed.
    21st Apr 2012 8.27.13 PM Information Backup starting...

  13. zaheer22
    Member
    Posted 2 years ago #

    The last failure is this as well, This is unusual, I haven't changed a thing:

    Start Time: 23rd Apr 2012 8.02.32 AM
    End Time: 23rd Apr 2012 8.04.30 AM

    The backup failed: The server attempted to retrieve the data, but received junk from your blog. This can happen if your blog is not accessible over the internet. Otherwise, you may have a third-party plugin installed that is changing the backup data as the server tries to receive it. Please contact support if this is the case so we may improve compatibility.

  14. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer22,

    Can you go to General Settings, then edit the URL and change the end bit from settings to advanced:
    /wp-admin/tools.php?page=wponlinebackup%2Fwponlinebackup.php&section=advanced

    And let me know what "time_presumed_dead" is set to? Should be 7200 but that Unexpected Stop seems to think less than 120. Definitely unusual but I'd like to find out why.

    Thanks,

    Jason.

  15. zaheer22
    Member
    Posted 2 years ago #

    Hey there,

    time_presumed_dead = 7200
    max_execution_time= 15
    timeout_recovery_time= 130

    I noticed ignore_ssl_cert = NO , and i have a self signed SSL cert, but the site is typically accessed through 80, Any chance it has a relationship?

  16. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer,

    The ignore_ssl_cert is fine. It only affects communication with our server.

    Can you let me know the relationship between ssl. and direct. and www. for your wordpress domain? I see backup attempts coming from each.

    Do they share the same WordPress installation? If not, does each WordPress potentially share the same database?

    I think this is key as it seems when a backup from direct. starts, if there is a backup from ssl. running it interrupts it somehow.

    Jason.

  17. zaheer22
    Member
    Posted 2 years ago #

    So i have no idea what defines what the plugin will use for a hostname when it starts backing up. But as i mentioned before I am using CloudFlare. So here's how it works:

    my domain, http://www.khurshed.com -- Uses CloudFlare NameServers. and Points to their IP, they handle Web requests and request what they can not cache from my servers IP.

    both, direct.khurshed.com and ssl.khurshed.com are direct DNS entries bypassing any CloudFlare infrastructure, those resolve to the servers true IP, no CDN. I also noticed both backups, and I have no idea why sometimes it decides to use one DNS name or the other, but they are the EXACT SAME server and exact same DB.

  18. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer,

    Really close to this now. I think I have a potential fix we can try.

    Can you go into Plugins -> Editor in your blog, and in the top right select Online Backup for WordPress and click the "Select" button.

    Then underneath it after the page reloads you'll see Plugin Files, click the link for wponlinebackup/include/transmission.php.

    If you scroll to the bottom and work your way up you'll eventually get to this:

    /*private*/ function Request( $method, $api, $data, & $xml, $body, $in_backup )
    	{
    		$q = array();
    
    		$api = urlencode( $api );
    
    // Create the query string
    		$data['blogurl']	= site_url( '/' );

    Change the site_url('/') to this:

    /*private*/ function Request( $method, $api, $data, & $xml, $body, $in_backup )
    	{
    		$q = array();
    
    		$api = urlencode( $api );
    
    // Create the query string
    		$data['blogurl']	= 'ssl.khurshed.com';

    This will stop it changing and we can see if it fixes.

    One other thing. Do you have a plugin that allows ssl.khursed.com to be used for SSL? Is it "WordPress HTTPS"? I am wondering if it is this that changes the URL mid backup. The workarounds I'm working on now will prevent this but I'd like to know the plugin so I can be sure I can test it.

    Thanks,

    Jason.

  19. zaheer22
    Member
    Posted 2 years ago #

    Did that, Got this :
    The backup failed: The server returned the following error message: The blog URL of your WordPress installation does not appear to be valid. Please note that this plugin will only work on public websites, and not within an intranet or home network. If you believe your blog URL is correct, please contact support. Please consult the event log for more information.

    then changed to : http://www.khurshed.com and got this:
    The backup failed: Communication with the online vault failed.
    24th Apr 2012 6.41.30 PM Error An online request succeeded but was malformed.
    Please contact support if the issue persists, providing the complete event log for the activity. Diagnostic information follows

  20. zaheer22
    Member
    Posted 2 years ago #

    Also, there is no plugin that allows ssl.khurshed.com for https, its not secure unless https:// is specified , all it is , is a Cloudflare bypass.

  21. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer,

    I think that fixed the random failures now. I'll roll out that fix in 2.2.2 which is due for QA testing soon.

    So we're back to the corruptio I fixed right at the start. Can you let the backup run again, I've fixed it again and put in some more logging to see what's causing it.

    Hopefully we'll be all good to go soon. Sorry for the issues and I really do appreciate your help in making the plugin better and more reliable.

    Thanks,

    Jason.

  22. zaheer22
    Member
    Posted 2 years ago #

    I guess it did not like all that tinkering.. After all that they all fail now. After removing and reinstalling the plugin still getting this :

    24th Apr 2012 11.44.49 PM Error The backup failed: Communication with the online vault failed.
    24th Apr 2012 11.44.49 PM Error An online request succeeded but was malformed.
    Please contact support if the issue persists, providing the complete event log for the activity. Diagnostic information follows:

    Failed at: /var/www/wordpress/wp-content/plugins/wponlinebackup/include/transmission.php(244)
    XML parser: Completed entries: 1
    XML log:
    New xml() object instantiated.
    fetch() called.
    Raw XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <SynchroniseItems Final="0">
    <Item>
    <Bin>1</Bin>
    <ID>1</ID>
    <ParentID>0</ParentID>
    <Type>1</Type>
    <Name>OBFW_Database.sql</Name>
    <Exists>1</Exists>
    <FileSize>1376657</FileSize>
    <ModTime>1335307520</ModTime>
    <Path></Path>
    </Item>
    <Item>
    <Bin>2</Bin>
    <ID>1</ID>
    <ParentID>0</ParentID>
    <Type>0</Type>
    <Name></Name>
    <Exists>1</Exists>
    <FileSize></FileSize>
    <ModTime></ModTime>
    <Path>a:0:{}</Path>
    </Item>
    </SynchroniseItems>

  23. zaheer22
    Member
    Posted 2 years ago #

    Well after 6 failures, 2 successful again. Im happy to help any way I can, If your feeling generous you can increase my backup to 200 so I can backup my whole site ;) . Any idea on what causes the random inconsistency? I've left it on hourly again so you can hopefully see whats going on.

  24. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer,

    Found what might be causing it.

    Go here and download the Development Version.
    http://wordpress.org/extend/plugins/wponlinebackup/download/

    Just write down your encryption details etc and uninstall the plugin. Then go to Plugins -> Add New and click Upload and upload this development version.

    Try it out and let me know how it goes.

    Regards,

    Jason

  25. zaheer22
    Member
    Posted 2 years ago #

    Hey There, Installed the dev version.

    First Manual backup gave this error:

    25th Apr 2012 1.08.20 PM Error The backup failed: The server attempted to retrieve the data, but received junk from your blog. This can happen if your blog is not accessible over the internet. Otherwise, you may have a third-party plugin installed that is changing the backup data as the server tries to receive it. Please contact support if this is the case so we may improve compatibility.

    However 2nd manual backup worked without issue, And I am once again leaving on hourly to make sure all is well.

  26. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Zaheer,

    Many thanks.

    Were any backups run before that first manual one? Can you check the Activity log. Or was that the first manual backup you ran on the dev version?

    It's just i'm seeing the following since you activated the dev version:
    12.52.10 PM - Dev version logged in to Online Vault (Online Backup Settings page submitted)
    12.52.41 PM - Backup started (1st)
    1.02.37 PM - Backup started (2nd)
    1.05.11 PM - Backup started (3rd)
    1.08.19 PM - Backup finished (3rd) - Received junk
    1.11.42 PM - Backup started (4th)
    1.35.37 PM - Backup finished (4th) - Received successfully

    Just wondering what those two unknowns are at 12.52.41 and 1.02.37.

    Regards,

    Jason.

  27. zaheer22
    Member
    Posted 2 years ago #

    Those "Unexpected stops" i have no idea. i did not initiate them. The only thing i can hypothesize is that when i set them to hourly. they may have tried to initiate themselves.

    The first Manual i ran at 25th Apr 2012 1.08.20 PM according to the log.
    That one failed with the error above, I have since run two additional manual backups successfully :) . I am still leaving it on hourly , probably for the next 24 hours to ensure successful all the way through. Do you want to know if it fails again?

  28. Online Backup
    Member
    Plugin Author

    Posted 2 years ago #

    Hi zaheer,

    Not sure what might cause those to initiate themselves but I've fixed a broken check that should've stopped the 2nd one starting and should've shown you the 1st one running and not let you start a 3rd.

    I've also sorted the times so they'll display in local time.

    I'll drop these into the dev version later on but I think your blog should back up fine now so you can just wait for the full release, and I'll let you know when it is so you can update to it.

    Thanks,

    Jason.

  29. zaheer22
    Member
    Posted 2 years ago #

    Fantastic, Im glad i could be a (small) part of making this plugin better! , By allowing users to host their own keys, you do truly over a very secure solution! If you could let me know when the Dev version is up, ill install it anyway . I would like to check it out ;)

  30. zaheer22
    Member
    Posted 2 years ago #

    Last thing i thought I would let you know.. Using InnoDB mYSQL databases instead of myISAM works, but the activity log events can not be viewed. It seems all elements are OK in innoDB except wp_wponlinebackup_items even after reinstalling the plugin (ripping out all the tables) it likes to go back in as MyISAM. Just telling you as an FYI

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic