douglara / woofed-crm

109 stars 29 forks source link

Error while creating an user #355

Closed DennyLoko closed 2 weeks ago

DennyLoko commented 2 weeks ago

Hello,

I'm trying to create a new user through the registration form, but right after submitting it I get an error 500. The application log shows the following messages:

I, [2024-07-05T15:10:52.218983 #1]  INFO -- : [892f8534-1444-48fc-80a8-5b9870b24d11] Started POST "/users" for 177.97.194.95 at 2024-07-05 15:10:52 +0000
I, [2024-07-05T15:10:52.224704 #1]  INFO -- : [892f8534-1444-48fc-80a8-5b9870b24d11] Processing by Users::RegistrationsController#create as HTML
I, [2024-07-05T15:10:52.225058 #1]  INFO -- : [892f8534-1444-48fc-80a8-5b9870b24d11]   Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"account_attributes"=>{"name"=>"Teste", "site_url"=>""}, "full_name"=>"Danniel Magno", "phone"=>"+55REDACTED", "email"=>"danniel@REDACTED", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Register"}
D, [2024-07-05T15:10:52.284754 #1] DEBUG -- : [892f8534-1444-48fc-80a8-5b9870b24d11]   Account Load (0.9ms)  SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1  [["LIMIT", 1]]
D, [2024-07-05T15:10:52.558458 #1] DEBUG -- : [892f8534-1444-48fc-80a8-5b9870b24d11]   CACHE Account Load (0.0ms)  SELECT "accounts".* FROM "accounts" ORDER BY "accounts"."id" ASC LIMIT $1  [["LIMIT", 1]]
I, [2024-07-05T15:10:52.622413 #1]  INFO -- : [892f8534-1444-48fc-80a8-5b9870b24d11] Completed 500 Internal Server Error in 397ms (ActiveRecord: 11.5ms | Allocations: 8083)
F, [2024-07-05T15:10:52.624575 #1] FATAL -- : [892f8534-1444-48fc-80a8-5b9870b24d11]   
[892f8534-1444-48fc-80a8-5b9870b24d11] NoMethodError (super: no superclass method `site_url=' for #<Account >):
[892f8534-1444-48fc-80a8-5b9870b24d11]   
[892f8534-1444-48fc-80a8-5b9870b24d11] app/models/account.rb:80:in `site_url='

I'm using:

Thanks!

DennyLoko commented 2 weeks ago

Looks like the error was related about using the douglara/woofedcrm:latest docker image instead of douglara/woofedcrm:easy-install-latest.

Using the easy-install-latest tag made the error go away.