docintelapp / DocIntel

Open Source Platform for storing, organizing, and searching documents related to cyber threats
https://docintel.org
Other
154 stars 25 forks source link

nlog.config not found when restarting webapp container #17

Open xme opened 1 year ago

xme commented 1 year ago

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 commented 1 year ago

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...

ancailliau commented 1 year ago

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