Git Product home page Git Product logo

Comments (9)

xet7 avatar xet7 commented on June 7, 2024

Yes. There will be automatic upgrade to newest. I'm In Progress of fixing related migration issues.

from wekan.

xet7 avatar xet7 commented on June 7, 2024

only an "old" version of wekan

No, that is incorrect. Candidate channel has newest WeKan:

https://github.com/wekan/wekan/wiki/OpenSuse

from wekan.

Ilav1 avatar Ilav1 commented on June 7, 2024

I also have installed version 6.09. When I try to update with these code

sudo snap refresh wekan --channel=latest/candidate

The newest version is installed now. Wekan is not available after updating. When I refresh to the stable version, wekan is available again.

Updating to the newest version is not possible. Maybe you have an other way to update wekan to the candidate version...

from wekan.

xet7 avatar xet7 commented on June 7, 2024

@Ilav1

I'm currently coding automatic upgrade. It will upgrade all Snap Stable from 6.09 to newest WeKan automatically.

Manual upgrade currently has too many steps, that are time too consuming to do manually:

  1. Mongodump, using Snap 6.09 version of mongodump
  2. Mongorestore, using newest mongorestore
  3. To get attachments visible
    3.1) Rename collections/tables of database:
  rename cfs_gridfs.attachments.files attachments.files
  rename cfs_gridfs.attachments.chunks attachments.chunks
  rename cfs_gridfs.avatars.files avatars.files
  rename cfs_gridfs.avatars.chunks avatars.chunks

3.2) Convert attachments database structure to new format, with upcoming code function:

  convertup cfs.attachments.filerecord attachments
  convertup cfs.avatars.filerecord avatars

I'm currently writing code functions for all that. I do not recommend trying it manually.

from wekan.

xet7 avatar xet7 commented on June 7, 2024

@Ilav1

These are my current In Progress scripts for upgrade and downgrade. These do not yet make attachments visible, coding that is In Progress.

upgrade.sh

#!/bin/bash

if [ $(whoami) = 'root' ]; then
  echo "Countinuing, because running as root."
else
  echo "Not continuing, because not running as root."
  exit
fi

# SNAP_COMMON=
snap stop wekan.wekan
export LD2=$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/snap/wekan/current/lib/x86_64-linux-gnu
export PATH2=$PATH
export PATH=/snap/wekan/current/bin:$PATH
sleep 1
mongodump --port 27019
snap get wekan > snap-settings.txt
snap stop wekan.mongodb
sleep 1
if [ -d "common" ]; then
  rm -rf /var/snap/wekan/common/*
else
  mv /var/snap/wekan/common .
  mkdir /var/snap/wekan/common
fi
snap refresh wekan --channel=latest/candidate
sleep 1
snap start wekan
sleep 1
snap stop wekan.wekan
sleep 1
export PATH=$PATH2
export LD_LIBRARY_PATH=$LD2
mongorestore --drop --port 27019
sleep 1
snap start wekan.wekan

downgrade.sh

#!/bin/bash

if [ $(whoami) = 'root' ]; then
  echo "Countinuing, because running as root."
else
  echo "Not continuing, because not running as root."
  exit
fi

snap stop wekan
sleep 1
rm -rf /var/snap/wekan/common/*
snap refresh wekan --channel=latest/stable
sleep 1
snap stop wekan
sleep 1
rm -rf /var/snap/wekan/common/*
cp -pR common/* /var/snap/wekan/common/
snap start wekan

from wekan.

Ilav1 avatar Ilav1 commented on June 7, 2024

Nice to know. Thank you for your work. Do you have any suggestions when the script is done?

The stable version will automatically upgrade to the newest version when the script is finished, right?

from wekan.

xet7 avatar xet7 commented on June 7, 2024

For any code, it is so unpredictable how long it takes to finish it, I don't know.

Most likely I will add that script to this issue, when I have finished it, to make possible manual upgrade.

There is also other questions related to how to upgrade Caddy 1 to newest, when AFAIK Caddy 2 does not support Caddy 1 Caddyfile file format.

from wekan.

Ilav1 avatar Ilav1 commented on June 7, 2024

One more question @xet7 . When I install the latest candidate on a new system, is the latest candidate version updated automaticly by snap? I think the problem is the old version updating to the newsest isn't it?

from wekan.

xet7 avatar xet7 commented on June 7, 2024

@Ilav1

Yes, Snap Candidate is updated automatically by Snap, it is always newest version.

After I have fixed migrations, I will release newest WeKan also to Snap Stable. Those migrations will convert Snap Stable to newest WeKan, updating database, attachments etc.

from wekan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.