Unexpected Application Error after Upgrade from 6.0.7 to 6.1.1

  1. Describe your incident:

After Upgrade from 6.0.7 to 6.1.1 i receive the following error message in the frontend (web browser) after logging in (hostname anonymized):

Unexpected Application Error!
useLicenseCheck must be used within a LicenseCheckProvider.
f@https[:]//hostname/graylog/assets/plugin/org.graylog.plugins.enterprise.EnterprisePlugin/plugin.org.graylog.plugins.enterprise.EnterprisePlugin.5d5bd6404c53801f96be.js:6875:3505 
useCondition@https[:]//hostname/graylog/assets/plugin/org.graylog.plugins.enterprise.EnterprisePlugin/plugin.org.graylog.plugins.enterprise.EnterprisePlugin.5d5bd6404c53801f96be.js:3018:5847 
6kKi+oxr/sn/Ye<@https[:]//hostname/graylog/assets/app.c27238c54d36f84fc206.js:5272:2662 
sn@https[:]//hostname/graylog/assets/app.c27238c54d36f84fc206.js:5272:2630 
Sa@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:690:20582 
L_@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:692:45470 
h_@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:692:41075 
J_@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:692:41003 
ha@https[:]//hostname/graylog/assets/vendor.437b8293e063schie2fce4768.js:692:40852 
ci@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:692:37096 
z_@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:692:37906 
Ar@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:690:3290 
4448/Vo/<@https[:]//hostname/graylog/assets/vendor.437b8293e0632fce4768.js:692:35396
  1. Describe your environment:
OS Information: 
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy

Package Version:

graylog-6.1-repository/stable,stable,now 1-1 all  [installiert]
graylog-enterprise/stable,now 6.1.1-1 amd64  [installiert]
graylog-sidecar-repository/now 1-5 all  [Installiert,lokal]
graylog-sidecar/sidecar-stable,now 1.5.0-2 amd64  [installiert]
mongodb-database-tools/jammy,now 100.10.0 amd64  [Installiert,automatisch]
mongodb-mongosh/jammy,now 2.3.3 amd64  [Installiert,automatisch]
mongodb-org-database-tools-extra/jammy,now 6.0.19 amd64  [Installiert,automatisch]
mongodb-org-database/jammy,now 6.0.19 amd64  [Installiert,automatisch]
mongodb-org-mongos/jammy,now 6.0.19 amd64  [Installiert,automatisch]
mongodb-org-server/jammy,now 6.0.19 amd64  [Installiert,automatisch]
mongodb-org-shell/jammy,now 6.0.19 amd64  [Installiert,automatisch]
mongodb-org-tools/jammy,now 6.0.19 amd64  [Installiert,automatisch]
mongodb-org/jammy,now 6.0.19 amd64  [installiert]
opensearch/stable,now 2.17.1 amd64  [installiert]
  1. Service logs, configurations, and environment variables:

There are no errors in the logs. No changes in configuration or environment variables.

  1. What steps have you already taken to try and solve the problem?

Check Service logs and configurations.

  1. How can the community help?

Anyone has the same effekt after upgrade to 6.1.1?
Any ideas where to look for a reason?

Are you seeing this in server.log or on the frontend (e.g. in your web browser?)

Can you describe what steps lead to this error?

Also can you confirm you intend to use the licensed package, graylog-enterprise vs the Graylog Open package, graylog-server?

Thanks!

  1. I see it in the frontend (web browser).
  2. Upgrade from 6.0.7 to 6.1.1: after logging in, the error message appears immediately.
  3. yes, I want to use the licensed package graylog-enterprise (for reporting and other functions). License for this is valid.

Thanks for the answer!

I have identified the problem: it is NGINX.
Without NGINX (http://<fqdn>:9000/welcome) it works without errors. If I go through NGNIX, the error message appears.
Here is my NGNIX configuration for Graylog (this still worked with 6.0):

location /graylog/ {
                proxy_set_header Host $http_host;
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header X-Forwarded-Server $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Graylog-Server-URL https://$server_name/graylog/;
                rewrite          ^/graylog/(.*)$  /$1  break;
                proxy_pass       http://127.0.0.1:9000;
        }

and server.conf:

is_leader = true
node_id_file = /etc/graylog/server/node-id
password_secret = <password_secret>
root_password_sha2 = <root_password_sha2>
root_timezone = Europe/Berlin
bin_dir = /usr/share/graylog-server/bin
data_dir = /var/lib/graylog-server
plugin_dir = /usr/share/graylog-server/plugin
http_bind_address = 0.0.0.0:9000
http_publish_uri = http://<fqdn>:9000/
stream_aware_field_types=false
trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
rotation_strategy = time
elasticsearch_max_docs_per_index = 20000000
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 4
elasticsearch_replicas = 0
elasticsearch_index_prefix = graylog
allow_leading_wildcard_searches = false
allow_highlighting = false
elasticsearch_analyzer = standard
output_batch_size = 1500
output_flush_interval = 1
output_fault_count_threshold = 5
output_fault_penalty_seconds = 30
processbuffer_processors = 5
outputbuffer_processors = 3
processor_wait_strategy = blocking
ring_size = 65536
inputbuffer_ring_size = 65536
inputbuffer_processors = 2
inputbuffer_wait_strategy = blocking
message_journal_enabled = false
message_journal_dir = /var/lib/graylog-server/journal
lb_recognition_period_seconds = 3
mongodb_uri = mongodb://localhost/graylog
mongodb_max_connections = 1000
proxied_requests_thread_pool_size = 32
integrations_scripts_dir = /usr/share/graylog-server/scripts

what is wrong?

Thanks for reporting this! I was able to reproduce this issue even without using the proxy when setting the graylog http URI to something other than the default /

I’ve opened a GH issue: Accessing Graylog Web Interface using a URI other than `/` returns a frontend error · Issue #20837 · Graylog2/graylog2-server · GitHub

1 Like