Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reporting when editing website and view detail website with reverse proxy #2371

Closed
DroidBV8 opened this issue Oct 29, 2023 · 17 comments
Closed
Labels

Comments

@DroidBV8
Copy link

DroidBV8 commented Oct 29, 2023

Describe the Bug

Hello,

I have installed umami on Ubuntu server last LTS with postgresql and configured a reverse proxy with nginx. All access is good and install is OK without error

--> I have this error when i want to edit a website :

image
image

--> and this error when I want to wiew details stats :

image
image

I have these error with nginx reverse proxy only. In HTTP Direct access with 3000 port I haven't got the error.

  • ubuntu last LTS
  • Postgresql
  • NodeJS v18.17.1
  • yarn run v1.22.19
  • Next.js 13.5.3

-- My nginx proxy conf :

	location / {
		proxy_pass http://127.0.0.1:3000/;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection Upgrade;

		proxy_set_header X-Real-IP $remote_addr;
    	        proxy_set_header Host $host;
    	        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

npm install next@latest --force broke umami installation

Database

PostgreSQL

Relevant log output

Something went wrong.
Loading chunk 5767 failed. (error: https://umami.XXX.fr/_next/static/chunks/app/(main)/settings/websites/%5Bid%5D/page-22acaee2a17d71fd.js)
ChunkLoadError: Loading chunk 5767 failed.
(error: https://umami.XXX.fr/_next/static/chunks/app/(main)/settings/websites/%5Bid%5D/page-22acaee2a17d71fd.js)
    at l.f.j (https://umami.XXX.fr/_next/static/chunks/webpack-d29b485d209acb6d.js:1:3768)
    at https://umami.XXX.fr/_next/static/chunks/webpack-d29b485d209acb6d.js:1:1409
    at Array.reduce (<anonymous>)
    at l.e (https://umami.XXX.fr/_next/static/chunks/webpack-d29b485d209acb6d.js:1:1375)
    at self.__next_chunk_load__ (https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:1:5937)
    at https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:9:5751
    at https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:9:5974
    at t (https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:9:6177)


---

Something went wrong.
Loading chunk 5126 failed. (error: https://umami.XXX.fr/_next/static/chunks/app/(main)/websites/%5Bid%5D/page-29478cead3ccd45c.js)
ChunkLoadError: Loading chunk 5126 failed.
(error: https://umami.XXX.fr/_next/static/chunks/app/(main)/websites/%5Bid%5D/page-29478cead3ccd45c.js)
    at l.f.j (https://umami.XXX.fr/_next/static/chunks/webpack-d29b485d209acb6d.js:1:3768)
    at https://umami.XXX.fr/_next/static/chunks/webpack-d29b485d209acb6d.js:1:1409
    at Array.reduce (<anonymous>)
    at l.e (https://umami.XXX.fr/_next/static/chunks/webpack-d29b485d209acb6d.js:1:1375)
    at self.__next_chunk_load__ (https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:1:5937)
    at https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:9:5751
    at https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:9:5974
    at t (https://umami.XXX.fr/_next/static/chunks/7864-ed02d4d09d2fae55.js:9:6177)

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

github source, post gre

@corentin35000
Copy link

I have the exact same problem via NGINX with basic docker-compose.yaml from the Umami repository v 2.8.0

@DroidBV8
Copy link
Author

I feel less alone :)

I wanted to test the tool but I appreciate that having this kind of problem doesn't make me want to go further but I would like to resolve this problem so that I can at least try.

@corentin35000
Copy link

corentin35000 commented Oct 30, 2023

You must use Umami version <= 2.5.0

I haven't talked about it with someone on another issue, you have to downgrade the version to version: 2.5.0, you have to change in docker-compose:

version: '3'
services:
  umami:
    image: ghcr.io/umami-software/umami:postgresql-v2.5.0

@corentin35000
Copy link

I used this for a long time, when it works it's incredibly simple and very good! :)

@DroidBV8
Copy link
Author

I will try manually since I don't use Docker.

The problem is that I don't really want to test an old version.

If the problem is not resolved, I would turn to another tool I think

@corentin35000
Copy link

Yes I understand there are quite a few features and fixing bugs.. so we don't take advantage of it unfortunately, I also hate doing that but it's in the meantime..

@DroidBV8
Copy link
Author

yep no worries

It is also possible that given the problem, there is a problem in my configuration. I'll take a closer look.

The software seems to be worth it :)

@corentin35000
Copy link

I don't think it's on your side, a lot of issues were open for this problem

@mikecao
Copy link
Collaborator

mikecao commented Oct 30, 2023

The chunk load failed error is a Next.js problem. There are many different issues reported with different solutions.
vercel/next.js#38507
vercel/next.js#56484
vercel/next.js#54008

Keep in mind that we run all of our own versions in production for Umami Cloud, so we would definitely run into any errors. However, we host through Vercel and not behind Nginx or Docker, so it's hard to troubleshoot every possible scenario.

In case this helps, here are the Next versions for each Umami release:
2.5: 13.3.1
2.6: 13.4.19
2.7: 13.5.2
2.8: 13.5.3
master branch: 13.5.6

What you can try is to build your own Docker image from master or simply run the code from master to see if it helps. It has the latest Next.js version.

@jpgnz
Copy link

jpgnz commented Nov 23, 2023

What do you need @mikecao to help diagnose this? Docker nginx reverse proxy is a pretty common configuration for a bunch of people I'd imagine. I have the same issue running 2.6+

@yukikaze1234
Copy link

同样的问题,当我使用ip加端口访问时候没问题。 反向代理,点击查看就会报这样的错误

@Georgian
Copy link

Georgian commented Dec 1, 2023

Running umami+postgres on a VPS, server by nginx. Had the same issue.

Fixed by using the latest release tag instead of the master branch.

rm -rf node_modules
rm package-lock.json
git checkout tags/v2.8.0 -b latest-release
yarn build
pm2 start yarn -- start

@ajaxbits
Copy link

FWIW, I fixed my instance of this bug by disabling ublock origin for my Umami web console url.

@jpgnz
Copy link

jpgnz commented Jan 1, 2024

Upgrading to 2.9.0, I don't have this issue anymore.

@mikecao mentioned above that this error looked like a Next problem, and Next has been upgraded to v14.0.4 in this release.

Copy link

github-actions bot commented Mar 2, 2024

This issue is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added stale and removed stale labels Mar 2, 2024
Copy link

github-actions bot commented May 4, 2024

This issue is stale because it has been open for 60 days with no activity.

@github-actions github-actions bot added the stale label May 4, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants