-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] Dashy 3.0.0 not loading despite complete build #1538
Comments
Can you paste the browser console output? How long have you waited after the error message appeared, sometimes refreshing the page also resolved the issue. |
Hi Tobias, thanks for looking at the issue. Here is the browser console output just logged after entering the url. It doesn't change when the error message appears. So probably no client-side problem. [ContentMain] |
I have waited several minutes, I did refresh (F5) and I tried in Chrome (Guest Mode) and MS Edge |
I changed my config to look like yours (with my paths) and had no issues with the 3.0 changes, loaded fine. I did need to map /app/public/ inside the container to get the icons to show up properly; possibly they would work inside user-data/ also. User-data/ needs the conf.yml file, and public/ needs fonts/, img/, item-icons/, etc. The docs on the 3.0 upgrade aren't... great so this took a couple mins to figure out properly. My volumes line:
On a side note, man, dashy takes a crazy long time to start up. My relatively simple dashboard takes 55 seconds! I'm not running a rPi4 or anything underpowered either, it's a 7500T mini-desktop with tons of RAM and free CPU.
|
@rodalpho Thank you for your time to add a solution, that worked for you. Sadly it doesn't work for me. I did now map the two volumes, but it didn't change anything with my problem.
By the way, this is the content of my dashy_public_dir folder: A question about your logs: is the last line of your log also "Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html" or is it something else? |
Hey @allesauseinerhand |
Thanks @rodalpho
Both /public and /user-data basically resolve to the same place. So you shouldn't need to pass both in, just put all your customized assets into
Sorry about that (I'm not great at writing docs!), if you have suggestions about how I can make this clearer, I will update them :) |
@allesauseinerhand Yes my logs end with that line. @Lissy93 No problem, not intending to criticize! I would note the expected file and directory structure for /app/user-data/, that's what had me stalled for a minute. IE, "It should contain conf.yml as well as the fonts, img, item-icons, etc directories". |
@Lissy93 Moving all the files I had in /app/public to /app/user-data and removing the mapping in my docker-compose broke dashy, and the app made its own public directory somehow. So I'm reverting that. |
Hi @Lissy93 : Thanks for helping me with this. When I load this url, the conf.yml-file is showed in the browser as it probably should be. But I supposed to found the reason, why it didn't work initially, which could help others with the same problem too: I use simple auth in the conf.yml:
I now tried to enter [dashy_url]/login and then I see my dashboard. When I then enter again [dashy_url] the error is there again. So, next I went again to [dashy_url]/login, then logged out, logged in again. But even then, when I open [dashy_url], the same error comes up again. Next, I tried to delete the above auth-section in the config. But even then it doesn't work. I've at least now a workaround (entering [dashy_url]/login instead of [dashy_url]. But do you have any idea, what could be the reason for this strange behaviour? |
So two breaking changes on the docker image (2.1.2 -> 3.0.0) that it'd be great to have an in-built work around for, better start-up messaging around, or better documentation around these changes. Thanks for all the work on this! port 80 became port 8080
|
I would have loved to be able to implement an automatic workaround for this, but it's unfortunately not possible.
Thanks for the feedback @rodalpho. Here are clearer docs, outlining structure of the user-data directory. Not merged yet, but will be included soon when I finish #1542 Just to check, is anyone still having issues getting 3.0.0 running? |
Understood. Maybe a WARN message on docker start up if /app/public/conf.yml exists that might ask if this was intended, reference this bug, encourage folks the "new" location is /app/user-data, etc?
It's fine for me, no concerns. Thank you for a great product, and quick support. :) |
Thanks @tdeppner - good feedback, I've implemented a build-time check in Docker that displays a lil message if there's a config issue, and for client-side issues I've made an update which will show exactly what the problem is. Both will be included when I merge #1542 later this week. I'm going to close this ticket now, but if anyone is still having issues here, let me know below and I'll reopen. |
Hi Alicia Probably my previous message about the workaround was misleading, as you thought the problem is solved now. But it is still not working the normal way: When I go to [dashy_url] I still see the same error message as I showed in the first post of this thread. Only going to [dashy_url]/login leads me to the dashboard. Do you have any idea, what the reason could be or what information I should provide to find the rootcause of the problem? |
Try again now, I've pushed some updates in 3.0.1, everything should be resolved. If not, share the content of your browser logs, so I can debug further. |
Could you copy+paste them? |
I used a screen shot to show that my console is blank of everything but a favcon.ico loading error. |
@HakanP - this looks like a config issue. Could you share your config file? @Kirkland-gh - This does look like a bug, but I'm not able to recreate it just yet, could you also share the relevant parts of your config so I can try with that? |
|
That "Something gone wrong...."-page is if i just go to the dashy page by ip:port. |
Attached are two logs: index.log for when visiting url (showing error screen), login.log for when visiting url/login (showing login screen). And also I attached my docker compose file and my dashy conf (shortened and masked) |
I have encountered the same issue with my Dashy. Attached is my config with sections removed/masked. Auth is not enabled.
One thing I've noticed is that curl'ing the broken Dashy gives a broken index.html. It seems in my case the Dashy app is not being injected at all on the main I can do further testing with the broken setup if required. |
Is there allready any update on this issue? Don't want to hurry anybody, just a question out of interest. |
The only output in my browser console:
Request Headers:
Response Headers:
I'm using Caddy as reverse proxy in front of Dashy. Relevant section of the launch.maclemon.at
{
basicauth /* {
rick <passphrase>
}
reverse_proxy dashy:8080
} Hope this helps making the issue more easily reproducible. |
Still the same problem in V3.1.1. Workaround with /login still works. |
Is this a big issue? Is it being worked on? |
Environment
Self-Hosted (Docker)
System
Docker 26.0.0 (Portainer 2.19.4)
Version
3.0.0
Describe the problem
Thank you for the new and promising update to 3.0.0. But it seems, I have some trouble to get it to work:
Additional info
I attached the screenshot with the error message, the full logs and my docker compose instructions.
_dashy_logs.txt
dashy_docker_compose.txt
Please tick the boxes
The text was updated successfully, but these errors were encountered: