Support

UNiTE, Remote CLI, eXtract Wizard

#3680 Error using remote Control

Posted in ‘UNiTE and Remote CLI’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
Tool
UNiTE
Tool version
n/a

Latest post by nicholas on Monday, 20 December 2010 10:05 CST

user23281
Hi Guys.

I am trying to backup my site using Remote Control, but I always get this message: http/1.1 403 Forbidden.

Please help me fix this problem.

Thanks

nicholas
Akeeba Staff
Manager
Please follow all of the instructions in the setup chapter of our documentation. If you have already carried out those steps, try accessing the XML-RPC URL of your site, i.e. http://www.yoursite.com/xmlrpc/index.php. Normally you should receive an XML response with an error reading "XML error: no element found at line 1, column 0". If you receive anything but that, you have to take a look at your server setup, i.e. .htaccess directives which disable access to the xmlrpc directory of your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user23281
Hi,

I tried to nevigate to the XMLRPC diectory and I do not receive "XML error: no element found at line 1, column 0" but I receive "XML error: Invalid document end at line 1, column 1".

Where is the problem? Thank you.

nicholas
Akeeba Staff
Manager
Hm, your Joomla! XML-RPC service seems to be working. I am not sure if the plugin works, though. Can you send me a PM with the URL to your site and Super Admin login credentials so that I can test it from here?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
I just discovered the Remote Control feature of Akeeba backup today and am having similar issues. I am using Akeeba Backup 3.1.5 on Joomla 1.5.22. I have installed Akeeba Remoting XMLRPC Services for Akeeba 3.1 Plugin and enabled it. I have also enabled the XML-RPC-Joomla plugin thinking that was why I am getting an error within Remote Control, but it still doesn't work.

Here is my error: XML-RPC layer error: Invalid payload received from xml-rpc server.

I tried opening http://www.winwatermark.com/PhotoBatch/xmlrpc/index.php in a web browser and got this message: This XML file does not appear to have any style information associated with it. The document tree is shown below.









faultCode


105




faultString




XML error: Invalid document end at line 1, column 1








Can anyone tell me what I'm doing wrong in Remote Control? I'm manually configuring this particular website in Remote Control. I am able to successfully test the FTP connectivity, but when I highlight this site and click the Backup button, I get the above error.

Thanks a million!
Janis

jk15060
Please disregard my last post. I was able to get the Remote Control backup utility to work correctly on the site mentioned in my last post.

I am manually configuring the settings, and after removing the http:// portion, the backup started working correctly. I had tried that earlier, but had gotten a different message. I went back into Akeeba backup 3.1.5 and ran the Configuration Wizard against the Default Backup Profile and I think that's what made the Remote Control work properly. I had created a second backup profile and had already run the Config Wizard against it, but not the default.

Additionally, I had the incorrect profile ID. I never did "see" those options in Remote Control until I ran the wizard from the backend. Once I ran the wizard, I was able to view the profile IDs and realized it was prompting me for the Backup Profile ID and NOT the Joomla Username ID.

The backup completed successfully, but now I have a new error to Google. That error is: FTP transport error. I suspect it's because I don't have FTP enabled in the Global Configuration, so I'll check that first.

Thank you for a nifty way to backup multiple websites at one time!!! If I get the FTP error resolved, I will post how I fixed it.

Thanks!
Janis

nicholas
Akeeba Staff
Manager
Yes, running the Configuration Wizard automatically fixes most configuration issues. That's why I sneaked that feature in Akeeba Backup 3.1.5. It really cut down a lot of support requests :)

Regarding the FTP error, you're almost there but you're looking at the wrong end of the connection. The problem happens because the FTP settings you have supplied in Remote Control are wrong.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
First of all, I just LOVE this Remote Control application, especially when it works! :-) The scheduling portion is working great too! Seeing the backup kickoff when it's scheduled to start is very cool!

I'm still getting the FTP Transport Error, but have tested my FTP account/password in FileZilla and it works, so there must be something else that Remote Control doesn't like.

I see the FTP seem to make the connection, but the progress bar never moves. In my akeeba.xmlrpc.log file I see this at the bottom of the page:

No quotas were defined

I'm going back to revisit the documentation about the quotas to see what I might be doing wrong. This is a very small site with a 13mb file to download, so it shouldn't be the filesize, but something in the Akeeba settings.

Thank you very much for the reply. You right - I'm almost there!

Janis

user12238
hi there - not sure if this should be a new thread or not - i am also having issues with the remote control

after filling in all of the required information and selecting the backup folder, ftp details etc the wizard seem to be ok, however when i try to backup my sites i get an error message as follows:

XML-RPC layer error.Tresult.GetString - Item is not a string type

i am getting this for all of my sites - please let me know if this something that i am doing wrong!

stewart

nicholas
Akeeba Staff
Manager
@jk15060 The Akeeba Backup log won't tell us anything about the FTP transport error. The FTP operation runs after Akeeba Backup is done taking the backup file. You have to do something else instead. Try running a backup from Remote Control. When it fails, left- then right-click the site's name and click on View Log. Save the log file to a text file, ZIP it and attach it here.

@slancaster I think you just need to do the following:
1. Make sure you are using Akeeba Backup 3.1.5. If not, upgrade.
2. Install the correct plugin for Akeeba Backup 3.1.x. It can be found here.
3. Go to your site's Global Configuration and set "Enable Web Services" to Yes.
4. Go to your site's plugin manager and publish the plg_jpremote plugin.

This should allow Remote Control to work with your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
I just re-ran the Remote Control backup, pleased that the scheduling portion is still working as expected AND that I'm getting a backup of the site.

However, I'm still getting the FTP error at the end. I have attached the zip file of the Akeeba Backup Log file per your suggestion. Here are the last few lines of the log file:

[14/12 08:55:05] Got download progress signal: 33120 / 13733870 bytes
[14/12 08:55:05] Sending NOOP (connection keep-alive) command
[14/12 08:56:06] Download failed: Error during write to data connection

[14/12 08:56:06] Download failed: FTP transport error:

Going back to check my Akeeba Backup settings within Joomla and search the documentation for settings that I may have misconfigured.

Thank you for the reply!
Janis

nicholas
Akeeba Staff
Manager
Why did you enable FTP options before reading the documentation? You have to disable the keep alive checkbox. From the documentation page I linked to:



Try to keep FTP connection alive. Enabling this option sends a NOOP command every 10 seconds in order to keep the FTP connection from closing.



Warning



Most servers do not require this option. In fact, most servers will halt the download at about 32Kb if this option is enabled. Use only on servers which always seem to abort the download after a constant amount of time.



I marked the important phrase with bold. Sounds familiar? Your download is indeed failing at about 32Kb ;)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
Why did I enable that setting before implementing the dreaded RTFM? No reason except that I wanted to see if I could make it work before reading the documentation, just like any good IT person would do! :-)

I actually thought my issue was within the settings of Akeeba backup, and not the Remote Control piece, so it was that particular documentation I was sifting through.

Tested the backup and FTP this morning and it works like a charm.

Thank you for all your help! I'm off an running!

Janis

nicholas
Akeeba Staff
Manager
You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
Me again. Tried adding a few more websites to Remote Control and on each website I'm getting the error:

XML-RPC layer error: TResult.GetString - Item is not a string type.

These happen to be Windows hosted OS's and not Linux. Does that make a difference?

I have used the website that DOES work as a model for all my settings, but I'm missing something on all the Windows-hosted websites.

1) Web services enabled (Global Config)
2) Akeeba 3.1.5 - ran Configuration Wizard
3) Installed/enabled Akeeba Remoting XMLRPC services for Akeeba 3.1 Plugin
4) Enabled XML-RPC Joomla Plugin
5) DESELECTED "Try to keep FTP connection alive"

There is plenty of space on the server, so it's not that issue I read about in another post on this forum.

Any ideas would be greatly appreciated.

Thanks again!
Janis

nicholas
Akeeba Staff
Manager
Please send me the URL and Super Administrator login details to an affected site by means of a direct [https://www.akeebabackup.com/support/pm-inbox.html?task=new]Personal Message[/url]. I am user "nicholas". This will allow me to debug this issue directly on your server.

VERY IMPORTANT: Please include a link back to this post, otherwise it's impossible for me to know why you're sending me the PM.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
PM message sent, complete with link back to this forum thread, login account information, error message, and anything else I could think of to add.

Thank you Nicholas!

nicholas
Akeeba Staff
Manager
Janis, thank you for the PM. It looks like the Remote Control didn't want to work with the default backup profile on your server. I just had to double-click on the site definition, click on "Get Profiles", select the "Full site backup w/ db" profile, click OK and then run a backup. It worked.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
Good morning, Nicholas!
I was out of town all day yesterday, and meant to tell you that I am already getting a successful backup with the "Full Backup w Database" profile. It's when I get to the FTP portion that it fails, especially with ALL Windows-hosted servers.

In fact, I configured another Linux server and the backup and FTP download both worked without any issues, so there's something in the FTP portion that isn't right with all my Windows servers.

I'll give it another try today. I had run the Configuration Wizard on the Full Backup w Database profile, but does the Default Profile ALWAYS need to be run for the Remote Control to work properly? Is that part of your configuration? Just curious more than anything.

Thank you again for taking a peek at this for me. I'll let you know what I find out.

Janis

nicholas
Akeeba Staff
Manager
Janis, no, you don't have to use the default profile. Do note, however, that the Configuration Wizard applies its changes only to the active profile. This means that you have to select the intended profile in the Control Panel page first and then click on the Configuration Wizard button.

Regarding the failed FTP downloads, I think that the Windows server has a funky FTP service which gives the networking library a hard time :( This will be solved in Remote Control 4 which no longer uses XML-RPC and FTP to backup and download the archive. It uses a JSON API created from scratch and specially crafted to eliminate all the connectivity and download issues of the previous releases. Furthermore, the JSON API will be built inside the component itself, making sure that Remote Control works without requiring complex setup steps.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jk15060
Good morning!
So let me see if I understand this correctly. I won't be able to use FTP to download a backup file for any of my Windows-hosted servers. Correct statement? If so, how long before you script version four of Remote Control?

On a side note, I am able to use your Remote Control app to select which backup profile to use, so I'm not sure why that same profile must be selected within the Joomla backend of Akeeba. Maybe I misunderstood your comment. Perhaps it was the order in which I ran the Configuration Wizard in the Akeeba Component.

Either way, I am able to get Remote Control (including FTP) to work perfectly on all my Linux-hosted operating systems, but the FTP part doesn't work on Windows-hosted servers. At least that eliminates one step of the manual backup process for now.

I'm not very familiar with JSON API, nor do I want to be, but I'm glad you already have a solution in mind to resolve the FTP issue. Thanks so much for a great utility!

Janis

jk15060
Nicholas--
Just tried to run a backup from the site you were checking and it ran AND downloaded from the Remote Control utility. Did you make any changes or do anything differently? For some reason, this website (Windows-hosted) is now backing up AND downloading without any errors! Go figure!

Janis

PS. I've tried another website (Windows), by running the Config Wizard first, and then trying to run the backup/download via Remote Control and still get the TResult.GetString - Item is not a string type error.

Weird.

nicholas
Akeeba Staff
Manager
Hello Janis,

Yes, correct, you won't be able to automatically download the backup archives off your Windows servers. Akeeba Remote Control 4 is scheduled for release together with Akeeba Backup 3.2.a1 towards the end of the month. It will require Akeeba Backup 3.2.a1 or later to work, as previous versions do not have the necessary API. You needn't bother with the JSON API unless you want to develop your own solution similar to Akeeba Remote Control. It's my job to keep that comfortably tucked away from view :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager
Ah, I forgot to mention two things in my last reply :s

The backup profile you select in the component's backend and the one you select in Remote Control have nothing to do with each other. You can use completely different profiles on each one.

Regarding the inconsistent FTP results, I think that the FTP server software is doing something very funky. Not much I can do :(

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!