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] occ maintenance:repair --include-expensive without sucess #466

Closed
1 task done
tomspatz opened this issue Aug 21, 2024 · 22 comments
Closed
1 task done

[BUG] occ maintenance:repair --include-expensive without sucess #466

tomspatz opened this issue Aug 21, 2024 · 22 comments

Comments

@tomspatz
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

First seen on update from 28.04 to 28.08, but tre repair does work.
Now after upgrade to 29.05 the error still remains after the repair command.

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command occ maintenance:repair --include-expensive to perform the migrations.

Expected Behavior

i try to fix this with the occ command above listed.

Steps To Reproduce

??

Environment

- OS:debian
- How docker service was installed: compose ?
- NC Version 29.05

CPU architecture

x86-64

Docker creation

version: "2"
services:
  nextcloud:
    image: ghcr.io/linuxserver/nextcloud
    container_name: nextcloud
    environment:
      - PUID=1000 #change PUID if needed
      - PGID=100  #change PGID if needed
      - TZ=Europe/Berlin #change Time Zone if needed
    volumes:
      - /srv/dev-disk-by-uuid-0dd67ad3-a5b2-4336-82f0-c222babe0d23/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      - /srv/dev-disk-by-uuid-0dd67ad3-a5b2-4336-82f0-c222babe0d23/appdata/nextcloud/data:/data     #/srv/dev-disk-by-label-disk1 needs to be adjusted
    depends_on:
      - mariadb
    ports: # uncomment this and the next line if you want to bypass the proxy
      - 443:443
      - 82:80
    restart: unless-stopped
  mariadb:
    image: ghcr.io/linuxserver/mariadb
    container_name: nextclouddb
    environment:
      - PUID=1000 #change PUID if needed
      - PGID=100  #change PGID if needed
      - MYSQL_ROOT_PASSWORD=xxxxxxxxxxxxxxxx  #change password
      - TZ=Europe/Berlin #Change Time Zone if needed
    volumes:
      - /srv/dev-disk-by-uuid-0dd67ad3-a5b2-4336-82f0-c222babe0d23/appdata/nextclouddb:/config    #/srv/dev-disk-by-label-disk1 needs to be adjusted
    restart: unless-stopped
  swag:
    image: linuxserver/swag         #swag is the replacement for letsencrypt (see link below)
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000 #change PUID if needed
      - PGID=100  #change PGID if needed
      - TZ=Europe/Berlin # change Time Zone if needed
      - URL=myurl.de #insert your domain name - yourdomain.url
      - SUBDOMAINS=nextcloud
      - ONLY_SUBDOMAINS=true
      - VALIDATION=http
      - [email protected] # define email; required to renew certificate
    volumes:
      - /srv/dev-disk-by-uuid-0dd67ad3-a5b2-4336-82f0-c222babe0d23/appdata/swag:/config  #/srv/dev-disk-by-label-disk1 needs to be adjusted
    ports:
      - 444:443
      - 81:80
    restart: unless-stopped

Container logs

time="2024-08-21T09:41:16+02:00" level=warning msg="/srv/dev-disk-by-uuid-76ddb9f6-7bb7-46a5-af43-4e00ac836a0d/compose/nextcloud/nextcloud.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
nextcloud  | [migrations] started
nextcloud  | [migrations] 01-nginx-site-confs-default: skipped
nextcloud  | [migrations] 02-default-location: skipped
nextcloud  | [migrations] done
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  |       ██╗     ███████╗██╗ ██████╗
nextcloud  |       ██║     ██╔════╝██║██╔═══██╗
nextcloud  |       ██║     ███████╗██║██║   ██║
nextcloud  |       ██║     ╚════██║██║██║   ██║
nextcloud  |       ███████╗███████║██║╚██████╔╝
nextcloud  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
nextcloud  | 
nextcloud  |    Brought to you by linuxserver.io
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | To support LSIO projects visit:
nextcloud  | https://www.linuxserver.io/donate/
nextcloud  | 
nextcloud  | ───────────────────────────────────────
nextcloud  | GID/UID
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | User UID:    1000
nextcloud  | User GID:    100
nextcloud  | ───────────────────────────────────────
nextcloud  | Linuxserver.io version: 29.0.5-ls335
nextcloud  | Build-date: 2024-08-20T18:37:44+00:00
nextcloud  | ───────────────────────────────────────
nextcloud  |     
nextcloud  | using keys found in /config/keys
nextcloud  | Initializing nextcloud 29.0.5.1 (this can take a while) ...
nextcloud  | Upgrading nextcloud from 29.0.4.1 ...
nextcloud  | Setting permissions
nextcloud  | Nextcloud or one of the apps require upgrade - only a limited number of commands are available
nextcloud  | You may use your browser or the occ upgrade command to do the upgrade
nextcloud  | Setting log level to debug
nextcloud  | Turned on maintenance mode
nextcloud  | Updating database schema
nextcloud  | Updated database
nextcloud  | Updating <files> ...
nextcloud  | Updated <files> to 2.1.1
nextcloud  | Starting code integrity check...
nextcloud  | Finished code integrity check
nextcloud  | Update successful
nextcloud  | Turned off maintenance mode
nextcloud  | Resetting log level
nextcloud  | Initializing finished
nextcloud  | **** The following active confs have different version dates than the samples that are shipped. ****
nextcloud  | **** This may be due to user customization or an update to the samples. ****
nextcloud  | **** You should compare the following files to the samples in the same folder and update them. ****
nextcloud  | **** Use the link at the top of the file to view the changelog. ****
nextcloud  | ┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
nextcloud  | │  old date  │  new date  │ path                                                                   │
nextcloud  | ├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
nextcloud  | │ 2023-04-13 │ 2024-05-27 │ /config/nginx/nginx.conf                                               │
nextcloud  | │ 2023-06-23 │ 2024-06-24 │ /config/nginx/site-confs/default.conf                                  │
nextcloud  | └────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
nextcloud  | [custom-init] No custom files found, skipping...
nextcloud  | [ls.io-init] done.
nextcloud  | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:13
nextcloud  | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:14
nextcloud  | [migrations] started
nextcloud  | [migrations] 01-nginx-site-confs-default: skipped
nextcloud  | [migrations] 02-default-location: skipped
nextcloud  | [migrations] done
nextcloud  | usermod: no changes
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  |       ██╗     ███████╗██╗ ██████╗
nextcloud  |       ██║     ██╔════╝██║██╔═══██╗
nextcloud  |       ██║     ███████╗██║██║   ██║
nextcloud  |       ██║     ╚════██║██║██║   ██║
nextcloud  |       ███████╗███████║██║╚██████╔╝
nextcloud  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
nextcloud  | 
nextcloud  |    Brought to you by linuxserver.io
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | To support LSIO projects visit:
nextcloud  | https://www.linuxserver.io/donate/
nextcloud  | 
nextcloud  | ───────────────────────────────────────
nextcloud  | GID/UID
nextcloud  | ───────────────────────────────────────
nextcloud  | 
nextcloud  | User UID:    1000
nextcloud  | User GID:    100
nextcloud  | ───────────────────────────────────────
nextcloud  | Linuxserver.io version: 29.0.5-ls335
nextcloud  | Build-date: 2024-08-20T18:37:44+00:00
nextcloud  | ───────────────────────────────────────
nextcloud  |     
nextcloud  | using keys found in /config/keys
nextcloud  | **** The following active confs have different version dates than the samples that are shipped. ****
nextcloud  | **** This may be due to user customization or an update to the samples. ****
nextcloud  | **** You should compare the following files to the samples in the same folder and update them. ****
nextcloud  | **** Use the link at the top of the file to view the changelog. ****
nextcloud  | ┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
nextcloud  | │  old date  │  new date  │ path                                                                   │
nextcloud  | ├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
nextcloud  | │ 2023-04-13 │ 2024-05-27 │ /config/nginx/nginx.conf                                               │
nextcloud  | │ 2023-06-23 │ 2024-06-24 │ /config/nginx/site-confs/default.conf                                  │
nextcloud  | └────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
nextcloud  | [custom-init] No custom files found, skipping...
nextcloud  | [ls.io-init] done.
nextcloud  | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:13
nextcloud  | nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:14
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.

@tomspatz tomspatz changed the title [BUG] <occ maintenance:repair --include-expensive without sucess > [BUG] occ maintenance:repair --include-expensive without sucess Aug 21, 2024
@tomspatz
Copy link
Author

just found on nextcloud forum:
https://help.nextcloud.com/t/warning-after-upgrading-to-28-0-9-or-29-0-5/201289

@DaanSelen
Copy link

I also have this issue, is there any news?

@j0nnymoe
Copy link
Member

It's a nextcloud bug which has been fixed in their next point release.

@DaanSelen
Copy link

It's a nextcloud bug which has been fixed in their next point release.

Can you refer to the resources confirming this?

@Kapujino
Copy link

Here is a comment that mentions a fix for Nextcloud v28 and v29.
nextcloud/server#47359 (comment)

@DaanSelen
Copy link

@Kapujino Looks like this will also be patched in the next rolling update, looking at the merge status.

@Aetherinox
Copy link

Good to hear. I've ran the command about 7 times. Driving me nuts.

@simon-mueller
Copy link

Same problem with my instance. Guess we'll have to wait for next patch.

@vgdh
Copy link

vgdh commented Sep 1, 2024

Have the same problem on Nextcloud Hub 8 (29.0.5)

@aukfood
Copy link

aukfood commented Sep 2, 2024

Same problem with all our Nextcloud 29 installation.

@Ilpredatore
Copy link

@vgdh
Copy link

vgdh commented Sep 5, 2024

fixed for me with latest docker release.

@Ilpredatore
Copy link

fixed for me with latest docker release.

Did you pull the official nextcloud image?
I'm waiting linuxserver's version.

@Kapujino
Copy link

Kapujino commented Sep 5, 2024

I can also verify that this issue is fixed with image linuxserver/nextcloud:29.0.6

@Aetherinox
Copy link

Exactly what is the difference between the LinuxServer version, and the official. I just pull the LinuxServer version because they host numerous images I use. But I've never seen an official list of what makes them different, or LinuxServer being better.

@thomasboehm
Copy link

fixed with the web updater.

@vgdh
Copy link

vgdh commented Sep 5, 2024

fixed for me with latest docker release.

Did you pull the official nextcloud image? I'm waiting linuxserver's version.

official one.

@DaanSelen
Copy link

Is this fixed?

@j0nnymoe
Copy link
Member

j0nnymoe commented Oct 1, 2024

Have you tried updating?

@DaanSelen
Copy link

Have you tried updating?

Yes, but can the author mark this solved?

@j0nnymoe
Copy link
Member

j0nnymoe commented Oct 1, 2024

I can close the issue but note the bug was with nextcloud, not specifically the container.

@j0nnymoe j0nnymoe closed this as completed Oct 1, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

10 participants