jonmbake / discourse-ldap-auth

Discourse plugin to enable LDAP/Active Directory authentication.
MIT License
70 stars 55 forks source link

LDAP Discourse VM #58

Open krojowska opened 3 years ago

krojowska commented 3 years ago

Hi, I have a problem with install this plugin on my VM Debian with Discourse. You prefer install this in app.yml file but I haven't this file. I try via link https://docs.bitnami.com/aws/apps/discourse/configuration/install-plugins/ but I have a lot of errors. Can someone help me?

jonmbake commented 3 years ago

Can you post the command you used to install the plugin? Also, what errors are showing?

krojowska commented 3 years ago

I used the command below. Is it right way?

cd /opt/bitnami/apps/discourse/htdocs RAILS_ENV=production bundle exec rake plugin:install repo=https://github.com/jonmbake/discourse-ldap-auth.git RAILS_ENV=production bundle exec rake assets:precompile

jonmbake commented 3 years ago

That looks correct according to the Bitnami docs. This method of plugin installation is specific to Bitnami, i.e. they provide the rake plugin:install task. Are any errors logged when you run the commands?

Also, the example repo PLUGIN_REPO_URL does not have .git, so maybe try:

cd /opt/bitnami/apps/discourse/htdocs
RAILS_ENV=production bundle exec rake plugin:install repo=https://github.com/jonmbake/discourse-ldap-auth
RAILS_ENV=production bundle exec rake assets:precompile
krojowska commented 3 years ago

After this, when I tried to open admin panel (administration, settings) I have server error, error code 500 Internal Server Error

krojowska commented 3 years ago

I restart apache with commant sudo /opt/bitnami/ctlscript.sh restart apache and now I can't login also

We're sorry, but something went wrong.

The issue has been logged for investigation. Please try again later. Error ID: c2a09044 Details:

Web application could not be started by the Phusion Passenger application server.

Please read the Passenger log file (search for the Error ID) to find the details of the error.

You can also get a detailed report to appear directly on this page, but for security reasons it is only provided if Phusion Passenger is run with environment set to development and/or with the friendly error pages option set to on.

For more information about configuring environment and friendly error pages, see:

Nginx integration mode
Apache integration mode
Standalone mode
jonmbake commented 3 years ago

You would have to read the log file to determine the underlying issue. Can you see what error is showing in the log file?