-
Notifications
You must be signed in to change notification settings - Fork 43
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
Cannot display site when pages stored on an external mount local storage #37
Comments
Pico CMS for Nextcloud v1.0.0 is arriving and I'm currently working through some old issues that can be resolved before releasing the app's first stable release. See help.nextcloud.com for more info. Storing websites on external storages isn't possible due to technical limitations (if you wanna learn more about the technical limitations, see 41f6228). However, the term "external storage" doesn't really match what it really is - so, for example, a server-encrypted Nextcloud is also stored on a "external storage", even though the data is indeed stored on the local disk. It's about how the data is being accessed - either directly or via an abstraction layer. Pico CMS for Nextcloud requires direct file access, thus we'll show a nice error message to inform the user about this issue. Anyways, you're trying to use a "Local" external storage. A "Local" external storage allows direct file access and thus is no "external storage" in a technical manner. Starting with Pico CMS for Nextcloud v1.0.0 you can indeed use "Local" external storages. However, you won't be able to enable the current beta because of your server-encrypted Nextcloud... However, I'll remove this limitation with the second beta. Your idea of using a "Local" external storage to circumvent the encryption is amazing, I didn't think of this as a solution to support server-encrypted Nextclouds. Thank you for your help! 👍 |
Awsome! Will test it out soon |
Hmm... Weird. I was testing this before and it worked, but now it indeed doesn't work anymore. After checking the code I'm asking myself why it ever worked. Since I had some issues enabling encryption in my Development Nextcloud, I'd assume that encryption never really worked while testing this feature... 😒 Anyway, the issue is that enabling encryption also affects external storages. The "Enable encryption" option of an external storage just tells the storage whether new files should be encrypted, all accesses still use said abstraction layer, making it impossible for Pico CMS for Nextcloud to use this storage. However, since some storages don't support encryption (like the Nextcloud external storage), we can utilize this by registering our own external storage backend that claims that it doesn't support encryption. Unfortunately I'm currently unable to register said storage backend from the Pico CMS for Nextcloud app (it's just a few lines of code...). The weird thing is: Adding the exact same code to the |
Finally got it working, will be in the upcoming |
just testing with latest master. Should i be able to select local storage mount point now? Or is there a different approach now? |
You must create and use a "Local (unecrypted)" local storage. |
Thanks - that did the trick. It is working now!!! Awsome job |
Found the same problen again with pico 1.0.8 |
Hi,
I was trying to use Cms Pico App with nextcloud 12. Since i have encryption enabled i had added an un-encrypyed external mount point for local storage. I can edit the .md file on the external storage and can see it is not encrpted.
Problem I found:
I wouldlike to debug/trace but dont know a good way to output the content of the exception that is thrown in the code
The text was updated successfully, but these errors were encountered: