Publishing of website created using Web Presence Builder fails : Cannot publish to the specified host via ftp

Created:

2016-11-16 13:12:11 UTC

Modified:

2017-08-16 16:21:41 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Publishing of website created using Web Presence Builder fails : Cannot publish to the specified host via ftp

Applicable to:

  • Web Presence Builder for Linux

Symptoms

Website publishing fails with the following error:

The site cannot be published to the specified location.
Cannot publish to the specified host via ftp. Authorization failed.

There is the following error message in sitebuilder.log :

# tail -fn0 /usr/local/sb/tmp/sitebuilder.log
...

2015-08-05T08:52:39-04:00 [ERR] /JsonApi/

Main check script address: http://<domain_name>:80/static.html

Request to main check script result: <pre>object(Zend_Http_Response)#6344 (5) {
[&quot;version&quot;:protected] =&gt; string(3) &quot;1.1&quot;
[&quot;code&quot;:protected] =&gt; int(404)
[&quot;message&quot;:protected] =&gt; string(9) &quot;Not Found&quot;
[&quot;headers&quot;:protected] =&gt; array(5) {
[&quot;Date&quot;] =&gt; string(29) &quot;Wed, 05 Aug 2015 13:00:29 GMT&quot;
[&quot;Server&quot;] =&gt; string(6) &quot;Apache&quot;
[&quot;Content-length&quot;] =&gt; string(3) &quot;353&quot;
[&quot;Connection&quot;] =&gt; string(5) &quot;close&quot;
[&quot;Content-type&quot;] =&gt; string(29) &quot;text/html; charset=iso-8859-1&quot;
}
[&quot;body&quot;:protected] =&gt; string(353) &quot;&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;
&lt;title&gt;404 Not Found&lt;/title&gt;
&lt;/head&gt;&lt;body&gt;
&lt;h1&gt;Not Found&lt;/h1&gt;
&lt;p&gt;The requested URL /af4573b98869c361312c17f4aff21f72.php was not found on this server.&lt;/p&gt;
&lt;p&gt;Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.&lt;/p&gt;
&lt;/body&gt;&lt;/html&gt;
&quot;
}

Cause

The issue caused by incorrect target_url value in site_publish_settings table in WebPresenceBuilder's database.

Resolution

In order to fix the issue do the following:

  1. Check what path to publishing location is set for affected domain, e.g /home/<ftp_user>/<publishing_directory>/ , where <ftp_user> is publishing FTP user and <publishing_directory> is DocumentRoot directory.

    1.1 If WebPresenceBuilder instance registered in OSA then correct path to publishing location can be found in Location field in Services > Web Hosting > Websites .

  2. Correct target_url parameter with correct one:

    mysql> update site_publish_settings set target_url="ftp://<ftp_user>:<encrypted_password>@<domain_name>/public_html" where url like '%<domain_name>%';
Have more questions? Submit a request
Please sign in to leave a comment.