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] Database Errors after automatic upgrade #457

Closed
1 task done
redxon opened this issue Jul 18, 2024 · 5 comments
Closed
1 task done

[BUG] Database Errors after automatic upgrade #457

redxon opened this issue Jul 18, 2024 · 5 comments

Comments

@redxon
Copy link

redxon commented Jul 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After Upgrade to container version 29.0.3.4 from 28.0.0.11 the upgrader breaks.

It throws DB errors and stays in Maintenance mode (see error log below)

After that is done, the instance stays in maintenance mode. If the command occ upgrade is run the following appears:

root@cc6570f10033:/# occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug

In DbalException.php line 71:
                                                                                                                                
  An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field list'  
                                                                                                                                

In ExceptionConverter.php line 67:
                                                                                                                                
  An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field list'  
                                                                                                                                

In Exception.php line 28:
                                                                                 
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field list'  
                                                                                 

In Statement.php line 130:
                                                                                 
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field list'  
                                                                                 

upgrade

Removing the maintenance mode just reveals the "Upgrade needed" page on the WebUI.

occ:db-add-missing-indicies does not solve the issue.

occ:maintenance repair is running all green except for this line:
- migrate lazy config values - ERROR: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field list'

Expected Behavior

No response

Steps To Reproduce

  1. Upgrade Docker Container from 28.0.0.11 to 29.0.3.4
  2. Let the upgrader run
  3. Encounter the errors above
  4. Not fixable with occ maintenance:mode --off, occ maintenance:repair or occ db:add-missing-indecies

Environment

- OS: Unraid 6.12.3
- How docker service was installed: Unraid
- MariaDB Linuxserver.io version: 10.11.8-r0-ls150

CPU architecture

x86-64

Docker creation

docker template from unraid app store

Container logs

Linuxserver.io version: 29.0.3-ls330
Build-date: 2024-07-14T17:27:42+00:00
───────────────────────────────────────
    
using keys found in /config/keys
Initializing nextcloud 29.0.3.4 (this can take a while) ...
Upgrading nextcloud from 28.0.0.11 ...
Setting permissions
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug

In DbalException.php line 71:
                                                                               
  An exception occurred while executing a query: SQLSTATE[42S22]: Column not   
  found: 1054 Unknown column 'lazy' in 'field list'                            
                                                                               

In ExceptionConverter.php line 67:
                                                                               
  An exception occurred while executing a query: SQLSTATE[42S22]: Column not   
  found: 1054 Unknown column 'lazy' in 'field list'                            
                                                                               

In Exception.php line 28:
                                                                               
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field lis  
  t'                                                                           
                                                                               

In Statement.php line 130:
                                                                               
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lazy' in 'field lis  
  t'                                                                           
                                                                               

upgrade

Initializing finished
**** The following site-confs have extensions other than .conf ****
**** This may be due to user customization. ****
**** You should review the files and rename them to use the .conf extension or remove them. ****
**** nginx.conf will only include site-confs with the .conf extension. ****
/config/nginx/site-confs/default.conf.bak
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@drizuid
Copy link
Member

drizuid commented Oct 4, 2024

as a note, we do not and have not ever recommended automatic upgrades, it causes problems, such as this one.
nextcloud has it's own support, we support the container, not the application.
finally, aptacla provided a relevant link for this issue. closing this as out of scope.

@drizuid drizuid closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

4 participants