Opening this to add more information to the “file owned by root” curious issue described here:
I have been experimenting with triggering a sync through ./photostructure sync inside the container.
$ sudo docker exec -ti photostructure sh
/ps/app # ./photostructure sync /media/photos/2022/2022\ 07\ 01/*
{"dbReady":true}
As soon as I do this, I see a photostructure command and the exiftool processes owned by root in top:
823591 root 20 0 640284 388216 46576 S 24.6 4.8 1:06.44 photostructure
824878 root 29 9 18164 16240 2852 R 8.3 0.2 0:00.25 exiftool
823344 root 20 0 307916 62008 36896 S 1.0 0.8 0:06.02 node
1156 root 20 0 2195316 50212 19860 S 0.7 0.6 11:54.05 dockerd
823636 root 29 9 396504 145200 45076 S 0.7 1.8 1:52.95 photostructure
102 root 20 0 0 0 0 S 0.3 0.0 0:37.31 kswapd0
823227 realuser 20 0 347544 83188 44948 S 0.3 1.0 0:04.52 photostructure
823289 realuser 20 0 370480 115356 46672 S 0.3 1.4 0:12.34 photostructure
I then see files owned by root:
$ ll /media/bulkstorage/photostructure/cache/imgcache/
total 0
drwxr-xr-x 24 realuser realuser 226 Jul 12 09:49 ./
drwxrwxr-x 6 realuser realuser 135 Jun 15 03:49 ../
drwxr-xr-x 3 root root 16 Jul 12 09:44 1b/
drwxr-xr-x 3 root root 16 Jul 12 09:44 1u/
drwxr-xr-x 3 root root 16 Jul 12 09:47 28/
drwxr-xr-x 3 root root 16 Jul 12 09:44 44/
drwxr-xr-x 3 root root 16 Jul 12 09:48 4w/
drwxr-xr-x 3 root root 16 Jul 12 09:46 5e/
drwxr-xr-x 3 root root 16 Jul 12 09:49 63/
drwxr-xr-x 3 root root 16 Jul 12 09:47 6h/
drwxr-xr-x 3 root root 16 Jul 12 09:47 7w/
drwxr-xr-x 3 root root 16 Jul 12 09:44 8c/
drwxr-xr-x 3 root root 16 Jul 12 09:48 9m/
drwxr-xr-x 3 root root 16 Jul 12 09:48 9r/
drwxr-xr-x 3 root root 16 Jul 12 09:44 cc/
drwxr-xr-x 3 root root 16 Jul 12 09:48 d3/
drwxr-xr-x 3 root root 16 Jul 12 09:49 dy/
drwxr-xr-x 3 root root 16 Jul 12 09:45 e1/
drwxr-xr-x 3 root root 16 Jul 12 09:49 er/
drwxr-xr-x 3 root root 16 Jul 12 09:47 es/
drwxr-xr-x 3 root root 16 Jul 12 09:48 fd/
drwxr-xr-x 3 root root 16 Jul 12 09:46 g0/
drwxr-xr-x 3 root root 16 Jul 12 09:46 gj/
drwxr-xr-x 3 root root 16 Jul 12 09:45 w4/
System information
Version | 2.1.0-alpha.3 |
---|---|
Edition | PhotoStructure for Servers |
Plan | lite |
OS | Docker Alpine Linux v3.16 on x64 |
Node.js | 16.15.1 |
ExifTool | 12.41 |
Video support | FFmpeg 5.0.1 |
HEIF support | /usr/bin/heif-convert |