# Rocket.Chat gives meteor runtime config error

**URL:** <https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218>\
**Category:** Community Support\
**Created:** [November 1, 2023, 10:13am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218 "2023-11-01T10:13:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forums.rocket.chat/u/gary)\
**Post date:** [November 1, 2023, 10:13am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/1 "2023-11-01T10:13:14Z")

</div>

I have these kind of errors on stucking home page of my rocketchat:

> Failed to load resource: the server responded with a status of 404 (Not Found)

> Refused to execute script from ‘[https://rocketchat.office129-5.local/meteor\_runtime\_config.js?hash=d1a24ca8938fc18b2f7ed883a1262c4ff59e9e28](https://rocketchat.office129-5.local/meteor_runtime_config.js?hash=d1a24ca8938fc18b2f7ed883a1262c4ff59e9e28)’ because its MIME type (‘’) is not executable, and strict MIME type checking is enabled.

> Uncaught ReferenceError: **meteor\_runtime\_config** is not defined  
> at client\_environment.js:1:1  
> at client\_environment.js:78:1  
> at url\_common.js:80:1

It’s just endless loading, nothing more.  
How can I fix it? Rocketchat installed as snap

I have tried to revert rocket version but it affects nothing

### Server Setup Information

- Version of Rocket.Chat Server: 6.4.3
- Operating System: Ubuntu 22.04.3 LTS
- Deployment Method: snap
- Proxy: nginx
- Firewalls involved: no

---

<div class="post-metadata">

**Author:** ![Dmitriy21](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dmitriy21](https://forums.rocket.chat/u/Dmitriy21)\
**Post date:** [November 9, 2023, 8:36pm UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/2 "2023-11-09T20:36:22Z")

</div>

I have the same problem on rocket chat in k8s with version 6.4.2 and 6.4.4

### Server Setup Information

- Version of Rocket.Chat Server: 6.4.4 (6.4.2 have same problem)
- Operating System: Centos 7
- Deployment Method: k8s (official helm)
- Proxy: nginx
- Firewalls involved: no

---

<div class="post-metadata">

**Author:** ![Dmitriy21](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dmitriy21](https://forums.rocket.chat/u/Dmitriy21)\
**Post date:** [November 9, 2023, 8:38pm UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/3 "2023-11-09T20:38:34Z")

</div>

Gary, have you tried version 6.4.5 ?

---

<div class="post-metadata">

**Author:** ![nelajc](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@nelajc](https://forums.rocket.chat/u/nelajc)\
**Post date:** [November 10, 2023, 6:01am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/4 "2023-11-10T06:01:44Z")

</div>

having the same issue with version rocketchat/rocket.chat:6.4.5

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/9/95609d0d81527be01f64f6618e51995e01b50755.png)

---

<div class="post-metadata">

**Author:** ![tetesh](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@tetesh](https://forums.rocket.chat/u/tetesh)\
**Post date:** [November 10, 2023, 8:46am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/5 "2023-11-10T08:46:21Z")

</div>

having the same issue with version rocketchat/rocket.chat:6.4.4!!! Installed in kubernetes

---

<div class="post-metadata">

**Author:** ![kourosh](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kourosh](https://forums.rocket.chat/u/kourosh)\
**Post date:** [November 11, 2023, 5:38pm UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/6 "2023-11-11T17:38:48Z")

</div>

Goddamn it! After about 20 hours of troubleshooting and wondering how it could be possible that such a simple installation process doesn’t work well, I can now confirm that it was a Rocket.Chat bug. Somehow, I only encountered this error with HTTPS, so initially, I thought something in my Nginx configuration was wrong. I updated to version 6.5.0-rc.2, and the problem is now resolved without any additional changes.

---

<div class="post-metadata">

**Author:** ![nelajc](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@nelajc](https://forums.rocket.chat/u/nelajc)\
**Post date:** [November 13, 2023, 7:02am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/7 "2023-11-13T07:02:24Z")

</div>

hi @kourosh , can you please share your nginx config and .env (even sample details) ? mine still having meteor runtime config error after using 6.5.0-rc.2 and 6.5.0-rc.3.

---

<div class="post-metadata">

**Author:** ![kourosh](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@kourosh](https://forums.rocket.chat/u/kourosh)\
**Post date:** [November 13, 2023, 7:31am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/8 "2023-11-13T07:31:03Z")

</div>

sure @nelajc :

```auto
# Upstreams
upstream backend {
    server 127.0.0.1:3000;
}

# HTTPS Server
server {
    listen 443 ssl;
    server_name chat.example.com;

    client_max_body_size 200M;

    error_log /var/log/nginx/rocketchat.access.log;

    ssl_certificate /etc/letsencrypt/live/chat.example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/chat.example.com/privkey.pem; # managed by Certbot
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE

    location / {
        proxy_pass http://backend;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Nginx-Proxy true;

        proxy_redirect off;
    }
}

```

no .env file.

---

<div class="post-metadata">

**Author:** ![garfield](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@garfield](https://forums.rocket.chat/u/garfield)\
**Post date:** [November 13, 2023, 8:51am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/9 "2023-11-13T08:51:32Z")

</div>

I’m facing the same issue after updating my rocket.chat server snap from 5.4.10 to first 6.x/stable (6.4.5 for me, but the same applies to latest/stable = 6.4.1) on my Ubuntu 22.04.3 LTS server, which goes through a nginx reverse proxy.

```auto
# https://docs.rocket.chat/deploy/rocket.chat-environment-configuration/configuring-ssl-reverse-proxy
# Upstreams
upstream backend {
    server 127.0.0.1:3000;
}

# HTTPS Server
server {
    listen 443 ssl;
    server_name chat.DOMAIN;

    # You can increase the limit if your need to.
    client_max_body_size 10M;

    access_log /var/log/nginx/rocketchat.access.log;
    error_log /var/log/nginx/rocketchat.error.log;

    ssl_certificate /etc/nginx/tls/DOMAIN.pem;
    ssl_certificate_key /etc/nginx/tls/DOMAIN.key;
    ssl_protocols TLSv1.2 TLSv1.3;

    location / {
        proxy_pass http://backend;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Nginx-Proxy true;

        proxy_redirect off;
    }
}

```

It seems like right after the installation/restart, the access to the rocket.chat server is successful. So if I `service snap.rocketchat-server.rocketchat-server restart` and then immediately connect to the rocket.chat webapp, I can log in just fine.

However, after a while any “fresh” access fails and the browser console logs:

```auto
Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
GET	https://DOMAIN/meteor_runtime_config.js?hash=b4fa3d616c8c6c5103c68892b71e78d139da0842
The resource from “https://DOMAIN/meteor_runtime_config.js?hash=b4fa3d616c8c6c5103c68892b71e78d139da0842” was blocked due to MIME type (“”) mismatch (X-Content-Type-Options: nosniff).
The resource from “https://DOMAIN/meteor_runtime_config.js?hash=b4fa3d616c8c6c5103c68892b71e78d139da0842” was blocked due to MIME type (“”) mismatch (X-Content-Type-Options: nosniff).
Loading failed for the <script> with source “https://DOMAIN/meteor_runtime_config.js?hash=b4fa3d616c8c6c5103c68892b71e78d139da0842”.
Uncaught ReferenceError: __meteor_runtime_config__ is not defined

```

---

<div class="post-metadata">

**Author:** ![nelajc](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@nelajc](https://forums.rocket.chat/u/nelajc)\
**Post date:** [November 13, 2023, 8:51am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/10 "2023-11-13T08:51:39Z")

</div>

oh… how bout the docker-compose can you share it also? still having the same error.

---

<div class="post-metadata">

**Author:** ![wellPraxis](https://avatars.discourse-cdn.com/v4/letter/w/8c91f0/32.png) [@wellPraxis](https://forums.rocket.chat/u/wellPraxis)\
**Post date:** [November 14, 2023, 3:45pm UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/11 "2023-11-14T15:45:00Z")

</div>

I’m not sure if this WILL help, but I had a bit similar problem with _ **meteor** _ …

In my particular case the solution from this article did REALLY made the trick:

> **[Rocket Chat - Change ROOT\_URL and Site URL](https://www.ryadel.com/en/rocket-chat-change-root_url-site-url-rocketchat/)**
>
> Today I was playing with Rocket.Chat, a neat open source web chat platform / framework with a lot of useful features. Unfortunately, the project still has a lot

The issue was in $SITE\_URL variable not affecting the corresponding value in MongoDB

Hope this’ll help!

---

<div class="post-metadata">

**Author:** ![Dmitriy21](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dmitriy21](https://forums.rocket.chat/u/Dmitriy21)\
**Post date:** [November 15, 2023, 6:59pm UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/12 "2023-11-15T18:59:26Z")

</div>

Has anyone tried version 6.4.6? does the problem persist?

---

<div class="post-metadata">

**Author:** ![LZMoporamet](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@LZMoporamet](https://forums.rocket.chat/u/LZMoporamet)\
**Post date:** [November 18, 2023, 9:17am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/13 "2023-11-18T09:17:18Z")

</div>

The same problem appeared with the latest update

---

<div class="post-metadata">

**Author:** ![bilel](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bilel](https://forums.rocket.chat/u/bilel)\
**Post date:** [November 28, 2023, 10:31am UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/14 "2023-11-28T10:31:41Z")

</div>

With my installation it wasn’t limited to **Site\_URL**

I had to purge and update NodeJs to solve the issue

$\>apt remove --purge npm nodejs  
$\>curl -sL [https://deb.nodesource.com/setup\_14.x](https://deb.nodesource.com/setup_14.x) | sudo bash -  
$\>apt-get install -y nodejs

!! Here it’s Node14 , so please check the version which is compatible with the targeted Rocketchat release

---

<div class="post-metadata">

**Author:** ![PiotrD](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@PiotrD](https://forums.rocket.chat/u/PiotrD)\
**Post date:** [February 19, 2024, 5:37pm UTC](https://forums.rocket.chat/t/rocket-chat-gives-meteor-runtime-config-error/18218/15 "2024-02-19T17:37:34Z")

</div>

I faced the same issue with the k8s installation for testing. My initial run was done with the port-forwarding option to localhost:8888. I was asked to autoupdate site url from original port :3000 to :8888 so I confirmed. After reload I faced meteor runtime error.

In my case, deleting pod helped to reload instance and probably to pickup updated Site\_Url properly.
