Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap didn't update to 6.12 automatically #4423

Closed
helioguardabaxo opened this issue Mar 18, 2022 · 24 comments
Closed

Snap didn't update to 6.12 automatically #4423

helioguardabaxo opened this issue Mar 18, 2022 · 24 comments

Comments

@helioguardabaxo
Copy link
Contributor

Hi
When I check info for wekan snap I see:

channels:
latest/stable: 6.09 2022-03-11 (1998) 167MB -
latest/candidate: 6.09 2022-03-11 (1998) 167MB -
latest/beta: 6.09 2022-03-11 (1998) 167MB -
latest/edge: 6.12 2022-03-17 (2014) 178MB -
installed: 6.09 (1998) 167MB -

Snap do not update automatically because 6.12 is not a stable version?

Thanks!

@xet7
Copy link
Member

xet7 commented Mar 18, 2022

Yes. Snap 6.12 causes restart loop on some installs, so I changed 6.09 to be newest stable.

@xet7 xet7 closed this as completed Mar 18, 2022
@xet7
Copy link
Member

xet7 commented Mar 18, 2022

Reason for restart loop could be snap-specific writable-path attachment Meteor-Files related migration setting that does not work properly yet. This happens only on some Snap systems that have existing data, not all.

@xet7 xet7 reopened this Mar 18, 2022
@saschafoerster
Copy link

My snap installation is also hanging at 6.09. Can I do something about it?

@xet7
Copy link
Member

xet7 commented Apr 23, 2022

@saschafoerster

Snap WeKan Stable channel is at 6.09, because currently it kind of works.

You can test does some newer version work well enough:

https://github.com/wekan/wekan-snap/wiki/Testing-new-WeKan-Snap-versions

Current newest Snap and some other builds fail.

There is PR about some fix #4486 , to be included in some newer release.

@saschafoerster
Copy link

Alright, I am happy to hear, that you kept the stable version for snap users! I will test the other newer version on a different system then and sent you a report.

@Meeques
Copy link

Meeques commented Apr 28, 2022

Hi there, are there any news regarding this problem? We're still at version 6.09.0, too. Best regards!

@xet7
Copy link
Member

xet7 commented Apr 28, 2022

@Meeques

Snap builds are still broken, I'm trying to figure it out. I will release newest Snap when I have fixed build error.

@Meeques
Copy link

Meeques commented Apr 28, 2022

@xet7 Thank you!

@ClaudiaK21
Copy link

@Meeques

Snap builds are still broken, I'm trying to figure it out. I will release newest Snap when I have fixed build error.

Hi all, we are also still on Wekan 6.09 - auto updates fail, because Snap is still on 6.09.

How can we update Wekan to 6.30?

@xet7
Copy link
Member

xet7 commented Jul 27, 2022

@ClaudiaK21

But upgrade experience is not so great yet. I helped someone upgrade at paid support, that made me wish I had not helped, it did take so long time (4 hours per 400 GB backup or restore try, that 3 times)

And after upgrade, they complained:

  • Attachments are not visible anymore
  • Users can not be added to board
  • API does not work
  • Some migration process could also save temporarily all attachments to filesystem, taking more space, or running to risk of disk full (and that could cause MongoDB corruption)
  • Etc, more info at More Import/Export/Sync #4578

Some upgrade info is here, if someone is brave enough to spend a lot of time:
#4505 (comment)

Yes sure, newest WeKan has newer Node.js etc security fixes.

I would like to improve that upgrade experience, so that there would be kind of in-place upgrade for any MongoDB version, by:

a) reading raw database files with MongoDB code directly or

b) using any MongoDB (or other database) version directly with WeKan (currently newest WeKan works only with MongoDB 5.x)

c) Testing some more about these ways to migrate.

Meanwhile:

  • When we have not figured out how to get everybody to MongoDB 5.x, MongoDB released MongoDB 6.x with some additional features like searching encryped database - that feature may or may not be in Open Source MongoDB version.
  • WeKan is using Node.js 14.x, and Meteor is trying to figure out how to upgrade to 16.x and remove fibers, when Node.js newest is actually 18.x
  • And I'm not actually trying to migrate to newest MongoDB, I'm writing migrations to SQLite etc.
  • Some customers would like WeKan to not use Websockets that are denied in their network, so that would mean not using some browserside Meteor code.
  • For drag-drop WeKan currently uses JQuery Draggable/Droppable/UI, but that does not work well on Ubuntu Touch Morph browser (that is based on Qt/Chromium), so probably I would use SortableJS that seems to work better, or something else

@ClaudiaK21
Copy link

@xet7 thanks for this detailed answer and explanation, It is sad there are so many problems (I don't really understand all the thechnical stuff of it) and I hope it will be solved in the near future and thanks for your huge efford.

We'll be patient :)

@xet7
Copy link
Member

xet7 commented Jul 28, 2022

@ClaudiaK21

Thanks! I will release automatic etc updates when the upgrading experience is fast and easy and everything works well enough.

@xet7
Copy link
Member

xet7 commented Jul 28, 2022

If someone would like to test newest changes directly from source, it's possible by:

  1. Doing backup with mongodump https://github.com/wekan/wekan/wiki/Backup
  2. Cloning wekan repo:
git clone https://github.com/wekan/wekan
cd wekan
  1. Uncommenting these lines https://github.com/wekan/wekan/blob/master/docker-compose.yml#L142-L144 (removing hashtag from start of those)
  2. Changing ROOT_URL=http://192.168.0.100 (change your server ip address here)
  3. Build and start wekan:
docker-compose up -d --build
  1. Restoring backup with mongodump https://github.com/wekan/wekan/wiki/Backup

@xet7
Copy link
Member

xet7 commented Aug 2, 2022

Well, today another upgrade experience, that could be improved in future:

  1. Someone had hurry to get export of big board to JSON, for one problematic big board. He was using current stable Snap WeKan.
  2. I noticed exporting big board works in candidate Snap WeKan, so I sent info how to upgrade to candidate. He only needed WeKan JSON export without attachments of that one big board. Currently candidate WeKan does not export attachments with JSON.
  3. He upgraded to candidate, and was able to export big board JSON.
  4. But it seems candidate started spamming candidate users via email about old cards content, missing attachments, etc, about 300 emails per user, via O365 email sending. Well, it seems email sending via O365 works, but it's kind of too much, there could be some email bug.
  5. And some users noticed that there are missing attachments. Maybe attachments migrations did not have time to run yet, or something.
  6. So he liked to go back to stable. So I informed, that stop wekan, delete all others but not Caddyfile from /var/snap/wekan/common/ , change to stable, mongorestore, start wekan.

What could be learned here, to improve upgrading experience? Maybe:

a) Go back to old WeKan stable code, where all attachments are visible, try to stay there without any database migrations, add some of newest changes there

b) With candidate, disable all email sending, and code those Notifications Settings

c) With candidate, Fix any bugs so that attachments are immediately visible

d) Some rewrite, because removing most code could also remove most bugs

e) Something else?

@DamianGuth
Copy link

Are there any updates on this? Wekan-Snap is like 40 versions behind :/

@xet7
Copy link
Member

xet7 commented Sep 23, 2022

@DamianGuth

Hmm, actually that's a good point. I'll get some coffee and think.

@ClaudiaK21
Copy link

ClaudiaK21 commented Sep 26, 2022

Are there any updates on this? Wekan-Snap is like 40 versions behind :/

Our IT currently has changed to Docker, also because of security reasons and now we are using the current version of wekan finally.
Maybe only temporarily, until it works via Snap/meteor again.

@xet7
Copy link
Member

xet7 commented Sep 26, 2022

Snap Candidate has newest WeKan, but it is missing more code and testing how to migrate Snap 6.09 to newest, trying to make it work well enough, so that I would not mess up about 10 000 WeKan Snap servers worldwide.

@mohammadZahedian
Copy link

Are there any updates on this? Wekan-Snap is like 40 versions behind :/

Our IT currently has changed to Docker, also because of security reasons and now we are using the current version of wekan finally. Maybe only temporarily, until it works via Snap/meteor again.

did you migrate to docker ?
how?

@ClaudiaK21
Copy link

did you migrate to docker ?
how?

I am sorry, but I don't know how our IT does it.

@DamianGuth
Copy link

Are there any updates on this? Wekan-Snap is like 40 versions behind :/

Our IT currently has changed to Docker, also because of security reasons and now we are using the current version of wekan finally. Maybe only temporarily, until it works via Snap/meteor again.

did you migrate to docker ? how?

So i have not upgraded yet but i have moved wekan a few times so i think it will be pretty much the same.
This is what i have done in the past and what i will be trying when moving to docker soon: log into current mongo-db instance and backup the entire wekan table.

After that install wekan via docker, log into that mongo-db and restore the backup we created. Database should be good at this point. After that i will just move my current favicon to the new docker instance.

That was all i needed to do in the past. It moved all our users and everything we had in wekan.

Note: I have not tested it for moving from wekan snap 6.09 to the latest version.

@Sneeuwgors
Copy link

Thanks for the great work for the snap package of Wekan.
Is there any update as to when snap will update Wekan above version 6.09.0 ? Any ETA would be appreciated.

@xet7
Copy link
Member

xet7 commented Oct 17, 2022

@Sneeuwgors

I presume sometime this year.

@xet7
Copy link
Member

xet7 commented Dec 19, 2022

Moved to #4780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants