Timing out when synchronising site changes
- This topic has 9 replies, 2 voices, and was last updated 2 years, 7 months ago by .
-
AuthorPosts
-
February 4, 2021 at 1:55 pm #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
February 13, 2021 at 12:07 pm #5153Tomasz 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!February 16, 2021 at 1:52 pm #5170alastair
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]February 16, 2021 at 5:00 pm #5178Tomasz 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!February 16, 2021 at 5:01 pm #5179Tomasz 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!February 16, 2021 at 5:22 pm #5183alastair
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
February 20, 2021 at 6:20 pm #5203Tomasz Dziuda
February 23, 2021 at 1:14 pm #5226alastair
Hi Tomasz, no I updated to 0.37.3 and it still hangs.
February 28, 2021 at 11:39 am #5247Tomasz 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!February 28, 2021 at 4:00 pm #5254alastair
Thanks Tomasz, it’s frustrating but I understand difficult to pinpoint. If I get any more info that might help I’ll update here.
-
AuthorPosts
- You must be logged in to reply to this topic.