DocIntel icon indicating copy to clipboard operation
DocIntel copied to clipboard

nlog.config not found when restarting webapp container

Open xme opened this issue 3 years ago • 2 comments

My /config is properly mapped in docker-compose.yml. nlog.config exists...permissions are correct... I get this when starting webapp:

Unhandled exception. System.IO.FileNotFoundException: nlog.config
   at DocIntel.WebApp.Program.Main(String[] args) in /src/DocIntel.WebApp/Program.cs:line 44

I tried to stop/start manually the container, problem remains the same.

xme avatar Nov 11 '22 01:11 xme

The problem arised after I recompiled from source. I did a quick check in the code and applied this workaround. Added a new mapping in the docker-compose: - /data/docintel/config:/etc/docintel Now, webapp successfully started...

xme avatar Nov 11 '22 02:11 xme

Are you binding the volume /config? Can you share your docker-compose file?

webapp:
    image: "docintelapp/webapp"
    container_name: docintel-dev-webapp
    ports:
      - 5005:80
    volumes:
      - _DOCINTEL_CONFIG_:/config
      - _DOCINTEL_DATA_/files/:/files
      - _DOCINTEL_DATA_/lock/:/lock

ancailliau avatar Nov 11 '22 12:11 ancailliau