Replies: 1 comment 4 replies
-
If you are running the database and librenms install in two separate docker containers then don't dump the DB, just roll out the new librenms container and run the lnms migrate command. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've been running Librenms for sometime but never updated it!!! I've been using the [jarischaefer] docker image originally but looking to use the now provided librenms one. I've attempt to mysqldump the original v21.9.1 and restore this into v24.8.0 and when I run "./lnms migrate" I get the following:
INFO Running migrations.
2021_07_28_102443_plugins_add_version_and_settings ................................................................ 1,962ms DONE
2021_09_07_094310_create_push_subscriptions_table ..................................................................... 2ms FAIL
In Connection.php line 829:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'push_subscriptions' already exists (Connection: mysql, SQL: cre
ate table
push_subscriptions
(id
bigint unsigned not null auto_increment primary key,subscribable_type
varchar(255) notnull,
subscribable_id
bigint unsigned not null,endpoint
varchar(500) not null,public_key
varchar(255) null,auth_token
varchar(255) null,content_encoding
varchar(255) null,description
varchar(255) null,created_at
timestamp null,updat ed_at
timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')In Connection.php line 587:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'push_subscriptions' already exists
librenms:/opt/librenms#
Can anyone help/advise my steps needed to move this onto a new version of librenms on a new device...
Beta Was this translation helpful? Give feedback.
All reactions