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

[Bug]: bin/leantime system:update does not update #2838

Open
bedo2991 opened this issue Nov 29, 2024 · 2 comments
Open

[Bug]: bin/leantime system:update does not update #2838

bedo2991 opened this issue Nov 29, 2024 · 2 comments
Assignees
Labels

Comments

@bedo2991
Copy link

What is your set up?

Self Hosted Server

Version

3.3.0

Describe the issue

Running sudo bin/leantime system:update does not successfully update, though it says it does

Reproduction steps

sudo bin/leantime system:update
Starting the updater

Version Check
-------------

Your current version is: v3.3.0
Checking latest version on Github...
The latest Leantime version is: v3.3.3

Database Backup
---------------

mysqldump: unknown variable 'column-statistics=0'
Download & Extract
------------------

Downloading latest version...
Extracting Archive...

Disabling Plugins
-----------------

                                                                                                                       
[OK] Plugins disabled successfully                                                                                     
                                                                                                                       

Applying Update
---------------

cp: cannot stat '/usr/share/nginx/leantime/storage/framework/cache/leantime/*': No such file or directory
                                                                                                                       
[OK] Files were updated                                                                                                
                                                                                                                       

Clearing Cache
--------------

                                                                                                                       
[OK] Clearing Cache Complete                                                                                           
                                                                                                                       

Re-enabling Plugins
-------------------

                                                                                                                       
[OK] Plugins were enabled                                                                                              
                                                                                                                       

Summary
-------

                                                                                                                       
[OK] Update applied Successfully                                                                                       
                                                                                                                       

Again: sudo bin/leantime system:update
Starting the updater

Version Check
-------------

Your current version is: v3.3.0
Checking latest version on Github...
The latest Leantime version is: v3.3.3

(And the footer also says 3.3.0)

Error Logs (LEANTIMEFOLDER/storage/logs)

Nothing there

@Er1c85
Copy link

Er1c85 commented Dec 4, 2024

I just fixed this on my local system, I'll issue a PR

@Er1c85
Copy link

Er1c85 commented Dec 4, 2024

I just realized that a pull request does not help you...
If you open the php file on your system that controls the upgrade operation, leantime/app/Command/UpdateLeantime.php, you will see a line where it issues an exec(cp ... command. The problem was it was trying to copy the unzipped files from the wrong location. Originally it was exec('cp -r '.storage_path('/framework/cache/').'/* '.APP_ROOT.'/');, change this to exec('cp -r '.storage_path('/framework/cache/leantime').'/* '.APP_ROOT.'/'); This line should be around line 130... hope this helps!

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

No branches or pull requests

3 participants