Giter Club home page Giter Club logo

Comments (2)

andreas-vester avatar andreas-vester commented on June 25, 2024

Using docker logs fhem_slave I received the following output:

Preparing configuration ... done

Starting FHEM ...
Can't open ./log/fhem-2019-05.log: No such file or directory at fhem.pl line 2763.
Unable to start FHEM process - errorcode 2
Preparing user environment ...
1. Creating group 'fhem' with GID 6061 ...
2. Enforcing GID for group 'bluetooth' to 6001 ...
3. Creating user 'fhem' with UID 6061 ...
4. Enforcing user and group ownership for /opt/fhem to fhem:fhem ...
5. Correcting group ownership for /dev/tty* ...
6. Found GPIO: Correcting group permissions in /dev and /sys to 'gpio' with GID 6002 ...
7. Found I2C: Correcting group permissions in /dev to 'i2c' with GID 6003 ...
8. Updating /etc/sudoers.d/fhem-docker ...
9. Adding gateway.docker.internal to /etc/hosts ...
10. Adding host.docker.internal to /etc/hosts ...
11. Pre-authorizing SSH to Docker host for user 'fhem' ...
12. Updating SSH key pinning and SSH client permissions for user 'fhem' ...

The problem is that I don't have ./log/ due to the fact that it hasn't been pushed to my online repo because it will be ignored via .gitignore.

Can you please check if you can replicate that issue? It probably may make sense to not ignore the log folder via .gitignore. What do you think?

from fhem-docker.

jpawlowski avatar jpawlowski commented on June 25, 2024

You shall keep ./log/ as an empty directory by creating a file ./log/.gitkeep and only exclude all other files in ./log/ in your .gitignore file. This will ensure that FHEM's default directory structure is properly kept.

Nevertheless I have put a line into entry.sh as part of 324022a to re-create that directory. It is still a hack as you normally want to be able to restore FHEM also outside of Docker.

As a general rule, make sure the directory basic structure from https://svn.fhem.de/trac/browser/trunk/fhem/ is always there.

from fhem-docker.

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.