R
Runtipiโ€ข2mo ago
hex-developer

Folder mount permission errors

@MOUETTE03 we can continue here
78 Replies
hex-developer
hex-developerOPโ€ข2mo ago
So in the compose, wherever you say for example ${APP_DATA_DIR}/galette_logs, replace it with ${APP_DATA_DIR}/data/galette_logs you're not supposed to mount the whole ${APP_DATA_DIR}/data folder anywhere you mount subfolders or if everything would go in one mountpoint, perhaps you could have a folder with whatever is needed in there
MOUETTE03
MOUETTE03โ€ข2mo ago
Yes I noticed that if I mount it in addition to the others it doesn't work either
hex-developer
hex-developerOPโ€ข2mo ago
from what I can see in your compose you can simplify things a lot create a "data" folder in the other data folder (yes it looks bad)
MOUETTE03
MOUETTE03โ€ข2mo ago
Yes maybe but I'm all beginner
hex-developer
hex-developerOPโ€ข2mo ago
well that's why I'm trying to help you learn ๐Ÿ˜ Basically you want to have this in your appstore: galette/data/data/.gitkeep and then mount ${APP_DATA_DIR}/data/data at /var/www/galette/data wherever needed no need for a separate mount for each folder (by the way you can completely remove the read only, shared and private mount options, they are the defaults)
MOUETTE03
MOUETTE03โ€ข2mo ago
I had followed the recommended structure on the docker
hex-developer
hex-developerOPโ€ข2mo ago
which guide is that?
MOUETTE03
MOUETTE03โ€ข2mo ago
I thought they were necessary but indeed I will delete them if not necessary
hex-developer
hex-developerOPโ€ข2mo ago
replace them with just this
MOUETTE03
MOUETTE03โ€ข2mo ago
GitHub
GitHub - galette-community/docker: Membership management web applic...
Membership management web application towards non profit organizations, in a Docker container ! - GitHub - galette-community/docker: Membership management web application towards non profit organi...
MOUETTE03
MOUETTE03โ€ข2mo ago
I will try this tonight because these anonymous volumes annoy me. Even this it still works
hex-developer
hex-developerOPโ€ข2mo ago
when you're done, push your changes to the app store so I can check keep in mind you'll have to migrate your data when you make this change you'll have to manually move and rename all relevant folders so make sure to back up your data
MOUETTE03
MOUETTE03โ€ข2mo ago
I will try this tonight because these anonymous volumes annoy me. Even this it still works Yes, that's why I want to make the change quickly so as not to penalize people who could download the application
hex-developer
hex-developerOPโ€ข2mo ago
makes sense although it's best to at least let people know in your appstore post
MOUETTE03
MOUETTE03โ€ข2mo ago
Yes it will be done ๐Ÿ‘ Private message test app store ? And I send you a message when changes are made
hex-developer
hex-developerOPโ€ข2mo ago
what do you mean?
MOUETTE03
MOUETTE03โ€ข2mo ago
Yesterday I worked on dolibarr which seems to me to work well. I know this is an application that has been requested. It's in my test store. I think RUNTIPI is great. I started developing myself thanks to this. Thank you for the help I'm learning a lot.
hex-developer
hex-developerOPโ€ข2mo ago
you can let me know here
MOUETTE03
MOUETTE03โ€ข2mo ago
GitHub
test_store/apps/galette at main ยท Mouette03/test_store
Contribute to Mouette03/test_store development by creating an account on GitHub.
hex-developer
hex-developerOPโ€ข2mo ago
looking good! does it work?
MOUETTE03
MOUETTE03โ€ข2mo ago
I tried but galette has a permission problem! I think he's looking for the files that were mounted before and that he doesn't create the
MOUETTE03
MOUETTE03โ€ข2mo ago
No description
hex-developer
hex-developerOPโ€ข2mo ago
can you share the logs?
hex-developer
hex-developerOPโ€ข2mo ago
hmm can't see any errors here, weird perhaps you need to create the subdirectories too?
MOUETTE03
MOUETTE03โ€ข2mo ago
77 / 5โ€ฏ000 it still mounts anonymous volume and it probably looks for the following files
No description
hex-developer
hex-developerOPโ€ข2mo ago
and those were automatically created? oh wait this folder structure is wrong did you make it yourself? try a brand new install of the app after backing everything up all the subfolders should be in galette/data/data, not galette/data
MOUETTE03
MOUETTE03โ€ข2mo ago
I think this is how Docker is made, but the problem is that if I mount the subdirectories, the data folder will probably take over. If I understand correctly
hex-developer
hex-developerOPโ€ข2mo ago
can we start this over? I want you to take a backup of your current galette data tell me when you're done
MOUETTE03
MOUETTE03โ€ข2mo ago
not automatically created, these are those of the site without docker but they are also those that on the docker github it asks to mount in part
hex-developer
hex-developerOPโ€ข2mo ago
before you started making changes, did you have galette working? or are you still trying to set it up for the first time?
MOUETTE03
MOUETTE03โ€ข2mo ago
rien sur cenothing on this test rpi but if necessary I can recover from another installationtte ins
hex-developer
hex-developerOPโ€ข2mo ago
no it's ok just making sure we don't accidentally destroy important data first of all, please uninstall galette
MOUETTE03
MOUETTE03โ€ข2mo ago
68 / 5โ€ฏ000 everything happens on test machine no data loss problem
hex-developer
hex-developerOPโ€ข2mo ago
just to make sure nothing is left over that shouldn't be great tell me when you're ready
MOUETTE03
MOUETTE03โ€ข2mo ago
yes
hex-developer
hex-developerOPโ€ข2mo ago
ok have you added the test store?
MOUETTE03
MOUETTE03โ€ข2mo ago
I deleted the current installation and checked that the files were deleted from the app data directory.
hex-developer
hex-developerOPโ€ข2mo ago
great
MOUETTE03
MOUETTE03โ€ข2mo ago
yes
hex-developer
hex-developerOPโ€ข2mo ago
if you search galette in the app store you get 2 results, right?
MOUETTE03
MOUETTE03โ€ข2mo ago
1 only
hex-developer
hex-developerOPโ€ข2mo ago
click on it and send me a full screenshot don't install it yet I want to check something
MOUETTE03
MOUETTE03โ€ข2mo ago
No description
hex-developer
hex-developerOPโ€ข2mo ago
scroll up please
MOUETTE03
MOUETTE03โ€ข2mo ago
No description
hex-developer
hex-developerOPโ€ข2mo ago
up is the other way ๐Ÿ˜
MOUETTE03
MOUETTE03โ€ข2mo ago
I can't go higher than the other capture
hex-developer
hex-developerOPโ€ข2mo ago
huh that's weird normally you should be able to see the runtipi icon and the menu
MOUETTE03
MOUETTE03โ€ข2mo ago
No description
hex-developer
hex-developerOPโ€ข2mo ago
ah there we go ok that's good can you try installing it now?
MOUETTE03
MOUETTE03โ€ข2mo ago
a bug I refreshed the page
hex-developer
hex-developerOPโ€ข2mo ago
ok no problem I just wanted to verify it's from the test appstore
MOUETTE03
MOUETTE03โ€ข2mo ago
install in progress little time in my answer I have to translate install ok
hex-developer
hex-developerOPโ€ข2mo ago
cool are there still permission errors?
MOUETTE03
MOUETTE03โ€ข2mo ago
yes always
hex-developer
hex-developerOPโ€ข2mo ago
can you send me the directory structure in app-data/test/galette please?
MOUETTE03
MOUETTE03โ€ข2mo ago
No description
hex-developer
hex-developerOPโ€ข2mo ago
ok that's good actually
MOUETTE03
MOUETTE03โ€ข2mo ago
I had anticipated
hex-developer
hex-developerOPโ€ข2mo ago
it looks like you just have to create the necessary folders in app-data/test/galette/data/data so back in your store, go through each of the folders and create them with a .gitkeep file in them so data/data/files/.gitkeep, data/data/logs/.gitkeep, etc
MOUETTE03
MOUETTE03โ€ข2mo ago
in docker-compose.json ?
hex-developer
hex-developerOPโ€ข2mo ago
once you do that, push your changes to your test appstore, uninstall galette, update the appstores from the settings and then reinstall galette in your appstore
MOUETTE03
MOUETTE03โ€ข2mo ago
and there he created another anonymous volume
hex-developer
hex-developerOPโ€ข2mo ago
no, don't add new volumes
MOUETTE03
MOUETTE03โ€ข2mo ago
via sftp ?
hex-developer
hex-developerOPโ€ข2mo ago
no give me a minute your repository file structure looks like this now:
.
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ <some apps>
โ”‚ย ย  โ”œโ”€โ”€ galette
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ data
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ data
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ docker-compose.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ metadata
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ description.md
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ logo.jpg
โ”œโ”€โ”€ <other files>
.
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ <some apps>
โ”‚ย ย  โ”œโ”€โ”€ galette
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ data
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ data
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ docker-compose.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ metadata
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ description.md
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ logo.jpg
โ”œโ”€โ”€ <other files>
MOUETTE03
MOUETTE03โ€ข2mo ago
ah ok I will get back to you when it is done and reinstall
hex-developer
hex-developerOPโ€ข2mo ago
you want it to be like this:
.
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ <some apps>
โ”‚ย ย  โ”œโ”€โ”€ galette
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ data
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ data
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ files
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ logs
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ <other directories>
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ docker-compose.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ metadata
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ description.md
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ logo.jpg
โ”œโ”€โ”€ <other files>
.
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ <some apps>
โ”‚ย ย  โ”œโ”€โ”€ galette
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.json
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ data
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ data
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ files
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ logs
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ <other directories>
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ .gitkeep
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ docker-compose.json
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ metadata
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ description.md
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ logo.jpg
โ”œโ”€โ”€ <other files>
@MOUETTE03 don't reinstall anything yet, just make the file structure like this and push the changes the previous gitkeep in data is now unnecessary by the way but it's ok to leave it, don't worry
MOUETTE03
MOUETTE03โ€ข2mo ago
I suspected it well๐Ÿ˜†
hex-developer
hex-developerOPโ€ข2mo ago
have you reinstalled yet?
MOUETTE03
MOUETTE03โ€ข2mo ago
no
hex-developer
hex-developerOPโ€ข2mo ago
ok Also, since you mentioned you like learning, .gitkeep is used because git won't push empty folders to the repository. If you want a folder to be pushed, you have to add a file to it. Developers settled on using files like .gitkeep or .placeholder for this. In your case, since the data folder now has other folders with content in them (.gitkeep files), the initial .gitkeep you added isn't necessary anymore
MOUETTE03
MOUETTE03โ€ข2mo ago
I still have an anonymous volume but I forgot the config folder I'll start again and tell you but all the others have been created and galette has obtained permissions Yes, I looked at that later! But I didn't know that you could add them to the files you push to the store and that Runtipi took that into account. Really fantastic.
hex-developer
hex-developerOPโ€ข2mo ago
Not quite sure what you mean by that, but I'm happy you like it
MOUETTE03
MOUETTE03โ€ข2mo ago
I'm going to eat and then I'll do the new installation with the config folder (which I had forgotten ๐Ÿ˜ญ ) to confirm that there is no more anonymous volume! and tells you
hex-developer
hex-developerOPโ€ข2mo ago
great
MOUETTE03
MOUETTE03โ€ข2mo ago
After installation, there was still an anonymous volume mounting "/var/www/galette/config" which is normally not located in the data folder. So I added a volume for it and no more persistent volume. { "hostPath": "${APP_DATA_DIR}/data/data", "containerPath": "/var/www/galette/data" }, { "hostPath": "${APP_DATA_DIR}/data/config", "containerPath": "/var/www/galette/config" } ๐Ÿ˜ ๐Ÿ˜

Did you find this page helpful?