-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Etherpad-lite version 2.2.2 doesn't work anymore with nginx subdirectory url configuration (unable to load indexBootstrap-XZV.min.js) #6591
Comments
Feel free to try on develop. That should be fixed. |
On a first try, applying 3dae23a seems to help. I'll wait for the next release until I close the ticket. Apparently there are some plugins which do not work. |
Thanks for the reply. Do you have any more plugins not working? If yes then just list them in a new issue and I'll fix them. |
I have the same issue but using etherpad's Docker image instead of installing it myself. Applying the above commit and then building the image didn't help. |
I still have the same error in the develop branch. If I open a pad in the develop branch, it only shows the loading screen. In the console it shows the error "https://xxx/padbootstrap-OwAkEXFiro8.min.js not found", https://xxx/etherpad/padbootstrap-OwAkEXFiro8.min.js exists. |
Current Setup:
The main Etherpad page seems to load, but it fails to fetch the |
Could you send me the index.html script section please? It says for me <script src="../../padbootstrap-EzpbEC2vM2I.min.js"></script> which should always work as it goes 2 levels up the stack which should be the subfolder path. @Adz10kvtech |
I also ran into this issue on master, but applying 3dae23a (and then rebuilding the assets) did not solve it for me either. Can I provide anything in order to help debugging this? |
Try the develop image or the develop branch if you are working bare metal. @yacchin1205 had also a fix for the subdirectory problem. |
Using the docker image etherpad:develop that was available 2 days ago, I was able to access pads when etherpad was configured to be served from a subdirectory however the /admin/plugins had still the same issueL |
Did you apply the patches in https://github.com/ether/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy/ ? You need to set some headers in order to have the rooting correctly for the /admin/ endpoint. |
It's still now working with version 2.2.4, now I get a different error.
|
That sounds actually good. It means the JavaScript is executed but runs into an error. Do you use any plugins on your instance? |
Ah, I see, without plugins, it works fine. It's |
Sorry about the delay, I have read the wiki entry, I don't see anything really Etherpad specific to make it work behind a reverse proxy.. But the reverse proxy seems to be working as intended, the <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Etherpad Admin Dashboard</title>
<link rel="icon" href="/favicon.ico">
<script type="module" crossorigin src="/admin/assets/index-a_6o1ecH.js"></script>
<link rel="stylesheet" crossorigin href="/admin/assets/index-NApm68Ro.css">
</head>
<body>
<div id="root"></div>
<div id="loading"></div>
</body>
</html> As you can see, it tries to load the assets based on document root, which doesn't work if it's served from a from a subdirectory. Modifying those URLs directly in the container ( By again editing the css and javascript manually, I was able to make those resources load as well, but the page is still blank, and it doesn't try to call |
You need to set the Proxy Header var x-proxy-path to your subpath. Then it will work |
Describe the bug
I have serveral etherpad-lite instances. The main instance is under
https://pad.domain.tld
and there are other instances underhttps://pad.domain.tld/instance1/
,https://pad.domain.tld/instance2/
andhttps://pad.domain.tld/instance3/
. After upgrading to etherpad-lite version 2.2.2 only the main instance is still working, the subfolder instances fail to loadindexBootstrap-XYZ.min.js
. This is probably due to the javascript change in version 2.2.2. Please help.https://pad.domain.tld
successfully loadsindexBootstrap-MAIN.min.js
fromhttps://pad.domain.tld/indexBootstrap-MAIN.min.js
https://pad.domain.tld/instance/
tries to loadindexBootstrap-OTHERINSTANCE.min.js
fromhttps://pad.domain.tld/indexBootstrap-OTHERINSTANCE.min.js
(withoutinstance
subfolder path) which fails (HTTP error code 404). BUT theindexBootstrap-OTHERINSTANCE.min.js
is reachable fromhttps://pad.domain.tld/instance/indexBootstrap-OTHERINSTANCE.js
(with subdirectory path/instance
).To Reproduce
Steps to reproduce the behavior:
https://pad.domain.tld/instance/
https://pad.domain.tld/instance/
https://pad.domain.tld/instance/
in the browser network console.Expected behavior
Version 2.2.2 should still work in subdirectory/subfolder installations.
Server (please complete the following information):
Edit: Possibly related to #6588, #5359
The text was updated successfully, but these errors were encountered: