Loomio
Tue 16 May 2023 6:49AM

Error 503 Service Temporarily Unavailable

F Flom Public Seen by 73

Hi, i try to install loomio on Ubuntu 22.04.2 LTS. I have following the github installation method.

But it's always the same result "Error 503 Service Temporarily Unavailable"

I don't understand, I have only warn on the logs. I think is the nginx problem but it's very obscure.

Do you know if this is a known issue? Thank's
RG

Robert Guthrie Tue 16 May 2023 1:38PM

Hi @Flom - no known issues with this. Please post your logs

F

Flom Wed 17 May 2023 8:35AM

Hi, it was a let's encrypt problem, sorry for that.

But i have a new error with the maillin, i can't send mail

Thank's

CONF

# smtp settings

#SMTP_AUTH=plain

SMTP_DOMAIN=mydomain.fr

SMTP_SERVER=x.x.x.x

SMTP_PORT=25

#SMTP_USERNAME=smtpusername

#SMTP_PASSWORD=smtppassword

#SMTP_USE_SSL=1

# to disable SSL comment out line (rather than changing to 0)

LOG ERROR

loomio-worker | 2023-05-17T08:30:50.527Z pid=8 tid=1fxs WARN: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)

loomio-worker | [ActiveJob] [ActionMailer::MailDeliveryJob] [ebafada2-b43c-4bf8-96a5-3b38cf5bb75c] Error performing ActionMailer::MailDeliveryJob (Job ID: ebafada2-b43c-4bf8-96a5-3b38cf5bb75c) from Sidekiq(mailers) in 123.56ms: OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)):

loomio-worker | 2023-05-17T08:31:32.317Z pid=8 tid=1fzw WARN: {"context":"Job raised exception","job":{"retry":true,"queue":"mailers","backtrace":true,"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"ActionMailer::MailDeliveryJob","args":[{"job_class":"ActionMailer::MailDeliveryJob","job_id":"ebafada2-b43c-4bf8-96a5-3b38cf5bb75c","provider_job_id":null,"queue_name":"mailers","priority":null,"arguments":["UserMailer","login","deliver_now",{"args":[1,3],"_aj_ruby2_keywords":["args"]}],"executions":0,"exception_executions":{},"locale":"fr","timezone":"UTC","enqueued_at":"2023-05-17T08:29:55Z"}],"jid":"73f49e1584d627b11b7155a3","created_at":1684312195.6473,"sentry_user":{"id":null},"enqueued_at":1684312292.191235,"error_message":"SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)","error_class":"OpenSSL::SSL::SSLError","failed_at":1684312196.107614,"retry_count":2,"error_backtrace":"eJztWcuSmzgU/ZWe3iSpGhsDfnZNzX6qskplNzWlEXDbViwkIgk7PV8/emAb\n3G0DRs4mvbIR0jn3fS/w92NQShFQnmIaUJIEokxegmi8GE8CBiooBFc85XQs\nkqfp9Imwh39TzhikCjHOEn1u++Hx9/4gUlIk9WFQqMI7g0lKllEI1pBLgzGS\nuSpGk3E8ji2DgTVLBnK+mlhMReVwrPncYmUcSYXFEKQwdJq2wOSY0FE0Xo5D\nC2EuDc6ei22QASU7EC8oB7XhmTyCh5PVCRyZVSRBSsKZfyZn3GrDbz3xcy0V\nXoNBisLp7GDbA90AtFlswWwIPuh/FeQVRJwqbSADBGI0H4c6Pp3b3A3k7gQJ\nlpZhNlu9yWD3tdDsQJZFwYV6xbMDVN0KGFfkmaTYkEur0+RMJ8KkEmUO7FoA\n3cYXnLBBWHKXmHekrKvYmaaXwxb1UG3zU8cA8xZXFfYx9m12hRdijPH9cEYB\nMi1xQq0+oTPOBhsYBD9SKKxX7qXYsuELL/qYnyML+sYT6yfnpgLEMxd5a9Dq\nU28FrF4O4AekpeGzfWrZdEyF30GRTomhD9IEp1vpjLVokomSoeOOK3QkXLJR\nOA4j3WgNibk2gHEUWcA9URtkj8EQwyiBmaT4YJp6yH6MHijsgMpPRu4/cp6V\nFJ6+ng786d9a0fxYQjBLTSxDejeW3j7pTseFkV0FiuQQ/McZSDeBWN5SAjJr\ng/ymgY+4Hbx22P6L+uyKJU/t6pgFUfjTevX7bODHZXF4X/xw2ppjfzVPvWfa\nuVkpX68JW9t4iJocCq+Rud06jHXSR6OtIUM1vtXqFZ/ecR+u2HX8e1JU6nSk\n6OWSHp7ohhvOWjPns9v9i2ZMb7oqwLzlZXM4XtRn7paZWOpiJ15GQg/vcjTT\nz1tuVnXLgV2uEdkRqAd6P8GjWdMJ7mb7kPXTJvpWdYy9FIGaF6qkmTaSJqVY\nyqcvbrOXnDnaEe0FLgo3GKxcRzUrPjgEUI4zB704q/6+ON7UY7m4nx49TNTR\n7/VK8jG+s9/fa+XAkuOG2q6V5grs9xJKQDjDhR7LdV0lGWzJ98OCjYyo47uQ\n6qxm0gXZlWO3Yt7VpyAld3P/JKoLb6QYDhouJhebfbXxJpKcZHrXHgsI0g0m\nbiJfnNVhwnZ8e80LVbc60LzqVwc2d2k+Xij9DI9O5NZuLn5NMHlUZdVXlX74\ny6hK7Zthm26en8k7xLdN5LhRAOf1AMqILLBKNzex6PBGAtThDaZLXAvgQ+jG\niDvzJrQdoF49fep/LdH33vjvrUcn6C6OjYdVk7M4DC9OjYPisNk45vHh+6Ty\nkfHR5ZFncMa7B1n/ho4uP9P6q1JL10vXlCdeqlR0VkQ8Wjd2/aAQUOjG40PW\n6gOdt6gN58tKRE+datHAQ9df53fErGTUw+pNWCnPCy0HUzZ6XIUy1sv4ejje\n+VOvxM+A1EYAzj48/vM/uaISHA==\n","retried_at":1684312250.524756}}

RG

Robert Guthrie Wed 17 May 2023 7:44PM

@Flom I think there was a global issue with LetsEncrypt recently. All my managed Loomio sites went down - the only thing that fixed the problem was a system reboot.

SMTP config issues are common.. but always fixable. Here are all the SMTP settings you can try:

address: ENV['SMTP_SERVER'],
port: ENV['SMTP_PORT'],
authentication: ENV['SMTP_AUTH'],
user_name: ENV['SMTP_USERNAME'],
password: ENV['SMTP_PASSWORD'],
domain: ENV['SMTP_DOMAIN'],
ssl: ENV['SMTP_USE_SSL'].present?,
openssl_verify_mode: ENV.fetch('SMTP_SSL_VERIFY_MODE', 'none') # options: none, peer, client_once, fail_if_no_peer_cert

I would suggest trying SMTP_USE_SSL, and if that does not work, try another port.

Who is your SMTP provider

F

Flom Mon 22 May 2023 7:08AM

Hi, it was a local postfix, so I used mailjet and it works :-)
F

Flom Mon 22 May 2023 9:19AM

Hi, i can't create group, in the log i have a error 403 :

source=rack-timeout id=946e9ac7-59ec-44a6-a872-20ec42495852 timeout=15000ms state=ready

loomio-app | method=POST path=/api/v1/groups format=json controller=API::V1::GroupsController action=create status=500 error='OpenURI::HTTPError: 403 Forbidden' duration=471.08 view=0.00 db=4.53

loomio-app |

loomio-app | OpenURI::HTTPError (403 Forbidden):

loomio-app |

loomio-app | app/services/group_service.rb:78:in `create'

loomio-app | app/controllers/api/v1/snorlax_base.rb:47:in `create_action'

loomio-app | app/controllers/api/v1/snorlax_base.rb:20:in `create'

loomio-app | app/helpers/locales_helper.rb:8:in `use_preferred_locale'

loomio-app | source=rack-timeout id=946e9ac7-59ec-44a6-a872-20ec42495852 timeout=15000ms service=475ms state=completed

Thank you

F

Flom Mon 22 May 2023 9:24AM

And in the admin panel, i have an error when i create a group :

source=rack-timeout id=74620219-7b91-4c1e-bbb1-ed9acc6bdeaf timeout=15000ms state=ready

loomio-app | method=POST path=/admin/groups format=html controller=Admin::GroupsController action=create status=500 error='ActionView::MissingTemplate: Missing template admin/groups/create, active_admin/resource/create, active_admin/base/create, inherited_resources/base/create, application/create with {:locale=>[:fr, :en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :arb, :haml, :coffee, :md]}. Searched in:

loomio-app | * "/loomio/app/views"

loomio-app | * "/usr/local/bundle/gems/blazer-2.6.5/app/views"

loomio-app | * "/usr/local/bundle/gems/activeadmin-2.13.1/app/views"

loomio-app | * "/usr/local/bundle/gems/kaminari-core-1.2.2/app/views"

loomio-app | * "/usr/local/bundle/gems/devise-i18n-1.10.3/app/views"

loomio-app | * "/usr/local/bundle/gems/devise-4.9.0/app/views"

loomio-app | * "/usr/local/bundle/gems/actiontext-6.1.7.3/app/views"

loomio-app | * "/usr/local/bundle/gems/actionmailbox-6.1.7.3/app/views"

loomio-app | ' duration=31.45 view=0.00 db=11.37

RG

Robert Guthrie Mon 22 May 2023 11:10PM

@Flom I think I know (and fixed) that error. Please use the normal update command

docker system prune -f; docker-compose pull; docker-compose run app rake db:migrate; docker-compose down; docker-compose up -d

and try again.

Could you please let me know what docker image you're using? (I.E. The value of LOOMIO_CONTAINER_IMAGE in your .env file)