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

[BUG] ERROR, unable to validate 'conf.yml' #1127

Closed
5 tasks done
0n1cOn3 opened this issue Mar 1, 2023 · 15 comments
Closed
5 tasks done

[BUG] ERROR, unable to validate 'conf.yml' #1127

0n1cOn3 opened this issue Mar 1, 2023 · 15 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🕸️ Inactive 🛑 No Response [ISSUE] Response was requested, but has not been provided

Comments

@0n1cOn3
Copy link
Contributor

0n1cOn3 commented Mar 1, 2023

Environment

Self-Hosted (Docker)

System

Fedora Server 37

Version

V-2.1.1

Describe the problem

  1. Clone the dashy repos to a directory of my choice (/home/user/Docker-Tests or /docker)
  2. Adjustment path of the configuration file
  3. Start the container

Instant Error as in the description already mentioned
Does not matter if with root or non-root user account.
When entering the website, the console also spits out an error (It's obvious why ;) )

Error: EACCES: permission denied, stat '/app/public/conf.yml'

Additional info

Firefox Dev Utilities Output:

Deprecation warning: The simple-icons entrypoint will be removed in the next major. Please switch to using import * as icons from "simple-icons/icons" if you need an object with all the icons. index.js:1:8
XHRGEThttp://10.1.200.240/conf.yml
[HTTP/1.1 500 Internal Server Error 5ms]

Uncaught (in promise)
Object { message: "Request failed with status code 500", name: "AxiosError", code: "ERR_BAD_RESPONSE", config: {…}, request: XMLHttpRequest, response: {…}, stack: "" }
asyncToGenerator.js:6:4
XHRGEThttp://10.1.200.240/conf.yml
[HTTP/1.1 500 Internal Server Error 5ms]

Object { message: "Request failed with status code 500", name: "AxiosError", code: "ERR_BAD_RESPONSE", config: {…}, request: XMLHttpRequest, response: {…}, stack: "" }

Please tick the boxes

@0n1cOn3 0n1cOn3 added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Mar 1, 2023
@liss-bot

This comment was marked as spam.

@liss-bot liss-bot added the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Apr 1, 2023
@0n1cOn3

This comment was marked as spam.

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed ⚰️ Stale [ISSUE] [PR] No activity for over 1 month labels Apr 2, 2023
@liss-bot

This comment was marked as spam.

@liss-bot liss-bot added ⚰️ Stale [ISSUE] [PR] No activity for over 1 month and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels May 3, 2023
@jeangjenq
Copy link

Still relevant, pretty much went through the same steps in this issue today and experiencing the exact same thing.

[dashy] | yarn run v1.22.15
[dashy] | $ node server
[dashy] | 
[dashy] | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[dashy] |  Error, unable to validate 'conf.yml' 
[dashy] | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[dashy] | 
[dashy] | ⚠️ Permission denied 
[dashy] | 
[dashy] | SSL Not Enabled: Public key not present
[dashy] | 
[dashy] | 
[dashy] |  ██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
[dashy] |  ██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
[dashy] |  ██║  ██║███████║███████╗███████║ ╚████╔╝
[dashy] |  ██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
[dashy] |  ██████╔╝██║  ██║███████║██║  ██║   ██║
[dashy] |  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝
[dashy] | 
[dashy] | *******************************************************************************************
[dashy] | Welcome to Dashy! 🚀
[dashy] | Your new dashboard is now up and running with Docker
[dashy] | *******************************************************************************************
[dashy] | 
[dashy] | 
[dashy] | Using Dashy V-2.1.1. Update Check Complete
[dashy] | ✅ Dashy is Up-to-Date
[dashy] | 
Error: EACCES: permission denied, stat '/app/public/conf.yml'
Error: EACCES: permission denied, stat '/app/public/conf.yml'

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed ⚰️ Stale [ISSUE] [PR] No activity for over 1 month labels May 3, 2023
@jeangjenq
Copy link

@0n1cOn3
I made some progress today. I tested this on both Fedora Workstation and Fedora Silverblue 38.
If I use the docker and docker-compose from fedora software repository,
sudo dnf install docker docker-compose in Workstation.
rpm-ostree install docker docker-compose in Silverblue.
This issue occurs.

But if you follow the official docker engine installation instructions here.
Dashy starts up without issue.
Workstation:

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Silverblue:

cd /etc/yum.repos.d/
wget https://download.docker.com/linux/fedora/docker-ce.repo
rpm-ostree install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 6, 2023
@Joker214kk
Copy link

yarn run v1.22.15
$ node server

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Error, unable to validate 'conf.yml'
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️ Config file could not be found at ./public/conf.yml

SSL Not Enabled: Public key not present

██████╗ █████╗ ███████╗██╗ ██╗██╗ ██╗
██╔══██╗██╔══██╗██╔════╝██║ ██║╚██╗ ██╔╝
██║ ██║███████║███████╗███████║ ╚████╔╝
██║ ██║██╔══██║╚════██║██╔══██║ ╚██╔╝
██████╔╝██║ ██║███████║██║ ██║ ██║
╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝


Welcome to Dashy! 🚀
Your new dashboard is now up and running with Docker


Using Dashy V-2.1.1. Update Check Complete
✅ Dashy is Up-to-Date

I have the same identical issue on Debian 11, where I executed it on docker-compose

dashy:
image: ghcr.io/lissy93/dashy:latest
container_name: Dashy
volumes:
- /opt/dashy/public:/app/public
- /opt/dashy/item-icons:/app/item-icons
ports:
- 4000:80
environment:
- UID=1000
- GID=1000
restart: always
healthcheck:
test: ['CMD', 'node', '/app/services/healthcheck']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jul 18, 2023
@liss-bot

This comment was marked as spam.

@liss-bot liss-bot added the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Oct 17, 2023
@Joker214kk

This comment was marked as off-topic.

@liss-bot liss-bot removed the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Oct 17, 2023
@elendil7
Copy link

Getting the same issue here, with docker-compose

  # Dashy Dashboard
  dashy:
    # To build from source, replace 'image: lissy93/dashy' with 'build: .'
    # build: .
    image: lissy93/dashy:latest
    container_name: dashy
    build:
      context: ./services/dashy
      dockerfile: Dockerfile.yml
    # Pass in your config file below, by specifying the path on your host machine
    volumes:
      - ./services/dashy/public:/app/public
    # ports:
    #   - 4000:80
    # Set any environmental variables
    environment:
      - NODE_ENV=production
    # Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
    #  - UID=1000
    #  - GID=1000
    # Specify restart policy
    restart: unless-stopped
    depends_on:
      - nginx

@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented Feb 27, 2024

2. Adjustment path of the configuration file

Hi
This issue seems to containe mutiple different problems. Please create a new issue if you problem still persists, otherwise this ticket will get very quickly messy.

Issue 1, by @0n1cOn3:
If I understand Adjustment path of the configuration file corretly, you mean changing the path of conf.yml?

That is not supported, and will as you mentioned result in an error, then this would be a duplicate, see here -> #1322

Issue 2, by @jeangjenq :
Thanks for sharing! Good to know 👍

Issue 3, @elendil7 and @Joker214kk
You are mounting /app/public which is not really supported and results in a lot of problems, please mount the conf directly like described in the installation guide: https://dashy.to/docs/quick-start#2-installation
If that does give the same error, you may have to rebuild the container and mounting the conf directly instead of /app/public

Welcome to Dashy! So glad you're here 😊 In a couple of minutes, you'll have your new dashboard up and running 🚀

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 28, 2024
@github-project-automation github-project-automation bot moved this to Awaiting Triage in Dashy V3 Feb 28, 2024
@0n1cOn3
Copy link
Contributor Author

0n1cOn3 commented Mar 1, 2024

Issue 1, by @0n1cOn3: If I understand Adjustment path of the configuration file corretly, you mean changing the path of conf.yml?

Yes, outside the container. It does not affect the location of the file in the container but on the host.
What confuses me is that this cannot be changed without Dashy's container spitting out this error.
It is a mystery to me why this happens, because it works fine with other containers.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 1, 2024
@CrazyWolf13
Copy link
Collaborator

Issue 1, by @0n1cOn3: If I understand Adjustment path of the configuration file corretly, you mean changing the path of conf.yml?

Yes, outside the container. It does not affect the location of the file in the container but on the host. What confuses me is that this cannot be changed without Dashy's container spitting out this error. It is a mystery to me why this happens, because it works fine with other containers.

If this error appears, does dashy load normal or are there any errors in the UI?

Can you do a rebuild and show the output here? either through GUI or through yarn build-and-start inside the container

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 2, 2024
@CrazyWolf13
Copy link
Collaborator

@0n1cOn3

Could you descibe this in some steps? I can't really recreate this issue.

If I understand you correctly, you are changing the bind mount to another place on the host and expect the docker container to copy the file from dashy container to the new location?

This will not work as bind mounts are only one directional.

Also if the error appears, can you look into the container and see if the config file is there?
You can check this with sudo docker exec -it {container-name} /bin/sh

cd public
ls
cat conf.yml

Post the output of cat and ls command here please.

@CrazyWolf13 CrazyWolf13 added the 🚏 Awaiting User Response [ISSUE] Response from original author is pending label Mar 18, 2024
@liss-bot
Copy link
Collaborator

Hello! Looks like additional info is required for this issue to be addressed. Don't forget to provide this within the next few days to keep your ticket open.

@liss-bot liss-bot added the 🛑 No Response [ISSUE] Response was requested, but has not been provided label Mar 24, 2024
@liss-bot
Copy link
Collaborator

Issue closed due to no response from user.

@github-project-automation github-project-automation bot moved this from Awaiting Triage to Done in Dashy V3 Mar 28, 2024
@liss-bot liss-bot removed the 🚏 Awaiting User Response [ISSUE] Response from original author is pending label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🕸️ Inactive 🛑 No Response [ISSUE] Response was requested, but has not been provided
Projects
Status: Done
Development

No branches or pull requests

8 participants
@Lissy93 @jeangjenq @0n1cOn3 @elendil7 @liss-bot @CrazyWolf13 @Joker214kk and others