Just a white page #301

Closed
opened 2026-02-04 18:27:42 +03:00 by OVERLORD · 12 comments
Owner

Originally created by @Appercy on GitHub (Apr 2, 2023).

Hello! im kinda new into this, but i have a problem:

everytime i try to install planka everything works fine, except that the website wont load, its just a blank white page! nothing else! :(

here is my .env
BASE_URL=http://test.ludaro.de DATABASE_URL=postgresql://planka:mydatabasepassword@localhost/planka SECRET_KEY=secreet

i know it has to do something with the baseurl i already tried my own domain (ludaro.de) with a subdomain and it doesnt work,

127.0.0.1 or localhost:1337 doesnt work either.

Originally created by @Appercy on GitHub (Apr 2, 2023). Hello! im kinda new into this, but i have a problem: everytime i try to install planka everything works fine, except that the website wont load, its just a blank white page! nothing else! :( here is my .env `BASE_URL=http://test.ludaro.de DATABASE_URL=postgresql://planka:mydatabasepassword@localhost/planka SECRET_KEY=secreet` i know it has to do something with the baseurl i already tried my own domain (ludaro.de) with a subdomain and it doesnt work, 127.0.0.1 or localhost:1337 doesnt work either.
Author
Owner

@Appercy commented on GitHub (Apr 2, 2023):

on localhost it works fine! :(

@Appercy commented on GitHub (Apr 2, 2023): on localhost it works fine! :(
Author
Owner

@meltyshev commented on GitHub (Apr 3, 2023):

Hi! Could you check the source-code of the white page and find there <script defer="defer" src="...">. What address is specified in the src attribute? Do you run it in the docker?

I have a guess that BASE_URL environment variable in the .env file overrides with some more globally defined one and its value becomes http://localhost:1337.

@meltyshev commented on GitHub (Apr 3, 2023): Hi! Could you check the source-code of the white page and find there `<script defer="defer" src="...">`. What address is specified in the `src` attribute? Do you run it in the docker? I have a guess that `BASE_URL` environment variable in the `.env` file overrides with some more globally defined one and its value becomes `http://localhost:1337`.
Author
Owner

@Appercy commented on GitHub (Apr 4, 2023):

Hello @meltyshev Thanks for answering so quickly,

Im kinda new into domain stuff so bare with me, if anything is wrong be free to correct me :)

I dont have any domain setup to my server, i just want to access it with the ip, (ex. http://202.61.199.200:1337) for right now, i wan to add a domain later through ngnix or apache and virtual hosts

im not running it in docker, as i tried that and it resulted in the same issue, :)

here is the source attribute you asked about:

<%= BASE_URL %>/static/js/main.291b51df.js

Quick Question, if i dont have any domain, and just want to use it with an ip, i enter the adress? (example)
BASE_URL=http://202.61.199.200:1337
or is that worng? because thats how its setup rn

@Appercy commented on GitHub (Apr 4, 2023): Hello @meltyshev Thanks for answering so quickly, Im kinda new into domain stuff so bare with me, if anything is wrong be free to correct me :) I dont have any domain setup to my server, i just want to access it with the ip, (ex. http://202.61.199.200:1337) for right now, i wan to add a domain later through ngnix or apache and virtual hosts im not running it in docker, as i tried that and it resulted in the same issue, :) here is the source attribute you asked about: `<%= BASE_URL %>/static/js/main.291b51df.js` Quick Question, if i dont have any domain, and just want to use it with an ip, i enter the adress? (example) `BASE_URL=http://202.61.199.200:1337` or is that worng? because thats how its setup rn
Author
Owner

@Appercy commented on GitHub (Apr 4, 2023):

i just now tried it through a docker container, still nothing of use.
its just a white blank page

@Appercy commented on GitHub (Apr 4, 2023): i just now tried it through a docker container, still nothing of use. its just a white blank page
Author
Owner

@meltyshev commented on GitHub (Apr 4, 2023):

Quick Question, if i dont have any domain, and just want to use it with an ip, i enter the adress? (example)
BASE_URL=http://202.61.199.200:1337
or is that worng? because thats how its setup rn

Everything should work fine if you specify just an IP address without a domain.

here is the source attribute you asked about:
<%= BASE_URL %>/static/js/main.291b51df.js

That's exactly what the problem is, it shouldn't have <%= BASE_URL %> there (if you checked the source code through your browser). Can you check if the index.ejs file is in the server/views folder?

@meltyshev commented on GitHub (Apr 4, 2023): > Quick Question, if i dont have any domain, and just want to use it with an ip, i enter the adress? (example) BASE_URL=http://202.61.199.200:1337 or is that worng? because thats how its setup rn Everything should work fine if you specify just an IP address without a domain. > here is the source attribute you asked about: <%= BASE_URL %>/static/js/main.291b51df.js That's exactly what the problem is, it shouldn't have `<%= BASE_URL %>` there (if you checked the source code through your browser). Can you check if the `index.ejs` file is in the `server/views` folder?
Author
Owner

@Appercy commented on GitHub (Apr 4, 2023):

Yes i checked it through my browser :3

@Appercy commented on GitHub (Apr 4, 2023): Yes i checked it through my browser :3
Author
Owner

@Appercy commented on GitHub (Apr 4, 2023):

Yes, in /server/views there is only 1 file

Index.ejs

@Appercy commented on GitHub (Apr 4, 2023): Yes, in /server/views there is only 1 file Index.ejs
Author
Owner

@Appercy commented on GitHub (Apr 4, 2023):

Yes, im /server/views there is only 1 file

Index.ejs

@Appercy commented on GitHub (Apr 4, 2023): Yes, im /server/views there is only 1 file Index.ejs
Author
Owner

@meltyshev commented on GitHub (Apr 4, 2023):

Very strange... Probably the index file isn't loaded from that location 🤔

Could you also check that there is no index.html or index.ejs in the server/public folder.

You can also try renaming the file server/views/index.ejs to any other file, restart the server and see what happens. If the source code is the same as last time, then obviously this file is loaded somehow directly and bypasses the templating engine.

@meltyshev commented on GitHub (Apr 4, 2023): Very strange... Probably the index file isn't loaded from that location 🤔 Could you also check that there is no `index.html` or `index.ejs` in the `server/public` folder. You can also try renaming the file `server/views/index.ejs` to any other file, restart the server and see what happens. If the source code is the same as last time, then obviously this file is loaded somehow directly and bypasses the templating engine.
Author
Owner

@Appercy commented on GitHub (Apr 4, 2023):

I just reinstalled it and it worked >~< thanks

@Appercy commented on GitHub (Apr 4, 2023): I just reinstalled it and it worked >~< thanks
Author
Owner

@tka85 commented on GitHub (Jul 20, 2023):

I'm facing the same problem. Can we please reopen this issue?

Running in docker. Reverse proxy is Nginx.

I see a white page. Viewing source in browser gives:

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf8" />
    <link rel="icon" href="http://localhost:1377/favicon.ico" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <meta name="description" content="Planka is an open source project management software" />
    <link rel="apple-touch-icon" href="logo192.png" />
    <link rel="manifest" href="http://localhost:1377/manifest.json" />
    <title>Planka</title>
    <script defer="defer" src="http://localhost:1377/static/js/main.57a60e9f.js"></script>
    <link href="http://localhost:1377/static/css/main.b309260b.css" rel="stylesheet">
</head>
<script>window.BASE_URL = "http://localhost:1377"</script>

<body id="app"><noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
</body>

</html>

I attach to the container and a quick find for index.* files returns:

/app/views/index.ejs
/app/public/index.html
/app/api/hooks/current-user/index.js
/app/api/controllers/users/index.js
/app/api/controllers/notifications/index.js
/app/api/controllers/projects/index.js
/app/api/controllers/actions/index.js

In docker-compose the BASE_URL env var is set to http://localhost:1337. Since I use a rev proxy, I have changed in the docker-compose also the expose: 3000:1337 to port: 1337. The rev proxy works fine because I can actually access from the outside the Planka logo image as https://planka.mydomain.com/logo192.png which as you see in the HTML above is the only href that is not prefixed with http://localhost:1337.

Any ideas what I'm missing here?

@tka85 commented on GitHub (Jul 20, 2023): I'm facing the same problem. Can we please reopen this issue? Running in docker. Reverse proxy is Nginx. I see a white page. Viewing source in browser gives: ``` <!doctype html> <html lang="en"> <head> <meta charset="utf8" /> <link rel="icon" href="http://localhost:1377/favicon.ico" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="theme-color" content="#000000" /> <meta name="description" content="Planka is an open source project management software" /> <link rel="apple-touch-icon" href="logo192.png" /> <link rel="manifest" href="http://localhost:1377/manifest.json" /> <title>Planka</title> <script defer="defer" src="http://localhost:1377/static/js/main.57a60e9f.js"></script> <link href="http://localhost:1377/static/css/main.b309260b.css" rel="stylesheet"> </head> <script>window.BASE_URL = "http://localhost:1377"</script> <body id="app"><noscript>You need to enable JavaScript to run this app.</noscript> <div id="root"></div> </body> </html> ``` I attach to the container and a quick find for `index.*` files returns: ``` /app/views/index.ejs /app/public/index.html /app/api/hooks/current-user/index.js /app/api/controllers/users/index.js /app/api/controllers/notifications/index.js /app/api/controllers/projects/index.js /app/api/controllers/actions/index.js ``` In docker-compose the `BASE_URL` env var is set to `http://localhost:1337`. Since I use a rev proxy, I have changed in the docker-compose also the `expose: 3000:1337` to `port: 1337`. The rev proxy works fine because I can actually access from the outside the Planka logo image as `https://planka.mydomain.com/logo192.png` which as you see in the HTML above is the only `href` that is not prefixed with `http://localhost:1337`. Any ideas what I'm missing here?
Author
Owner

@tka85 commented on GitHub (Jul 21, 2023):

Resolved.

I changed in docker-compose BASE_URL=https://planka.mydomain.com and it works fine.

@tka85 commented on GitHub (Jul 21, 2023): Resolved. I changed in docker-compose `BASE_URL=https://planka.mydomain.com` and it works fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#301