Comments (7)
What do you mean with "only with one single newline"? Are you now able to recreate the issue or not?
I can't reproduce the error, with sudo docker logs <name of container> -f
Bit in the logfile sometimes newlines are added
{"log":"\n","stream":"stdout","time":"2023-09-12T15:06:34.882448783Z"}
And sorry to bring this up again, but: What check is in place so that
printf
is executed only if there is something in$logArray
to be printed?
Currently, none is implemented, i'll fix this
from fhem-docker.
I saw this bug before, but not in this Image version.
Also i am currently not able to reproduce this
from fhem-docker.
Okay, interesting.
I just tested it with a fresh service, i.e. docker-compose.yml:
version: "3.3"
services:
fhemtest:
image: ghcr.io/fhem/fhem-docker:3-bullseye
container_name: fhemtest
restart: unless-stopped
environment:
TZ: Europe/Berlin
and can confirm that the bug (still) exists by running sudo docker logs fhemtest -f
.
Edit: The logs command is not even needed. The same happens if you simply run sudo docker compose -f docker-compose.yml up
.
from fhem-docker.
Can you check that you are really running container version 3.2.3?
Can you run a inspect, on the started container like this:
docker inspect <containerID>| grep version
from fhem-docker.
Yes, I am running 3.2.3:
"com.docker.compose.version": "2.21.0",
"org.fhem.version": "",
"org.opencontainers.image.version": "3.2.3-bullseye"
Even if I pin the version in the docker-compose.yml to ghcr.io/fhem/fhem-docker:3.2.3-bullseye
it's the same. I also just tested it on another system with the compose-file posted above (also Debian bullseye) and the bug is still present.
Just from a logical point of view:
There is no check in place whether $logArray
is actually populated. So printf '%s\n' "${logArray[@]}"
is executed every time PrintNewLines
runs, independent of what $logArray
contains (or doesn't contain). There is simply nothing there preventing it from printing \n
every time it runs.
On another note: My "fix" from above, moving printf …
into the else-branch works flawlessly, even after two nightly logrotates now.
from fhem-docker.
I see a similar problem only with one single newline.
For this i have already prepared a fix in the bookworm branch
from fhem-docker.
What do you mean with "only with one single newline"? Are you now able to recreate the issue or not?
And sorry to bring this up again, but: What check is in place so that printf
is executed only if there is something in $logArray
to be printed?
from fhem-docker.
Related Issues (20)
- Rewrite of entry.sh / question on contributing HOT 3
- Update nodejsVersion to >18.x or higher for support of npm >10.x HOT 7
- avahi-daemon not startable HOT 5
- Memory leak with Perl 5.32 HOT 5
- Action Required: Fix Renovate Configuration
- Default: gateway.docker.internal is not set
- Reduce size of v4 minimal image HOT 2
- Device::SerialPort is missing in v4 arm images HOT 4
- Inline-python ist missing since Beta 8 HOT 1
- FAIL install Net-Bluetooth-0.41
- FAIL install Image-Magick-7.1.1-28 HOT 3
- FAIL install HiPi-0.92
- FAIL install GDTextUtil-0.86
- FAIL install GD-2.78
- FAIL install Net-DBus-1.2.0
- Add cpm install filter
- Avoid apt for perl modules in v4 image HOT 1
- Do not query dependencys from archived repositorys
- remove libnmap-parser-perl apt package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhem-docker.