Gitlab on TrueNas Jail

Hi everyone!
This is my first post here, so I hope I am in the right category and someone can point me to the right direction to solve my problem.
I installed gitlab-ce with nginx following the instructions here on my TrueNas 13 Core: Matthias Fechner instructions for version 15.1
The self-hosted gitlab-ce instance is installed in the same jail with postgresql server 13 and with nginx version 1.22. I think the installation went well (as far as I can tell) and I can access the initial webpage where I’m asked to change the root password and the website displays that the password has been changed successfully when I enter a new one. When it later takes me to log in again (where I use the user ‘root’ and the password I just entered in the previous step), the result is a mysterious:
Error 500: Whoops, something went wrong on our end.
I have none experience with Rails so all the program names are new to me. In short: I am totally lost here.
I researched online for 2 days before posting here, but most of the instructions I see are for linux users and they don’t translate easily to FreeBSD.
I tried installing both the stable version in the latest version in the BSD repositories, but the error remains the same.
Bellow is the information I could retrieve. I hope someone might point me in the right direction.
Thank you!

# service gitlab status

The GitLab web server with pid 65764 is running.
The GitLab Sidekiq job dispatcher with pid 65774 is running.
The GitLab Workhorse with pid 65779 is running.
Gitaly with pid 65780 is running.
GitLab and all its components are up and running.
service nginx restart

Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 66021.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.

service nginx status

nginx is running as pid 2833.
su -l git -c "cd /usr/local/www/gitlab-ce && rake gitlab:env:info RAILS_ENV=production"

WARNING: Nokogiri was built against libxml version 2.9.13, but has dynamically loaded 2.9.14

System information
System:		
Current User:	git
Using RVM:	no
Ruby Version:	3.0.4p208
Gem Version:	3.3.19
Bundler Version:2.3.19
Rake Version:	13.0.6
Redis Version:	7.0.4
Sidekiq Version:6.4.2
Go Version:	go1.18.4 freebsd/amd64

GitLab information
Version:	15.1.4
Revision:	Unknown
Directory:	/usr/local/www/gitlab-ce
DB Adapter:	PostgreSQL
DB Version:	13.7
URL:		http://gitlab.freebird
HTTP Clone URL:	http://gitlab.freebird/some-group/some-project.git
SSH Clone URL:	ssh://git@gitlab.freebird:32337/some-group/some-project.git
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: 

GitLab Shell
Version:	14.7.4
Repository storage paths:
- default: 	/usr/local/git/repositories
GitLab Shell path:		/usr/local/share/gitlab-shell

I don’t know if the following is related to my particular case, but I saw the instructions to make gitlab check the installation and this is what I got:

# su -l git -c "cd /usr/local/www/gitlab-ce && rake gitlab:check SANITIZE=true RAILS_ENV=production"

WARNING: Nokogiri was built against libxml version 2.9.13, but has dynamically loaded 2.9.14
Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 14.7.4 ? ... OK (14.7.4)
Running /usr/local/share/gitlab-shell/bin/check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... no
  Try fixing it:
  sudo -u git -H RAILS_ENV=production bin/background_jobs start
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet)
Systemd unit files or init script exist? ... no
  Try fixing it:
  Install the Service
  For more information see:
  doc/install/installation.md in section "Install the Service"
  Please fix the error above and rerun the checks.
Systemd unit files or init script up-to-date? ... can't check because of previous errors
Projects have namespace: ... 
2/1 ... yes
Redis version >= 5.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (3.0.4)
Git user has default SSH configuration? ... yes
Active users: ... 1
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... yes
All projects are in hashed storage? ... yes

Checking GitLab App ... Finished


Checking GitLab subtasks ... Finished

Here is what my production.log right after entering the login credentials:

# cat /usr/local/www/gitlab-ce/log/production.log

Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:46:55 -0400
Started GET "/users/sign_in" for 10.33.10.160 at 2022-08-05 12:46:57 -0400
Processing by SessionsController#new as HTML
  Rendered layout layouts/devise.html.haml (Duration: 554.6ms | Allocations: 191150)
Completed 200 OK in 923ms (Views: 541.6ms | ActiveRecord: 109.3ms | Elasticsearch: 0.0ms | Allocations: 237792)
Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:47:05 -0400
root@gitlab:/usr/local/www/gitlab-ce/log # cat production.log

Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:46:55 -0400
Started GET "/users/sign_in" for 10.33.10.160 at 2022-08-05 12:46:57 -0400
Processing by SessionsController#new as HTML
  Rendered layout layouts/devise.html.haml (Duration: 554.6ms | Allocations: 191150)
Completed 200 OK in 923ms (Views: 541.6ms | ActiveRecord: 109.3ms | Elasticsearch: 0.0ms | Allocations: 237792)
Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:47:05 -0400
Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:47:15 -0400
Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:47:25 -0400
Started POST "/users/sign_in" for 10.33.10.160 at 2022-08-05 12:47:29 -0400
Processing by SessionsController#create as HTML
  Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"login"=>"root", "password"=>"[FILTERED]", "remember_me"=>"0"}}
Completed 500 Internal Server Error in 309ms (ActiveRecord: 99.6ms | Elasticsearch: 0.0ms | Allocations: 16595)
  
Psych::DisallowedClass (Tried to load unspecified class: Symbol):
  
(eval):2:in `symbol'
app/models/audit_event.rb:60:in `initialize_details'
app/services/audit_event_service.rb:124:in `log_security_event_to_database'
app/services/audit_event_service.rb:53:in `security_event'
app/controllers/sessions_controller.rb:283:in `log_audit_event'
app/controllers/sessions_controller.rb:83:in `block in create'
app/controllers/sessions_controller.rb:68:in `create'
app/controllers/application_controller.rb:527:in `set_current_admin'
lib/gitlab/session.rb:11:in `with_session'
app/controllers/application_controller.rb:518:in `set_session_storage'
lib/gitlab/i18n.rb:105:in `with_locale'
lib/gitlab/i18n.rb:111:in `with_user_locale'
app/controllers/application_controller.rb:512:in `set_locale'
app/controllers/application_controller.rb:506:in `set_current_context'
lib/gitlab/middleware/memory_report.rb:13:in `call'
lib/gitlab/middleware/speedscope.rb:13:in `call'
lib/gitlab/database/load_balancing/rack_middleware.rb:23:in `call'
lib/gitlab/jira/middleware.rb:19:in `call'
lib/gitlab/middleware/go.rb:20:in `call'
lib/gitlab/etag_caching/middleware.rb:21:in `call'
lib/gitlab/middleware/query_analyzer.rb:11:in `block in call'
lib/gitlab/database/query_analyzer.rb:37:in `within'
lib/gitlab/middleware/query_analyzer.rb:11:in `call'
lib/gitlab/middleware/multipart.rb:173:in `call'
lib/gitlab/middleware/read_only/controller.rb:50:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/same_site_cookies.rb:27:in `call'
lib/gitlab/middleware/handle_malformed_strings.rb:21:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'
lib/gitlab/middleware/request_context.rb:21:in `call'
lib/gitlab/middleware/webhook_recursion_detection.rb:15:in `call'
config/initializers/fix_local_cache_middleware.rb:11:in `call'
lib/gitlab/middleware/compressed_json.rb:26:in `call'
lib/gitlab/middleware/rack_multipart_tempfile_factory.rb:19:in `call'
lib/gitlab/middleware/sidekiq_web_static.rb:20:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:77:in `call'
lib/gitlab/middleware/release_env.rb:13:in `call'
Started GET "/api/v4/geo/proxy" for 127.0.0.1 at 2022-08-05 12:47:35 -0400