Hi all,
after upgrade Ubuntu from 18.04 to 20.04 we get this error:
foreman We’re sorry, but something went wrong.If you are the application owner check the logs for more information.
In the ~# less /var/log/foreman/production.log I could not find errors or so.
The status of foreman-proxy
~# systemctl status foreman-proxy
● foreman-proxy.service - Foreman Proxy
Loaded: loaded (/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-05-14 10:21:16 CEST; 52min ago
Main PID: 956 (ruby)
Tasks: 3 (limit: 19088)
Memory: 52.8M
CGroup: /system.slice/foreman-proxy.service
└─956 ruby /usr/share/foreman-proxy/bin/smart-proxy --no-daemonize
Mai 14 10:21:12 ServerDM smart-proxy[956]: You should probably keep only one of them.
Mai 14 10:21:12 ServerDM smart-proxy[956]: Remove any duplicate entries and specify the gem only once.
Mai 14 10:21:12 ServerDM smart-proxy[956]: While it's not a problem now, it could cause errors if you change the version of one of them later.
Mai 14 10:21:15 ServerDM smart-proxy[956]: /usr/lib/ruby/vendor_ruby/mustermann/pattern.rb:59: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 10:21:15 ServerDM smart-proxy[956]: /usr/lib/ruby/vendor_ruby/mustermann/regular.rb:22: warning: The called method `initialize' is defined here
Mai 14 10:21:15 ServerDM smart-proxy[956]: /usr/lib/ruby/vendor_ruby/mustermann/pattern.rb:59: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 10:21:15 ServerDM smart-proxy[956]: /usr/lib/ruby/vendor_ruby/mustermann/regexp_based.rb:17: warning: The called method `initialize' is defined here
Mai 14 10:21:15 ServerDM smart-proxy[956]: /usr/lib/ruby/vendor_ruby/mustermann/ast/compiler.rb:43: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 10:21:15 ServerDM smart-proxy[956]: /usr/lib/ruby/vendor_ruby/mustermann/ast/compiler.rb:49: warning: The called method `pattern' is defined here
Mai 14 10:21:16 ServerDM systemd[1]: Started Foreman Proxy.
The status of the foreman:
# systemctl status foreman
● foreman.service - Foreman
Loaded: loaded (/lib/systemd/system/foreman.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/foreman.service.d
└─installer.conf
Active: active (running) since Sat 2022-05-14 11:01:55 CEST; 8min ago
TriggeredBy: ● foreman.socket
Docs: https://theforeman.org
Main PID: 30915 (foreman-ruby)
Tasks: 240 (limit: 19088)
Memory: 3.2G
CGroup: /system.slice/foreman.service
├─30915 puma 5.6.2 (unix:///run/foreman.sock) [foreman]
├─30954 puma: cluster worker 0: 30915 [foreman]
├─30956 puma: cluster worker 1: 30915 [foreman]
├─30959 puma: cluster worker 2: 30915 [foreman]
├─30963 puma: cluster worker 3: 30915 [foreman]
├─30968 puma: cluster worker 4: 30915 [foreman]
├─30974 puma: cluster worker 5: 30915 [foreman]
├─30980 puma: cluster worker 6: 30915 [foreman]
├─30985 puma: cluster worker 7: 30915 [foreman]
├─30989 puma: cluster worker 8: 30915 [foreman]
├─30994 puma: cluster worker 9: 30915 [foreman]
├─31000 puma: cluster worker 10: 30915 [foreman]
├─31004 puma: cluster worker 11: 30915 [foreman]
└─31008 puma: cluster worker 12: 30915 [foreman]
Mai 14 11:08:52 ServerDM foreman[31008]: /usr/share/foreman/vendor/ruby/2.7.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:21: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 11:08:52 ServerDM foreman[31008]: /usr/share/foreman/vendor/ruby/2.7.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:130: warning: The called method `initialize_without_deface' is defined here
Mai 14 11:10:03 ServerDM foreman[30994]: /usr/share/foreman/app/models/concerns/foreman/sti.rb:26: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 11:10:03 ServerDM foreman[30994]: /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/suppressor.rb:43: warning: The called method `save' is defined here
Mai 14 11:10:05 ServerDM foreman[30994]: /usr/share/foreman/vendor/ruby/2.7.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:21: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 11:10:05 ServerDM foreman[30994]: /usr/share/foreman/vendor/ruby/2.7.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:130: warning: The called method `initialize_without_deface' is defined here
Mai 14 11:10:28 ServerDM foreman[30974]: /usr/share/foreman/app/models/concerns/foreman/sti.rb:26: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 11:10:28 ServerDM foreman[30974]: /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.0.3.7/lib/active_record/suppressor.rb:43: warning: The called method `save' is defined here
Mai 14 11:10:30 ServerDM foreman[30974]: /usr/share/foreman/vendor/ruby/2.7.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:21: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
Mai 14 11:10:30 ServerDM foreman[30974]: /usr/share/foreman/vendor/ruby/2.7.0/gems/actionview-6.0.3.7/lib/action_view/template.rb:130: warning: The called method `initialize_without_deface' is defined here
apt policy foreman
foreman:
Installiert: 3.0.2-2
Installationskandidat: 3.0.2-2
Versionstabelle:
*** 3.0.2-2 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
100 /var/lib/dpkg/status
3.0.2-1 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
3.0.1-2 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
3.0.1-1 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
3.0.0-1 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
3.0.0~rc2-1 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
3.0.0~rc1-1 500
500 http://deb.theforeman.org focal/3.0 amd64 Packages
:~# ls -alh /usr/share/foreman
total 84K
drwxr-xr-x 13 foreman foreman 4,0K Mai 14 10:59 .
drwxr-xr-x 167 root root 4,0K Mai 14 10:17 ..
drwxr-xr-x 15 foreman foreman 4,0K Sep 16 2021 app
drwxr-xr-x 2 foreman foreman 4,0K Mai 14 10:59 bin
drwxr-xr-x 2 foreman foreman 4,0K Sep 16 2021 .bundle
drwxr-xr-x 2 foreman foreman 4,0K Mai 14 10:59 bundler.d
drwxr-xr-x 7 foreman foreman 4,0K Mai 14 10:59 config
-rw-r--r-- 1 foreman foreman 383 Feb 25 17:09 config.ru
lrwxrwxrwx 1 foreman foreman 19 Sep 8 2021 db -> /var/lib/foreman/db
drwxr-xr-x 3 foreman foreman 4,0K Mai 14 10:59 extras
-rwxr-xr-x 1 foreman foreman 1,3K Mär 8 20:57 foreman-plugin.mk
-rw-r--r-- 1 foreman foreman 2,1K Mär 8 20:57 Gemfile
-rw-r--r-- 1 foreman foreman 8,6K Mai 14 10:59 Gemfile.lock
drwxr-xr-x 7 foreman foreman 4,0K Mai 14 10:59 lib
drwxr-xr-x 20 foreman foreman 4,0K Mai 14 10:59 locale
lrwxrwxrwx 1 foreman foreman 16 Sep 8 2021 log -> /var/log/foreman
lrwxrwxrwx 1 foreman foreman 23 Sep 8 2021 public -> /var/lib/foreman/public
-rw-r--r-- 1 foreman foreman 198 Feb 25 17:09 Rakefile
drwxr-xr-x 5 foreman foreman 4,0K Mai 14 10:59 script
drwx------ 2 foreman foreman 4,0K Sep 8 2021 .ssh
lrwxrwxrwx 1 foreman foreman 18 Sep 8 2021 tmp -> /var/cache/foreman
drwxr-xr-x 5 foreman foreman 4,0K Sep 16 2021 vendor
-rw-r--r-- 1 foreman foreman 6 Feb 25 17:09 VERSION
thank you all