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.

New version bug/error

  • #10892
    Avatar photo[anonymous]

    I updated to the latest version today. It did not go well. Firstly, my website sync took forever and apparently all 1000+ files were synchronized/uploaded/overwritten, instead of just uploading the new files.

    Then I got this error message: “Some files were not synced properly. Please check the hard-upload-errors-log.txt file using the Tools -> Log viewer tool.” Bildschirmfoto-2023-11-01-um-21.49.29

    I checked and I don’t have that particular log file when I use the dropdown menu in the Log Viewer Tools. Bildschirmfoto-2023-11-01-um-21.49.53

    Sure enough, what wasn’t synced was my latest post, which I wrote earlier today. Nothing special about it, it’s sweet and short and has one featured image, not too large a file

    either. I have no idea what seems to be the problem here.

    I thought I might have an outdated theme, and yes, I needed to upgrade that, too (Mercury). But upon the second try, the sync again took forever and didn’t sync my latest post.

    So I reverted to the previous version of Publii and while it re-uploaded every single file again, it took a mere minute, unlike previously with the newer version. And lo and behold, today’s post was synced as well.

    #10909
    Avatar photo[anonymous]

    Hi,

    Which sync method are you using?

    #11029
    Avatar photo[anonymous]

    Hi, and sorry for the delayed response, I only just saw it today, got no notification mail.

    I am using FTP for Sync.

    I just  upgraded to Publii 0.4.4 and Mercury 2.6.0.0 and again it took forever to upload ALL the files (1149 operations!) instead of only the update ones and in the end it didn’t even finish the sync, it just quit at 770 files.

    It’s more or less the same problem it was with 0.4.3. I don’t get it, everything worked fine in earlier versions.

    #11032
    Avatar photo[anonymous]

    Bildschirmfoto-2023-11-15-um-18.21.25

    That’s new, though.

    #11067
    Avatar photo[anonymous]

    Just casually bumping this up because I can‘t publish any new articles right now due to this and haven’t been able to do so for weeks, and this poses actually quite a problem. So I‘d be REALLY happy for any help you could throw my way  thank you.

    (Honestly, and I thought WordPress was a RPITA and technical nightmare.)

    #11068
    Avatar photo[anonymous]

    Hi,

    The issue can be related to slow internet connection or slow server connection. The fastest solution will be using manual deployment – upload generated files to the FTP server manually and the try to resync via Publii to check if it still tries to upload files

    #11082
    Avatar photo[anonymous]

    Thanks for the quick reply. I manually ftp’d the latest blog entry per your suggestion and at least that’s live now. My internet and server connection are both superfast, so that can’t be it.

    I updated to the latest version again and tried synching again. It still wouldn’t work, while now it doesn’t take ages, it just stops at file 246 of 1149 and the progression bar simulates everything being 9% done (see screenshot).

    I think there must be some file corrupted somewhere. This whole scenario doesn’t make any sense at all.

    Bildschirmfoto-2023-11-18-um-10.48.24

    #11107
    Avatar photo[anonymous]

    I’m having the same issue: Fast connection, nothing else has any problems, but for several weeks Publii has been hanging partway through uploading files to my site.

    I can upload manually, but it’s a nuisance, and the next time I try to upload, Publii wants to re-post every file from the blog’s history.

    Eventually, I have to cancel the upload, because it’s hung somewhere around 241 out of 1600 files. Then I see this message:

    Screenshot-2023-11-20-143742

    #11109
    Avatar photo[anonymous]

    Please check if you have something useful under Tools -> Log Viewer -> deployment-process/deployment-errors

    Maybe it will help us to spot the problem

    #11110
    Avatar photo[anonymous]

    Sorry 🙁

    #11112
    Avatar photo[anonymous]

    And what about deployment-process? this file contains information about sync process

    #11113
    Avatar photo[anonymous]

    Sure. There’s lots in there; hopefully it’s helpful.

    It’s quite long, so here’s a link:
    https://new.space/s/-sSVStCTdISL8DL2HG36Pw/items/EBA2qxHC9daVPAf25I8D4w#qiS0VqwIwHc5X9IHvR8YNbnHR28L4DWNdCXHGxwkeB4

    #11147
    Avatar photo[anonymous]

    @Hame – I think that your problem is caused by your server connection. In next Publii release (v.0.45) we will add a lot of improvements to the deployment process, what should solve also your issue.

    #11180
    Avatar photo[anonymous]

    I’ve just deleted my site from the server and tried to upload from scratch and do a fresh installation, but the issues remain. The app takes forever to upload and quits at uploading about a third of the files.  I then have to manually ftp all files with an external FTP software (Cyberduck). I’m using Publii v. 0.44.1 for Intel Mac OS with FTP set as synchronisation method.

    I don’t know when, what or why it has changed, but since two or three updates ago Publii’s synchronisation is not only buggy but de facto nonexistent. Since there are at least five or six threads about synchronisation issues on the first page of the discussion forum alone, and with every possible form of hosting/synch method, it’s apparently a universal problem. I’ve also checked the file permissions on the server, but they look okay to me. In any event, I didn’t change them from previous versions, when everything worked just fine.

    #11186
    Avatar photo[anonymous]

    Same here. Filezilla can upload fine and Publii also did as late as August. Now it seems broken.

    #11187
    Avatar photo[anonymous]

    Just double checked: The last blog entry I didn‘t have to upload manually was published on 29 Sept. I don‘t know what happened in October, I didn’t write anything that month, but by November 1st the wheels had come off.

    #11189
    Avatar photo[anonymous]

    @K – we are working on these issues and we will add few improvements in v.0.45. To be honest – we don’t touch the sync methods in last releases excepting Git, so it is weird that the problem appeared now. Also I cannot reproduce it on my instances, so it is not a global problem, but definitely affects parts of the users

    #11190
    Avatar photo[anonymous]

    @TaWulf – are you using FTP sync method too? Or other one?

    #11191
    Avatar photo[anonymous]

    I’m using straight FTP, no SSL/TLS, all settings unchanged. Target is on http://ftp.strato.com.

    #11192
    Avatar photo[anonymous]

    @K @TaWulf @Hame – I have analysed this issue deeper:

    It seems that it is some problem with MD5 sum calculation/comparision which leads to desync local files list. I have prepared prerelease version of Publii v.0.44.2 which changes a way how sync is detected – instead of MD5 sum it uses UUID generated for every deployment. It should be more elastic solution.

    Can I ask you to do the following test with these installation files: https://drive.google.com/drive/folders/103oaWGBJFJkHHMXNF64ndg9wndipGs8G?usp=sharing

    Please:
    – use manual deploy to generate files
    – upload these files using FTP software
    – then please try to sync website from Publii – you should get only 1-2 files to sync, instead of the whole website
    – you can also make small modification and check if only necessary files are uploaded during sync

    #11198
    Avatar photo[anonymous]

    Thanks for the update but..

    Nope, sorry to say that this didn’t change anything here. On my win 10 machine the synch still hangs and the server connection test still never succeeds.

    Imo the latter could be the pointer to the issue, not the file hashes.

    t

    #11203
    Avatar photo[anonymous]

    Same here, I’m afraid. Synch hangs (Intel Mac) and the FTP connection tests still fails and asks to check permissions.

    #11204
    Avatar photo[anonymous]

    Well that is a tiny difference: Connection test doesn’t ask for anything, just never completes.

    And the upload never starts with any files. (img 1)

    And when I cancel it it shows img 2

    #11213
    Avatar photo[anonymous]

    @K @TaWulf – did you uploaded files manually before testing the sync? Because this fix won’t solve the sync issue without uploading files before manually.

    #11215
    Avatar photo[anonymous]

    I did, yes. It works, of course, but doesn’t make a difference in the end. Once I revert back to FTP as the synch method, Publii still wants to upload ALL files and takes forever and gives the Java Script Error and says the file permissions are off.

    #11216
    Avatar photo[anonymous]

    @K – do you have any useful informations under Tools -> Log Viewer -> deployment-process/deployment-errors ?

    #11219
    Avatar photo[anonymous]
    This reply has been marked as private.
    #11220
    Avatar photo[anonymous]
    This reply has been marked as private.
    #11222
    Avatar photo[anonymous]

    @K – your problem is related to fact that it seems that your FTP is not supporting passive mode

    #11224
    Avatar photo[anonymous]

    @Tomasz, that’s odd, I didn’t change anything in my settings, but maybe the Domainfactory (my hosting company) has made changes to their servers. I will take it up with their support.

    #11225
    Avatar photo[anonymous]

    @Tomasz – I’ve spoken with their support and they state that on their end nothing is wrong and they haven’t changed anything. They say since I can upload manually without any errors or issues via my ftp-client Cyberduck it must be a Publii error. Now what?

    #11231
    Avatar photo[anonymous]

    @K – could you provide me an URL to your website?

    #11235
    Avatar photo[anonymous]
    This reply has been marked as private.
    #11238
    Avatar photo[anonymous]
    This reply has been marked as private.
    #11240
    Avatar photo[anonymous]

    Thanks for your help, @Tomasz! My problem has vanished and I hope it stays vanished. 🙂

    #11270
    Avatar photo[anonymous]

    Hi, I have some similar issue

    Publii never finishes uploading, hangs randomly in the process. I am able to upload manually through FTP client with passive mode enabled though. Cancelling process sometimes throws an error I have attached.

    Deployments error log is empty, deployment-process.log contains this:

    [Sat, 09 Dec 2023 17:57:51 GMT] FTP ERROR: Error: read ECONNRESET
    [Sat, 09 Dec 2023 17:57:51 GMT] FTP CONNECTION CLOSED: true

    Also, Publii always wants to sync everything, in my case it is like 4k items. I have tried replacing files.publii.json file on the server with local version, and it was able to sync around 67 files successfuly once. Then problem appears again. Contacted my hosting provider, but there are no response yet.

    Version: 0.44.0 (build 16485)

    Windows 10

    Should I just wait for a new version or is there something I can do? Thanks!

    #11272
    Avatar photo[anonymous]

    Same, with it wanting to replace everything. And this same setup in my instance of Publii worked before — no changes to my settings or server.

    I really like Publii, but after a few months of this, I regret that there’s no way to migrate my content to another system (e.g. back to WordPress).

    I believe this is a known issue at this point, so my fingers are crossed that a fix is in the works.

    #11273
    Avatar photo[anonymous]

    @endingmirage

    Latest version of Publii is v0.44.1 (build 16519). Maybe try that.

    No such problems with Publii on MacOS Intel via standard third-party web hosting provider (not Git, Netlify, etc).

    #11274
    Avatar photo[anonymous]

    Just downloaded the version that’s live as of today, via the link above. Uploading hung.

    Windows, iBrave hosting, could (had to) upload the files via FileZilla.

    #11275
    Avatar photo[anonymous]

    Also downloaded new version, same problem persists. I have recieved an answer from my hosting provider, nothing changed on treir side, it was recommened for me to use passive mode. And yes, there are no problems uploading website manually via FTP with passive mode on. Well, can’t force Publii to use passive mode, so sticking to manual uploading for now

    #11282
    Avatar photo[anonymous]

    interesting you guys are having this problem – i’ve not had any issues uploading from my linux box (sftp with an ssl cert)

    is there a common denominator here?

    for those having problems, what os are you running?

    is this strictly an ftp issue (not sftp)?

    could an antivirus be screwing with uploads (most are garbage/malware)?

    #11378
    Avatar photo[anonymous]

    In Publii v.0.45 we will add an option to restart sync process after broken file upload. At this moment I can only recommend manual deployment if the connection with FTP is reseted.

    #11388
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    In Publii v.0.45 we will add an option to restart sync process after broken file upload. At this moment I can only recommend manual deployment if the connection with FTP is reseted.

    This is great, maybe it is also possible to force Publii to use passive mode, that could fix issue. For now, problem went away by itself, but I feel like it is a matter of time when it will return again

    #11397
    Avatar photo[anonymous]

    @endingmirage – unfortunately library used in Publii for FTP does not support passive mode. I suppose that option to resume upload will solve 99% of sync issues