Okay
  Public Ticket #2031126
Server upload does not always work
Open

Comments

  •  2
    Adrien started the conversation

    Hi,

    I play with 3 sites with Publii. 2 are direct url http://example.com and 1 is http://example2.com/resources on a subdirectory.

    I work from China with a VPN and a server in Germany. 

    I am delighted by the speed and the ease of work with the Publii Mac app. I love it and it changes my work and I eliminated time consuming wordpress sites. 

    But sometimes, the "sync" does not work at all. It stays idle. IT connects but the list of files does not upload anything. 

    On one site it is about 100 pages that need to be uploaded and this issue can be really frustrating when you have to re-upload fast and often.

    The only solution I found is to delete my server site (thru my server admin) and upload the entire site thru sftp/cyberduck. Then the second auto sync works. It defies the whole purpose of Publii in this case. It is an inelegant way to resolve this issue.

    In case you ask: yes, the "server/test-connection" is ok.

    I don't see how this could be resolved to always work. Any suggestion?

    Thanks,

    Adrien

    Attached files:  Screen Shot 2019-05-31 at 10.37.33 AM.png

  •  5
    Ajeet replied

    I think this issue is related to this one : https://github.com/GetPublii/Publii/issues/465

  •  2
    Adrien replied

    Yes Ajeet, thanks for your input. As mentioned in the link you provided, one solution is to upload a zip file using the "manual upload". It is similar to what I do. It's weird that in my case one of my site is under construction and unlike the ticket you mentioned I'm only playing with a couple of files and not 12,000 :) and I got this problem however.

    Personally I prefer to go dirty by copying everything inside [publii/sites/my_site/output]  and paste it in my cyberduck/dir_site once deleted first. 

    Thanks again, unfortunately the problem cannot be solved yet. At least once the delete/upload performed, multiple upload-sync should work for sometime.

  •  5
    Ajeet replied

    Bob will have the correct solution.  Let's see. Thanks :)

  •  359
    Thomas replied

    Hi Adrien,

    Could you share your connection-* and deployment-* logs in a private reply? 

    The mentioned github issue seems to be different problem, but at this moment we are unable to reproduce it.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

  •   Adrien replied privately
  •   Thomas replied privately
  •   Adrien replied privately
  • Dusty replied

    I am having a similar issue with updating my website on GitHub. I get the following error: gateway timeout 504 after about one minute of a partial sync.

  • Dusty replied

    {"code":"504","status":"Gateway Timeout","message":"504: Gateway Timeout"}

    Is the actual message from my connection-error-log.txt

  •   Thomas replied privately
  •  359
    Thomas replied

    Hi Dusty,

    For the future cases - please create separate tickets as your Github issue has nothing in common with the SFTP issue which is mentioned in this ticket.

    Regarding your issue - most probably your internet connection is too slow in connection with Github and it gets timeout. At this moment the timeout is set to 10 seconds. I will increase it in the next release to 30 seconds to cover cases like yours.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

  •   Adrien replied privately
  •   Thomas replied privately
  •   Adrien replied privately
  •   Thomas replied privately
  •   Adrien replied privately
  •   Thomas replied privately