-
Notifications
You must be signed in to change notification settings - Fork 9.1k
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
[bitnami/discourse] Plugins should be installed on sideqik as well #29169
Comments
Hi @Giiltham Correct me if I'm wrong but you're able to reproduce the issue regardless the |
I don't think i have this issue while using
I don't have any since switching to |
Hi @Giiltham I see.. I can think of two different solutions:
|
Hello @juan131 It look like the second recommandations: "Move plugins installation to a init-container that shares the modified filesystem with both Discourse and Sidekiq containers." is what it should be done when using persistPlugins. It create a PVC named discourse-data that should be shared between all instances. The fact is that in the discource container the plugin are installed in /opt/bitnami/plugins but the volumes in mount on /bitnami/plugins Is a specific script that copy the plugins to the discource-data ? Why not installing plugins directly on the pvc ? |
Hi @AMontagu Let me provide you some context. Discourse is installed under the As explained in the container's README.md (check the link below), the data to be persisted is based on the env. variable You can find the container logic that performs these steps in the links below: |
Hello @juan131 Thank you for the time you took to make this explanation. This is more clear about how it works. The fact that plugin installed in the PVC was disappearing after being installed make sense now. In the case where If we go further why not having a persistDiscourseData options that replace the persist_app bash function by a PVC that is directly mounted to the correct path ? By the way with your explanation we was able to juste copy back the pvc populated in our init container to /bitnami/discourse/plugins after discourse initialisation. It just seem a little bit hacky because it initialize everything and try to persist data only to be overrided at the en by a copy from the PVC. To notice that this copy also add initialisation time. |
Persisting the whole application would break upgradability by replacing the container image (e.g. I'm running Discourse with container image |
I see for the whole application. But only for the plugins folder should work no ? |
Name and Version
bitnami/discourse 14.1.0
What architecture are you using?
None
What steps will reproduce the bug?
install discourse-ai :
What is the expected behavior?
I should be able to use the discourse-ai plugin on my instance
What do you see instead?
plugins actions behind a Job don't work
In the logs, I see:
Sideqik can't find the plugin Jobs, it doesn't have the plugin at all
Additional information
Installing manually the plugin by exec in the sidekiq container works.
persistPlugins : false
should be the culprit here as it removes the link with the discourse-data volume, meaning it will prevent all plugins with jobs from working.The text was updated successfully, but these errors were encountered: