bgo-bioimagerie / docker-platformmanager

[DEPRECATED] Dockerfile for platform-manager
1 stars 1 forks source link

Mysterious disappearing of code #4

Open abretaud opened 6 years ago

abretaud commented 6 years ago

Sometimes, most of the code in /var/www/platformmanager/Modules/ disappears.

Before the deletion:

root@8986a2c38560:/var/www# ls -ltrh /var/www/platformmanager/Modules/
total 100K
drwxr-xr-x 3 www-data www-data 4.0K Jun  8 10:07 v1tov2
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 users
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 transfer
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 testapi
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 statistics
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 services
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 seek
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 resources
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 quote
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 mailer
-rw-r--r-- 1 www-data www-data  832 Jun  8 10:07 layout.php
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 invoices
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 estore
-rw-r--r-- 1 www-data www-data  442 Jun  8 10:07 error.php
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 documents
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 dev
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 database
drwxr-xr-x 7 www-data www-data 4.0K Jun  8 10:07 core
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 com
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 clients
drwxr-xr-x 5 www-data www-data 4.0K Jun  8 10:07 catalog
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 bulletjournal
drwxr-xr-x 6 www-data www-data 4.0K Jun  8 10:07 breeding
drwxr-xr-x 7 www-data www-data 4.0K Jun  8 10:07 booking
drwxr-xr-x 8 www-data www-data 4.0K Jun  8 10:07 antibodies

After the deletion:

root@117f2236e1c8:/var/www# ls -ltrh platformmanager/Modules/
total 8.0K
drwxr-xr-x 3 www-data www-data 4.0K Jun  6 06:39 core
drwxr-xr-x 3 www-data www-data 4.0K Jun  6 06:39 booking

Seen on the dev instance, with nothing special in apache logs:

pfm_1    | 192.168.1.118 - - [24/Jul/2018:13:32:23 +0000] "GET /externals/jQueryGantt/img/grid.png HTTP/1.1" 200 379 "https://pfm-dev.genouest.org/externals/jQueryGantt/css/style.css" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
pfm_1    | 192.168.1.118 - - [24/Jul/2018:13:32:23 +0000] "GET /externals/jQueryGantt/img/icon_sprite.png HTTP/1.1" 200 1093 "https://pfm-dev.genouest.org/externals/jQueryGantt/css/style.css" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
pfm_1    | 192.168.1.118 - - [24/Jul/2018:13:32:30 +0000] "GET /servicesprojectgantt/8/0/5 HTTP/1.1" 200 3093 "https://pfm-dev.genouest.org/servicesprojectgantt/8/0" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
pfm_1    | 127.0.0.1 - - [24/Jul/2018:13:32:37 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.25 (Debian) PHP/5.6.36 (internal dummy connection)"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:07:52 +0000] "GET / HTTP/1.1" 200 430 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:07:53 +0000] "GET /favicon.ico HTTP/1.1" 404 512 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:07:53 +0000] "GET /favicon.ico HTTP/1.1" 404 512 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:08:18 +0000] "GET / HTTP/1.1" 200 366 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:15:57 +0000] "GET / HTTP/1.1" 200 366 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:15:57 +0000] "GET / HTTP/1.1" 200 366 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:15:58 +0000] "GET / HTTP/1.1" 200 366 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
pfm_1    | 192.168.1.118 - - [29/Aug/2018:07:16:06 +0000] "GET / HTTP/1.1" 200 366 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"

= the code was there in July 24th, but not anymore on August 29th.

cron is not installed

abretaud commented 6 years ago

The first 200 response is 430 in size, while the subsequent ones are 366. Maybe the first one did something bad? (but maybe not)

abretaud commented 6 years ago

@osallou I have no clue what's going on... the dev instance has this problem currently. I'm leaving it like that for now in case you want to look at it... I'll need to restart it before investigating https://github.com/bgo-bioimagerie/platformmanager/issues/96

OlivierCollin commented 6 years ago

This is really weird... Is it possible to add a service like inotify in the PlatformManager docker environment ? https://github.com/pstauffer/docker-inotify

osallou commented 6 years ago

nothing in container log ? (docker logs)

Le mer. 29 août 2018 à 09:56, OlivierCollin notifications@github.com a écrit :

This is really weird... Is it possible to add a service like inotify in the docker environment ? https://github.com/pstauffer/docker-inotify

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/bgo-bioimagerie/docker-platformmanager/issues/4#issuecomment-416861058, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-gYoIMfWC57aBb6Je32MS5rRUY8o0Rks5uVkk1gaJpZM4WQ9tj .

abretaud commented 6 years ago

Nothing, I pasted the tail above. Nothing new in /var/log either

osallou commented 6 years ago

There is no cron in container?

Le mer. 29 août 2018 à 10:32, Anthony Bretaudeau notifications@github.com a écrit :

Nothing, I pasted the tail above. Nothing new in /var/log either

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/bgo-bioimagerie/docker-platformmanager/issues/4#issuecomment-416871081, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-gYizYqp00X2BSe8dzNw28i5jUe9jeks5uVlGQgaJpZM4WQ9tj .

osallou commented 6 years ago

if, for any reason, bind mounted volume has a problem, then there is no automatic remount, so in this case you are back with the container original content. This would explain why it is empty (though mounted volume is still ok, and not deleted). Can't explain however why such thing would occur as volume is not a nfs mount but a local disk mount

osallou commented 6 years ago

if this occurs again, would be interesting to look at container status before restarting it

docker inspect xxx
docker diff xxx
osallou commented 6 years ago

humm looking deeply, it is data that is mounted, not Modules, so this is not a bind issue but we see that Modules are kinda "reset"