Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem]: Startup script is trying to remove busy files #369

Closed
UncleSamSwiss opened this issue Sep 2, 2023 · 3 comments
Closed

[Problem]: Startup script is trying to remove busy files #369

UncleSamSwiss opened this issue Sep 2, 2023 · 3 comments
Labels
enhancement It's not a bug, but it's worth an enhancement.

Comments

@UncleSamSwiss
Copy link

UncleSamSwiss commented Sep 2, 2023

Description

I'm using ioBroker in BalenaOS (a docker based fleet management). With version 8.0.1 everything was working fine. When I tried to update to v8.1.0 (with balena, you simply update your Dockerfile and deploy the application), the error message below happens and the container exits. This happens in an infinite loop, of course.

My suggestion is: don't fail if rm can't delete something in /tmp. There might be files that are used by other applications or services running in the container (or as in my case are mounted into /tmp, see below).

mount | grep /tmp
tmpfs on /tmp/balena type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /tmp/resin type tmpfs (rw,nosuid,nodev,mode=755)

Image version

v8.1.0

Docker logs

iobroker  --------------------------------------------------------------------------------
 iobroker  -----                   Step 1 of 5: Preparing container                   -----
 iobroker  --------------------------------------------------------------------------------
 iobroker   
 iobroker  Updating Linux packages on first run... Done.
 iobroker  rm: cannot remove '/tmp/balena': Device or resource busy
 iobroker  rm: cannot remove '/tmp/resin': Device or resource busy
@buanet
Copy link
Owner

buanet commented Sep 3, 2023

Hi Sam,
I get your point and will treat this as feature request, not as a problem (with possible hotfix) for the following reasons:

  1. It is absolutely not supported and no good choice to run other services than the ioBroker itself within the ioBroker Docker container. So no other service should write data to /tmp
  2. I don't mind a possible reason to mount a host folder to /tmp. 😄

The startup script tries to rm -rf /tmp/* because of keeping the container clean after updating or installing additional packages at the first run of the container. Maybe I can adjust this.

Regards,
André

@buanet buanet added the enhancement It's not a bug, but it's worth an enhancement. label Sep 3, 2023
@buanet
Copy link
Owner

buanet commented Sep 28, 2023

Please test with v9.0.0-beta.2.

@buanet
Copy link
Owner

buanet commented Oct 11, 2023

Stable Release of v9 is available. As I got no feedback to this I assume this is fixed. So I'll close this.

Regards,
André

@buanet buanet closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement It's not a bug, but it's worth an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants