Coder Social home page Coder Social logo

WARN[2024-02-05 13:36:52] unable to load config.yml file: failed to open config file "/app/config/config.yml": open "/app/config/config.yml": no such file or directory, using default configuration... about wg-portal HOT 3 CLOSED

NerijusIPR avatar NerijusIPR commented on September 15, 2024
WARN[2024-02-05 13:36:52] unable to load config.yml file: failed to open config file "/app/config/config.yml": open "/app/config/config.yml": no such file or directory, using default configuration...

from wg-portal.

Comments (3)

vbaidak avatar vbaidak commented on September 15, 2024 1

I think this is because you are trying to use wg-portal v1 docker image. You should switch to v1 project and its configuration in that case, otherwise upgrade the version to v2+
See the IMPORTANT note at the top of the README

from wg-portal.

Bhargav79 avatar Bhargav79 commented on September 15, 2024

Same issue here

from wg-portal.

h44z avatar h44z commented on September 15, 2024

I cannot reproduce this problem for v1 either, my working example:

user@SERVER:/srv/wireguard_v1$ ls -la
total 44
drwxrwxr-x+  5 root root  4096  Apr  2  21:20 .
drwxr-xr-x+ 13 root root  4096  Apr  1  22:40 ..
drwxrwxr-x+  2 root root  4096  Apr  2  21:20 config
drwxr-xr-x+  2 root root  4096  Aug  5  2023  data
-rw-rw-r--+  1 root root  1212  Apr  2  21:19 docker-compose.yml

user@SERVER:/srv/wireguard_v1$ ls -la config/
total 12
drwxrwxr-x+ 2 root  root       4096 Apr  2 21:20 .
drwxrwxr-x+ 5 root  root       4096 Apr  2 21:20 ..
-rw-rw-r--+ 1 root  root         32 Apr  2 21:20 config.yml

user@SERVER:/srv/wireguard_v1$ cat docker-compose.yml 
version: '3.6'
services:
  wg-portal:
    image: wgportal/wg-portal:stable
    container_name: wg-portal
    restart: unless-stopped
    cap_add:
      - NET_ADMIN
    network_mode: "host"
    volumes:
      - /etc/wireguard:/etc/wireguard
      - ./data:/app/data
      - ./config:/app/config
    environment:
      # WireGuard Settings
      # ...
      # Misc Settings
      - LOG_JSON=false
      - LOG_LEVEL=trace
      - CONFIG_FILE=/app/config/config.yml

maybe your environment variable CONFIG_FILE is incorrect? I can see invalid quotes (")...

from wg-portal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.