Unable to publish a website in Web Presence Builder: Cannot create directory public_html on FTP target

Created:

2016-11-16 12:48:13 UTC

Modified:

2017-08-16 16:30:04 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to publish a website in Web Presence Builder: Cannot create directory public_html on FTP target

Applicable to:

  • Web Presence Builder for Linux

Symptoms

Unable to publish a website in Web Presence Builder, the following error occurs in Editor:

The site cannot be published to the specified location.
Cannot connect to the host via ftp or do not have permissions for writing.

In /usr/local/sb/tmp/sitebuilder.log the following can be found:

[ERR]   /JsonApi/       Cannot create directory 'public_html' on FTP target (ftp_mkdir(): Can't create directory: File exists)
The site UUID: 005b55a3-7c3a-4603-1996-e659435b7207
The publication target: ftp://example@example.com/public_html
The publication URL: http://example.com 1.2.3.4 http://example.com/Editor Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

An attempt to log in into the publishing server via ftp from Web Presence Builder server with ftp user credentials and execute dir or put commands results to the following:

ftp> put testfile
...
ftp: connect: No route to host
ftp> dir
...
ftp: connect: No route to host

Cause

The issue is caused by reject rule in firewall on the publishing server.

Resolution

In order to resolve the issue with publishing it is needed to check firewall settings on the publishing side.

The following KB article can be used for your reference:

#213382749 FTP is not working: "No route to host"

Have more questions? Submit a request
Please sign in to leave a comment.