# After moving everything to an another machine, unable to connect or 404

**URL:** <https://community.traefik.io/t/after-moving-everything-to-an-another-machine-unable-to-connect-or-404/3313>\
**Category:** Traefik v1\
**Tags:** docker\
**Created:** [December 6, 2019, 1:58am UTC](https://community.traefik.io/t/after-moving-everything-to-an-another-machine-unable-to-connect-or-404/3313 "2019-12-06T01:58:14Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Wave6677](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@Wave6677](https://community.traefik.io/u/Wave6677)\
**Post date:** [August 2, 2023, 9:24pm UTC](https://community.traefik.io/t/after-moving-everything-to-an-another-machine-unable-to-connect-or-404/3313/9 "2023-08-02T21:24:51Z")

</div>

I know this is an ancient post, but I was facing a similar error. I had `command traefik error: stat /etc/traefik/traefik.yml: permission denied`, and am using Rocky Linux 9 with SELinux. The solution I found after a while is as follows (copied from an IRC chatroom)

Explaination of how it happened- This error occurs when SELinux is added to the docker daemon, enabling SELinux protections over docker containers. Typically this is done by creating the file/adding `Line 1: { Line 2: "selinux-enable": true Line 3: }` to `/etc/docker/daemon.json` Personally I did this for Mailcow, but it's also generally recommended if you're using an SELinux distro. It makes it so any file or directory without the label `svirt_sandbox_file_t` can't be read or written to from docker containers, even when mounted, unless they're privledged (which is bad for your security.

SOLUTION-  
`sudo chcon -Rt svirt_sandbox_file_t $YOUR_CONTAINER_DIRECTORY (ex: /opt/appdata/traefik)`

Only run that commend on a directory/file you KNOW you want to be able to access from docker, you don't want to give it access to something like "/" because then you negate the point of having SELinux.

---

_[View the full topic](https://community.traefik.io/t/after-moving-everything-to-an-another-machine-unable-to-connect-or-404/3313)._
