• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

WPB 11.5 standalone, Cannot publish, Cannot save, Cannot create directory

ccto

Basic Pleskian
Hello All,

We are using Web Presence Builder 11.5.12 standalone.

One customer encountered an error -
1. When he publish, it says it cannot be published (it tries to create the folder - attachments - in the FTP publishing server, but this folder already exist)
2. When he save, it says it cannot be saved too (it tries to create the folder - data - in the FTP publishing server, but this folder already exist).

When we publish, it shows the following in the server log
Code:
2014-06-04T12:53:28+08:00       [WARN]  /api/5.3/sites/8380aea8-a4e0-164a-6452-542b6c50????/token/      Cannot find the  locale.        180.92.?.?           WBP API
2014-06-04T12:53:29+08:00       [INFO]  /api/5.3/sites/8380aea8-a4e0-164a-6452-542b6c50????/token/      The token "8d9e0fd38b26f4306fa37939df2?????" was generated for the site with UUID "8380aea8-a4e0-164a-6452-542b6c50????".      180.92.?.?           WBP API
2014-06-04T12:53:33+08:00       [INFO]  /JsonApi/       Target environment has been checked successfully.
The site UUID: 8380aea8-a4e0-164a-6452-542b6c50????
The publication target: ftp://[email protected]????????.net/domains/???.com.hk/public_html/
The publication URL: http://www.???.com.hk      180.92.?.?   http://180.92.?.?/Editor     Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
2014-06-04T12:53:34+08:00       [ERR]   /JsonApi/       Cannot create directory 'domains/???.com.hk/public_html/attachments' on FTP target It is possible that there are not enough permissions for writing or there is not enough free space on the server.
The site UUID: 8380aea8-a4e0-164a-6452-542b6c50????
The publication target: ftp://[email protected]????????.net/domains/???.com.hk/public_html/
The publication URL: http://www.???.com.hk      180.92.?.?   http://180.92.?.?/Editor     Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
2014-06-04T12:53:34+08:00       [ERR]   /JsonApi/       The site with UUID '8380aea8-a4e0-164a-6452-542b6c50????' was not published.
The site UUID: 8380aea8-a4e0-164a-6452-542b6c50????
The publication target: ftp://[email protected]????????.net/domains/???.com.hk/public_html/
The publication URL: http://www.???.com.hk      180.92.?.?   http://180.92.?.?/Editor     Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko

When we save, it shows the following in the server log
Code:
code: 0 180.92.?.?   http://180.92.?.?/Editor#    Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
2014-06-04T13:02:17+08:00       [WARN]  /api/5.3/sites/8380aea8-a4e0-164a-6452-542b6c5?????/token/      Cannot find the  locale.        180.92.?.?           WBP API
2014-06-04T13:02:17+08:00       [INFO]  /api/5.3/sites/8380aea8-a4e0-164a-6452-542b6c5?????/token/      The token "c000c64b1f324b9aee7c1b83d63?????" was generated for the site with UUID "8380aea8-a4e0-164a-6452-542b6c5?????".      180.92.?.?           WBP API
2014-06-04T13:02:21+08:00       [EMERG] /JsonApi/       Base_Target_Exception: Cannot create directory 'domains/???.com.hk/public_html/data' on FTP target
file: /usr/local/sb/include/SB/Site/Compiler/Target/FTP.php
line: 426
code: 0 180.92.?.?   http://180.92.?.?/Editor     Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko

We checked the FTP in publishing server , the folders - attachments and data - are already existed with correct permission -
Code:
[root@wpb11-da-01 public_html]# pwd
/home/???comhk89/domains/???.com.hk/public_html
[root@wpb11-da-01 public_html]# ll
total 204
-rwxr-xr-x 1 ???comhk89 ???comhk89   515 May  8  2007 400.shtml
-rwxr-xr-x 1 ???comhk89 ???comhk89   515 May  8  2007 401.shtml
-rwxr-xr-x 1 ???comhk89 ???comhk89   515 May  8  2007 403.shtml
-rwxr-xr-x 1 ???comhk89 ???comhk89   515 May  8  2007 404.shtml
-rwxr-xr-x 1 ???comhk89 ???comhk89   515 May  8  2007 500.shtml
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:01 about-us
drwxr-xr-x 8 ???comhk89 ???comhk89  4096 Jun  3 20:01 attachments
-rw-r--r-- 1 ???comhk89 ???comhk89  4111 Jun  3 20:20 b3e48352115f08f21f8813d99e?????_publication_list.xml
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:05 careers
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 18:56 cgi-bin
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  4 09:51 chan-pin-zi-xun
drwxr-xr-x 3 ???comhk89 ???comhk89  4096 Jun  3 20:01 components
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:05 contact-us
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:40 css
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  4 09:51 dai-li-shang
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:08 dai-li-shen-qing
drwxrwxrwx 2 ???comhk89 ???comhk89  4096 Jun  3 20:05 data
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:05 home
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:05 how-to-order
drwxr-xr-x 4 ???comhk89 ???comhk89  4096 Jun  3 20:01 images
drwxr-xr-x 3 ???comhk89 ???comhk89  4096 Jun  3 20:01 includes
-rw-r--r-- 1 ???comhk89 ???comhk89 11174 Jun  4 12:53 index.html
-rw-r--r-- 1 ???comhk89 ???comhk89 16185 Jun  3 20:05 index.php
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  3 20:05 js
drwxr-xr-x 2 ???comhk89 ???comhk89  4096 Jun  4 09:51 ke-hu-fu-wu
-rw-r--r-- 1 ???comhk89 ???comhk89 47337 Oct 18  2007 logo.jpg
-rwxr-xr-x 1 ???comhk89 ???comhk89  9292 Apr 25  2013 logo.png
drwxr-xr-x 5 ???comhk89 ???comhk89  4096 Jun  3 20:01 modules
drwxr-xr-x 4 ???comhk89 ???comhk89  4096 Jun  3 20:05 news-and-events
drwxr-xr-x 4 ???comhk89 ???comhk89  4096 Jun  3 20:05 our-services
-rw-r--r-- 1 ???comhk89 ???comhk89     0 Jun  4 12:53 robots.txt
-rw-r--r-- 1 ???comhk89 ???comhk89   832 Jun  4 12:53 sitemap.xml
drwxr-xr-x 4 ???comhk89 ???comhk89  4096 Jun  4 09:51 zui-xin-zi-xun

We suspect it relates to the blog module.

In one of our testing site, we add a new page, add a new blog without post, publish, it is OK.
Then, we add 2 articles into blog, it cannot publish with the same error.
Then, we delete the blog page, the testing site works back.

However, when we delete the blog module in customer site, it does not work. We cannot publish nor save.

Please help/advise.

Thank you very much for your kind attention.
 
Last edited:
We found the issue.
It shall relate to the latest version of ProFTPd 1.3.5 , if we fall back to 1.3.4d , it works again.

---

We tried to build a testing environment, publish against ProFTPd 1.3.5 as well as ProFTPd 1.3.4d

For a particular user, we start-over the site, create a site (with default content), publish to ProFTPd 1.3.5 first, OK,
then we add a blog, 2 posts, then publish to ProFTPd 1.3.5 , failed.
Then, we enabled ExtendedLog , re-publish and capture the details.

Then, in the hosting server, we downgrade ProFTPd from 1.3.5 to 1.3.4d , using the same WPB website (without modification) and same FTP config, publish and OK.

We compare the 2 Extended logs.
It seems WPB 11.5.12 (or .13) cannot create the sub-directory (e.g. about-us/xin-tie-zi-de-biao-ti in below logs) correctly.

Extended Log in ProFTPd 1.3.5
Code:
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us" 250 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "PASV" 227 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "NLST -a" 226 [COLOR="#0000FF"]194[/COLOR]
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "CWD /" 250 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "PWD" 257 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti" 550 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "[B][COLOR="#FF0000"]MKD[/COLOR][/B] domains/test2.website-xxx.net/public_html/about-us" 550 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "PWD" 257 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti" 550 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "PWD" 257 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "CWD domains/test2.website-xxx.net/public_html" 250 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "PASV" 227 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "NLST -a" 226 194

Extended Log in ProFTPd 1.3.4d
Code:
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us" 250 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "PASV" 227 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "NLST -a" 226 [COLOR="#0000FF"]19[/COLOR]
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "CWD /" 250 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "PWD" 257 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti" 550 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "[B][COLOR="#FF0000"]MKD[/COLOR][/B] domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti" 257 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "TYPE I" 200 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "PASV" 227 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "STOR domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti/index.html" 226 13105
 
Last edited:
We found the issue.
It shall relate to the latest version of ProFTPd 1.3.5 , if we fall back to 1.3.4d , it works again.

Extended Log in ProFTPd 1.3.5
Code:
....
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "[B][COLOR="#FF0000"]MKD[/COLOR][/B] domains/test2.website-xxx.net/public_html/about-us" 550 -
....

Extended Log in ProFTPd 1.3.4d
Code:
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us" 250 -
...
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "[B][COLOR="#FF0000"]MKD[/COLOR][/B] domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti" 257 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "TYPE I" 200 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:06:36 +0800] "PASV" 227 -
...

You already investigate root cause, and it seems like bug in proftpd (or may be new interpretation about defaults/config settings).
WPB reads answer from ftp server and if gets response with not "good" return code, wpb writes about this in its log:
2014-06-04T13:02:21+08:00 [EMERG] /JsonApi/ Base_Target_Exception: Cannot create directory 'domains/???.com.hk/public_html/data' on FTP target

It's normal and expected behaviour.
 
Last edited:
Hello DmitriyR,

Thank you for your reply.

I wonder -
when WPB cannot CWD (change directory) to domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti
why it creates the folder "domains/test2.website-xxx.net/public_html/about-us" , but not "domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti"

Code:
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "CWD domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti" 550 -
180.92.x.x UNKNOWN test2web32 [05/Jun/2014:22:02:49 +0800] "MKD domains/test2.website-xxx.net/public_html/about-us" 550 -

Regards
George
 
Also, as Parallels Plesk Panel 12.0.18 (preview version) updated ProFTPd to 1.3.5 on today/yesterday.

So I manually change the WPB 11.5.13 (standalone) testing site FTP publishing to the Panel 12 (preview).

I can re-produce the same problem towards Parallels Plesk Panel 12

Below are the extended log (added 2 lines in /etc/proftpd.d/ for extended log) for reference in Parallels Plesk Panel 12.0.18
Code:
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD /" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] [COLOR="#FF0000"]"CWD httpdocs/about-us/xin-tie-zi-de-biao-ti-1" 550[/COLOR] -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] [COLOR="#FF0000"]"MKD httpdocs/about-us"[/COLOR] 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD httpdocs/about-us/xin-tie-zi-de-biao-ti-1" 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD httpdocs" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PASV" 227 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "NLST -a" 226 40
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD /" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "MKD httpdocs/about-us" 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD httpdocs/about-us/xin-tie-zi-de-biao-ti-1" 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD httpdocs" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PASV" 227 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "NLST -a" 226 40
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD /" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "MKD httpdocs/about-us" 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD httpdocs/about-us/xin-tie-zi-de-biao-ti-1" 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PWD" 257 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD httpdocs" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "PASV" 227 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "NLST -a" 226 40
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "CWD /" 250 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "MKD httpdocs/about-us" 550 -
180.92.x.x UNKNOWN ccto [06/Jun/2014:12:25:11 +0800] "QUIT" 221 -

Please kindly help.

Thank you very much
 
...
I wonder -
when WPB cannot CWD (change directory) to domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti
why it creates the folder "domains/test2.website-xxx.net/public_html/about-us" , but not "domains/test2.website-xxx.net/public_html/about-us/xin-tie-zi-de-biao-ti"
...

It tries create parent dir 'about-us', if can't create child. This behaviour works good for new dirs, because theoretically ftp server can denies recursive creation.
But WPB did not try create child dir, it's strange and seems like bug.
 
Hello DmitriyR ,

May you please kindly check Site Builder 4.5 has similar issue against ProFTPd 1.3.5 ?

Thank you very much for your kind attention.

Regards
George
 
The same problem happened in Web Presence Builder 12.0.6

I cannot upload image into Gallery Module inside the 12.0.6 editor when the publish server runs ProFTPd 1.3.5
but I can upload image into Gallery Module inside the 12.0.6 editor when the publish server runs ProFTPd 1.3.4e
 
Back
Top