Skip to content

Conversation

jc21
Copy link
Member

@jc21 jc21 commented Jan 6, 2021

No description provided.

jc21 and others added 25 commits November 22, 2020 16:57
add aliyun DNS plugin
Allow a top-level custom `stream` configuration file to be loaded.
…-1.3.8

Bump ini from 1.3.5 to 1.3.8 in /backend
Fix dead hosts verification count
Add Gandi Live DNS to certbot-dns-plugins.js
@jc21
Copy link
Member Author

jc21 commented Jan 6, 2021

Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-806

@Sabrimjd
Copy link

Sabrimjd commented Jan 6, 2021

Hello, from 2.7.1 i got an error log :

[1/6/2021] [1:53:46 PM] [Migrate ] › ℹ info Current database version: 20201014143841

[1/6/2021] [1:53:46 PM] [Global ] › ✖ error The migration directory is corrupt, the following files are missing: 20200522113248_openid_connect.js, 20200522144240_openid_allowed_users.js

have a nice day, and thanks for this awesome app

@jc21
Copy link
Member Author

jc21 commented Jan 6, 2021

20200522144240_openid_allowed_users

This is because you have used a docker image from the OIDC branch or PR. There is a migration file in there that has been run on your database. As a result, you have to revert these database changes in order to use the main branch. This is the risk with using code that is not merged yet.

This is the migration you'll need to revert. Connect to your database:

ALTER TABLE proxy_host DROP COLUMN openidc_restrict_users_enabled;
ALTER TABLE proxy_host DROP COLUMN openidc_allowed_users;
DELETE FROM migrations WHERE name="20200522144240_openid_allowed_users.js";

@jc21 jc21 merged commit bfb3282 into master Jan 6, 2021
@jc21
Copy link
Member Author

jc21 commented Jan 7, 2021

I also forgot that this migration will also need reverting:

ALTER TABLE proxy_host DROP COLUMN openidc_enabled;
ALTER TABLE proxy_host DROP COLUMN openidc_redirect_uri;
ALTER TABLE proxy_host DROP COLUMN openidc_discovery;
ALTER TABLE proxy_host DROP COLUMN openidc_auth_method;
ALTER TABLE proxy_host DROP COLUMN openidc_client_id;
ALTER TABLE proxy_host DROP COLUMN openidc_client_secret;
DELETE FROM migrations WHERE name="20200522113248_openid_connect.js";

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

Successfully merging this pull request may close these issues.

7 participants