-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
After running Kong dbless, Kong fails to do a db_import #9365
Comments
Isn't it expected? |
I think we need to draw a map of each kong command that what they do.
Also it is really hard to know what is difference between restart and reload. |
If If Main question for me is; id db_import supported on a running Kong instance? |
maybe this code should actually check not the existence of the file, but ALSO if the node is running. |
Dear contributor, |
Is there an existing issue for this?
Kong version (
$ kong version
)2.8.1
Current Behavior
Expected Behavior
was unexpected, since the node was already stopped, and I didn't specify
database=off
. The same error as before was expected;Anything else?
The workaround is to use a
prepare
firstIt seems that the
config db_import
command is looking at the configuration file stored in the prefix. Instead of parsing the actual config passed.This makes sens if the import command is expected to run against a running instance of Kong. But in this case Kong was not running, hence it should have never used that file, and only the actual passed in config.
The text was updated successfully, but these errors were encountered: