1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Check Permissions that cause failed publish

Discussion in 'Sitebuilder 3.0 for Linux' started by swopedesign, Jun 10, 2007.

  1. swopedesign

    swopedesign Regular Pleskian

    25
    57%
    Joined:
    Nov 12, 2006
    Messages:
    106
    Likes Received:
    0
    How does one check permissions, and what should they be, for SB 3.0.2 sites that fail to publish due to incorrect permissions (and how did they get incorrect anyway)?
     
  2. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    To be able to check and understand what can be the problem first of all make sure that there are all requirements observed on publishing server. List of requirements you can find on our website here:

    http://www.swsoft.com/en/products/sitebuilder3/reqs

    There is a special script which can help you to check if everything is fine with that (SITEBUILDER_ROOT/resources/publish/check.php
    ). It should be run from publishing site's directory. For example, if you are trying to publish to domain domain.tld you need upload this script into site's directory and run it in browser as http://domain.tld/check.php.
    Before publication check.php script is uploaded into destination directory and is run from there.

    Moreover, in publishing properties you set destination directory and user with the password (if it is FTP publishing mode, for example). So you need to make sure that this user has enough rights to read/write into destination folder. Also, make sure that there are no files in destination folder which are owned by 'root', for example.

    Try to check it up and if you still have some issues with publishing just give me exactly error message from SiteBuilder admin CP -> Logs section.
     
  3. swopedesign

    swopedesign Regular Pleskian

    25
    57%
    Joined:
    Nov 12, 2006
    Messages:
    106
    Likes Received:
    0
    Check.php ran, all good

    I've run check.php as requested. Everything checks out OK according to the script. I will send message from Log momentarily to determine the problem.
     
  4. swopedesign

    swopedesign Regular Pleskian

    25
    57%
    Joined:
    Nov 12, 2006
    Messages:
    106
    Likes Received:
    0
    Log Error Message

    Can't remove file 'httpdocs/attachments/Image/icon11.gif' into FTP target (httpdocs/attachments/Image/icon11.gif: No such file or directory) (publication DSN is 'FTP:nitrouswebsites@[***]:64.74.124.77::httpdocs', current site title is 'Nitrous Web Sites - Web Site Hosting, SiteBuilder Web Site Hosting, Web Site Design' , site owner is 'admin') It is possible that there are no enough permissions for writing or there is not enough free space on the server.
     
  5. swopedesign

    swopedesign Regular Pleskian

    25
    57%
    Joined:
    Nov 12, 2006
    Messages:
    106
    Likes Received:
    0
    The error is correct...that image does not exist

    The error in the log is correct, in that that file does not exist. But why is that an error? Why is SiteBuilder calling for it when it does not exist, and should not exist, in the site?
     
  6. swopedesign

    swopedesign Regular Pleskian

    25
    57%
    Joined:
    Nov 12, 2006
    Messages:
    106
    Likes Received:
    0
    Error solved...but it is a problem

    The error was created by files that had been deleted in the server temporary directory (that are published to the live web server at time of publish), but there are no references in the SiteBuilder 3 site any longer to those files, so I do not understand why SiteBuilder still looks for them. In the near future for v4 release, I hope SB has a means to upload/delete files from the server that's as easy as a checkbox, like many of the other interface features in SB already.
     
  7. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    Yes, you are right. Such situation as manual image deletion can cause described issue. Unfortunately, in Sitebuilder there is no such a feature as uploaded image deletion and if any of the images will be deleted you will get an error. This is because together with site files special file publication_list.xml is uploaded. This file contains list of files which should be uploaded. So if you delete some files manually you will need to delete them from this file also.

    As I know such feature request as uploaded files deletion already exists but it will be included into Sitebuilder only after v.4 release, I guess in v.5, but can not say exactly.
     
Loading...