Comments (12)
I currently have a long print running, but as soon as it's finished, I'll try it again.
from obico-server.
Found the problem and fixed it. Thank you @EleRas for reporting this to us! Please pull the latest code.
from obico-server.
Based on my understanding, these output was from the command python manage.py --collect-statics
in the process of building a docker image. Since the folder media
will be remounted when the container really runs, the folders and files being deleted were actually just copies of the original files.
Although I'm quite sure about my understand but please confirm whether your timelapses were really deleted or not @EleRas
from obico-server.
I found my mistake: I mounted the external volume to /media, not /app/static_build/media - so the data wasn't stored in the external volume at all. This should documented in either the docker-compose.yml or the readme ;)
from obico-server.
What do you think needs to be documented? Should we document where to mount the volume or these messages can be ignored?
from obico-server.
Where to mount the volume, since this isn't documented yet, as far as I can see
from obico-server.
We actually specified the mount point (not media
folder, but its parent folder) at: https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/blob/5664de2b0fe5461fa64bc81b85bd33241eb5bf97/docker-compose.yml#L8
I'm actually curious why you chose to mount media
at a different directory? Was it because the original mount point (volume mapping in Docker's term) somehow didn't work for you?
from obico-server.
That was the first thing I did - but this resulted in the media - files being stored in the git - checkout and being deleted during a docker-compose build. Having seen the error message "Deleting 'media..." I thought that the data was stored in /media as well and the data in the git - checkout just being artefacts.
from obico-server.
The static_build
dir is in .gitignore
: https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/blob/5664de2b0fe5461fa64bc81b85bd33241eb5bf97/.gitignore#L126
Are you sure somehow it ended up in git? Can you elaborate more?
from obico-server.
It didn't end in git itself, what I meant was: the media was in a directory below the git - checkout (/web/static_build) - and /web/static_build is being emptied by docker-compose build
from obico-server.
Sorry for misunderstanding you @EleRas ?
If you revert your changes to the mount point (basically going back to the original code by doing git reset --hard
), will these files (the ones in TheSpaghettiDetective/web/static_build
) still be deleted after docker-compse up --build -d
?
from obico-server.
Okay, I could reproduce it reliable:
git clone https://github.com/TheSpaghettiDetective/TheSpaghettiDetective.git tsd
cd tsd
docker-compose up --build -d
[configure via web] && [run timelapse]
OR just sudo mkdir web/static_build/media && sudo touch web/static_build/media/test
ls -lisah web/static_build/media/
total 8,0K
97255700 4,0K drwxr-xr-x 2 root root 4,0K Apr 5 19:32 .
96996053 4,0K drwxr-xr-x 12 root root 4,0K Apr 5 19:32 ..
97255701 0 -rw-r--r-- 1 root root 0 Apr 5 19:32 test
docker-compose up --build -d
ls -lisah web/static_build/media/
total 8,0K
97255700 4,0K drwxr-xr-x 2 root root 4,0K Apr 5 19:34 .
96996053 4,0K drwxr-xr-x 12 root root 4,0K Apr 5 19:34 ..
So the media - directory is emptied during docker-compose up --build
, it also doesn't matter if TSD was configured or not. Another interesting point: the web/db.sqlite3 is not deleted during the rebuild.
from obico-server.
Related Issues (20)
- Sample Integration of Raspberry Pi (Models 1-3) GPU Support via OpenCL HOT 18
- Web with obico-server didn't capture the stream HOT 3
- Add licensing information for the neural network HOT 2
- docker web container: ValueError: Couldn't load manifest 'staticfiles.json' (version 1.0) HOT 3
- [BUG/FEATURE] Deleting print history doesn't delete the underlying jpg (snapshot) and mp4 (timelapse) files HOT 1
- [Feature] Add total 'print time' and 'filament used' for deleted prints too
- [Feature] please add support for Rock 5 NPU HOT 1
- [Feature] Separate 'Heater status change' notification into 'Reached Target' vs. 'Cooldown'
- [Feature] add device for pushover notification
- [Feature] Separate "Pause" Notification from "When other event happens"
- [BUG] compose.cli.main.exit_with_metrics: Service 'ml_api' failed to build : Build failed HOT 1
- docker error HOT 4
- [BUG] Orca Slicer G-code not printing on Neptune 4 plus
- WEBCAM HOT 1
- [BUG] o/authorize is not available HOT 1
- [BUG] UI blank on PC browser HOT 2
- [Feature] Use MySQL/MariaDB/Postgres instead of SQLite HOT 4
- [BUG] Error installing on K1 Max V2
- Detective Accuracy Rate HOT 2
- Unable to update self-hosted with anything in CSRF_TRUSTED_ORIGINS HOT 10
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 obico-server.