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

Outdated schema version 0 for /var/lib/lavinmq/42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/97c1c36cf4b13e7f763f7ca5 #624

Open
superdit opened this issue Jan 10, 2024 · 6 comments · May be fixed by #685
Assignees
Labels

Comments

@superdit
Copy link

hello i'm new to lavinmq

i'm installing lavinmq on my ubuntu laptop for experiment, but i get this error log when starting lavinmq service
(found from command => journalctl -xeu lavinmq.service)

Outdated schema version 0 for /var/lib/lavinmq/42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/97c1c36cf4b13e7f763f7ca5

after i delete the folder then restart, it works again, why this is happening ?
If my experiment run smoothly, i'm planning to replace rabbitmq with lavinmq on my production server

@viktorerlingsson
Copy link
Member

Hi @superdit

Which version of LavinMQ are you using?

Could you please provide the content of your /var/lib/lavinmq/42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/97c1c36cf4b13e7f763f7ca5 folder?

@superdit
Copy link
Author

i'm running lavinmq version 1.2.7
installed using ubuntu repository

sorry since i already deleted the folder I don't know what content inside the folder

but now. after I deleted it, inside this folder (/var/lib/lavinmq/42099b4af021e53fd8fd4e056c2568d7c2e3ffa8) i get only these files
definitions.amqp
.vhost

@viktorerlingsson
Copy link
Member

Okay, thanks.

Have you had any earlier versions of LavinMQ installed on your machine?

I'm not able to reproduce this on my machine at the moment. Could you please provide the following information:

  1. What version of Ubuntu are you running?
  2. What are the permissions for /var/lib/lavinmq ?
  3. Steps to reproduce (what commands did you run)

@viktorerlingsson
Copy link
Member

Closing because of inactivity.

@dch
Copy link

dch commented May 15, 2024

can we re-open this? I'm testing FreeBSD port upgrade from 1.2.9 -> 1.2.11 and seeing
the same issue:

  • FreeBSD 15.0-CURRENT amd64
  • crystal 1.10.1
$ lavinmq --config=/usr/local/etc/lavinmq/lavinmq.ini --debug
2024-05-15T09:19:41.074772Z  INFO launcher logger settings
2024-05-15T09:19:41.074787Z  INFO launcher LavinMQ 1.2.11
2024-05-15T09:19:41.074790Z  INFO launcher Crystal 1.10.1 [84f389ac5424] (2023-10-13)
2024-05-15T09:19:41.074794Z  INFO launcher LLVM: 16.0.6
2024-05-15T09:19:41.074797Z  INFO launcher Default target: x86_64-portbld-freebsd15.0
2024-05-15T09:19:41.074803Z  INFO launcher Build flags: --release --debug
2024-05-15T09:19:41.074806Z  INFO launcher Pid: 24617
2024-05-15T09:19:41.074811Z  INFO launcher Config file: /usr/local/etc/lavinmq/lavinmq.ini
2024-05-15T09:19:41.074815Z  INFO launcher Data directory: /var/db/lavinmq
2024-05-15T09:19:41.074824Z  INFO launcher FD limit: 65000
2024-05-15T09:19:41.080477Z DEBUG userstore Loading users from file
2024-05-15T09:19:41.081118Z DEBUG userstore 2 users loaded
2024-05-15T09:19:41.081143Z DEBUG vhoststore Loading vhosts from file
2024-05-15T09:19:41.081285Z DEBUG vhost[name=/] 0 items loaded from operator_policies.json
2024-05-15T09:19:41.081292Z DEBUG vhost[name=/] 0 items loaded from policies.json
2024-05-15T09:19:41.081297Z DEBUG vhost[name=/] 0 items loaded from parameters.json
2024-05-15T09:19:41.081302Z  INFO vhost[name=/] Loading definitions
2024-05-15T09:19:41.081307Z DEBUG vhost[name=/] Verifying schema
2024-05-15T09:19:41.081362Z  INFO vhost[name=/] Applying 7 exchanges
2024-05-15T09:19:41.081386Z  INFO vhost[name=/] Applying 1 queues
Unhandled exception: Outdated schema version 0 for /var/db/lavinmq/42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/f192fd7ea451ab2158be9701c5ec2f1852de3bdd/msgs.0000000001 (LavinMQ::OutdatedSchemaVersion)

I can provide a tarball of /var/db/lavinmq via lavinmq slack if thats helpful, @ me dch.

42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/
42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/definitions.amqp
42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/f192fd7ea451ab2158be9701c5ec2f1852de3bdd/
42099b4af021e53fd8fd4e056c2568d7c2e3ffa8/f192fd7ea451ab2158be9701c5ec2f1852de3bdd/msgs.0000000001
backups/
backups/2024-03-07T16:47:30Z/
schema_version
users.json
vhosts.json

@viktorerlingsson
Copy link
Member

Yes, we will have a look. Sent you a message on slack about those files!

@viktorerlingsson viktorerlingsson self-assigned this May 17, 2024
@viktorerlingsson viktorerlingsson linked a pull request May 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants