Sign in

Timing out when synchronising site changes

  • This topic has 9 replies, 2 voices, and was last updated 5 months, 1 week ago by .
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #5124
    alastair

    Hi,

    If I go to synchronise my site after adding new pages, if there are more than about 12 changes to update, publii will always get stuck after the first 5 or 6. Then nothing happens.

    I have to then update my site manually using my FTP client and then re-sych Publi, where it will say only one change to make and sucessfully synchronise.

    I’m using 0.372 on Mac OS and I upload to an Ionos server.

    Thanks,

    Alastair

    #5153
    Tomasz Dziuda

    Hi,

    Please check Tools -> Log viewer – especially the files with “deployment” phrase in the name – maybe you will find some advice what happens.

    --
    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!

    #5170
    alastair

    Does this help – From Deployment Process Log when I tried to synch and it timed out on the 1st entry.

    <- files.publii.json
    Founded 47 operations to do
    ERR (2): TypeError: Cannot read property ‘then’ of undefined (TypeError: Cannot read property ‘then’ of undefined
    at SFTP.uploadDirectory (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/sftp.js:234:44)
    at Deployment.uploadFile (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:431:29)
    at Deployment.removeFile (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:412:18)
    at Deployment.compareFilesList (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:308:14)
    at /Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/sftp.js:140:33
    at processTicksAndRejections (internal/process/task_queues.js:93:5)) [<- files.publii.json]
    Founded 1688 operations to do
    ERR (3): TypeError: Cannot read property ‘then’ of undefined (TypeError: Cannot read property ‘then’ of undefined
    at SFTP.uploadDirectory (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/sftp.js:234:44)
    at Deployment.uploadFile (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:431:29)
    at Deployment.removeFile (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:412:18)
    at Deployment.compareFilesList (/Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/deployment.js:308:14)
    at /Applications/Publii.app/Contents/Resources/app.asar/back-end/modules/deploy/sftp.js:148:33
    at processTicksAndRejections (internal/process/task_queues.js:93:5)) [<- files.publii.json]

     

    #5178
    Tomasz Dziuda

    Please try to upgrade to v.0.37.3 as it contains the following fix:

    • Fixed SFTP deployment issue when some directories to upload exists on the server

    Maybe it will solve your issue with the SFTP deployment.

    --
    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!

    #5179
    Tomasz Dziuda

    And also please make sure that your SFTP user have write permissions on your server (you can check it with “Test connection” on the server settings page).

    --
    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!

    #5183
    alastair

    Hi Tomasz,

    Yes the Test Connection does show success. What is strange is that often when I sync, it will render and then start updating pages, get about 10 or so done and then it just hangs.

    If I use a separate FTP program to upload the rendered files and then go back to Publii and re-sync, it will work correctly.

    I wonder if it is something to do with the volume of files needing changes, if there is a large number it gets stuck , but if there are only say 4 updates, it works perfectly.

    Thanks,

    Alastair

    #5203
    Tomasz Dziuda

    @alastair – did you checked the newest version of Publii or you still test it on v.0.37.2?

    --
    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!

    #5226
    alastair

    Hi Tomasz, no I updated to 0.37.3 and it still hangs.

    #5247
    Tomasz Dziuda

    It’s weird – I cannot reproduce such issue on my VPS. I will update the sftp library in the upcoming Publii version (which will be released most probably in the next week) – maybe it will help with your issue. Currently the only way which I see for your case is using manual deploy method.

    --
    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!

    #5254
    alastair

    Thanks Tomasz, it’s frustrating but I understand difficult to pinpoint. If I get any more info that might help I’ll update here.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.