Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Timing out when synchronising site changes

  • #5124
    Avatar photo[anonymous]

    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
    Avatar photo[anonymous]

    Hi,

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

    #5170
    Avatar photo[anonymous]

    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
    Avatar photo[anonymous]

    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.

    #5179
    Avatar photo[anonymous]

    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).

    #5183
    Avatar photo[anonymous]

    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
    Avatar photo[anonymous]

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

    #5226
    Avatar photo[anonymous]

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

    #5247
    Avatar photo[anonymous]

    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.

    #5254
    Avatar photo[anonymous]

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