-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
🐛 [Nextcloud] latest upstream version does not allow to install apps #1333
Comments
Hi, I see the same issue on my instance but I think it is more due to nextcloud than the addon... Perhaps an incompatibility of version? I think you'd have more chance posting on their forum where they have seemed to have encountered that issue before : https://help.nextcloud.com/t/external-storage-support-cannot-be-enabled/120830 But anyway you don't really need it : you can use the /mnt/Subfolder folder as if it was a native folder - this app is only used if you want to mount the SMB drive from nextcloud |
According to this "https://www.reddit.com/r/NextCloud/comments/1bqf8wp/2804_error_this_app_cannot_be_enabled_because_it/" you could enable it manually by running |
Wow, Superfast! Thanks and sorry, i could (no, should!) have looked for the Containers Issues.
I guess that doesnt work for me, using HAOS and having the Nextcloud Data Folder in /share/nextcloud/ ? I use your Nextcloud-Addon to give all Users at Home a centralized Drop / Pickup Structure. Now, my Scanner uploads Scans via FTP to an SMB-Share on my NAS. Users should be able to grab their Scans with just one Click, which is possible when using the Share-Link from Nextcloud, no matter what Device they use...
So i need to wait :-D Or install the Addon Portrainer... mhmm... Thanks for your great Support and, by the Way, awesome Addon-Collection! Highly Appreciate it :-) |
Hello! Indeed if you want to use your external drive it would likely be more preferable that you restart from scratch, and directly use /mnt/subfolder/nextcloud as a data folder. This is how my own system is configured. I don't think nextcloud allows to add additional folders after initial config but I might be wrong... Another way would be that you could have a script that periodically moves your files. For example, an automation that executes every 30 minutes a cp command so that everytime someone uploads to the folder it gets copied to a folder visible by nextcloud ? Usually I simply use the nextcloud app, which allows uploading directly to the nextcloud folders :-) To run custom commands I don't think it's easy to do it from a shell_command as those run in the homeassistant container, while you would need to run it in the nextcloud container... The easiest way is to use my autoscript feature, that allows you to manually run commands when the addon starts : https://github.com/alexbelgium/hassio-addons/wiki/Add%E2%80%90ons-feature-:-customisation . As this is injected as addon start, it will also stay there even when updating the addon, which would not be the case if you modify the code directly using portainer. There is then two ways to run it regularly:
Hope this is helpful to you :-) And thanks for the very kind words and appreciation ! |
Thank you so much for taking your Time and showing and explaining my Option! The Hint with autoscript, and Options to run that is superhelpful! Thanks! Will give it a shot during the next Days... I'll keep that Ticket open in Case something change. Thanks again mate! The only Problem with your great Addon-Collection: Too many Temptations. If id use all interesting ones it's surely screw my RPi... :-D |
Well downgrading for the moment is another one I hadn't thought of ;-) Glad it works again for you! Ah ah I see what you mean for the number of addons ; actually I've tried a lot but in the end only have a handful running all the time on my rpi4... But it's surprising how little resources most addons used once they have started! |
I feel really dumb, but could you point me to the right direction / path? It would be really awesome if you could give me an example of how to properly let nextcloud rescan during startup! PS: Really great to know that even with rpi4 the addons dont consume that much! Too bad - now even more tempted for more addons :-D |
Hi, To begin with, I've encoutered the same issue as you regarding the unability to install new apps. After investigating it is confirmed to be an upstream issue : linuxserver/docker-nextcloud#422 . To solve it I've installed portainer, then manually enabled additional apps using for example Regarding the usage of startup script, you probably should try with
In theory it should work :-) |
Again, Thank you so much for taking you Time! Although:
Practice speaks a different Language :-D I tried this command as well before, but without success :-(
But this need protection mode disabled, so not possible to integrate as shell_command, thus not really practical. |
Mmh that's strange what is the error code? And the exact content of the file including header? Thanks! I wonder if the code is running before occ is started... If yes then you could try :
|
Based on my very little no none knowledge, i have the feeling it running way too early.
|
Hi, sorry I wrote that code from my couch without testing it :-) Here is a code tested as working :
|
Awesome, yes its working Great and instantly! For Reference: If somebody is looking for a Way to do file Operations directly in the Nextcloud Data Folder, and to make them visible in Nextcloud via syncing - this is your Copy, Paste and Restart Addon Solution 💯 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, relevant PR upstream that should fix it : nextcloud/server#44939 |
There seems to be also fix by changing proxy configuration: |
thanks ! I'm using the linuxserver's upstream proxy configuration so it's not really easy to inject it without breaking things. I've tried using portainer and reloading nginx but it didn't yield positive results... |
I didn't test it myself, so I can't neither confirm nor deny it. Is it really so hard to inject the change like this into upstream docker? |
I would propose to fix it very easily - apply this simple commit in the Docker file. it is as simple like patch -p ;-) Or if you not not like patch then sed or awk.
|
isn't the upstream app compiled which would prevent this ? If I do |
Compile php app??? see: https://github.com/linuxserver/docker-nextcloud/blob/master/Dockerfile
This is copy paste from linuxserver Docker file. So whole Nextcloud is unpack into |
well the file for sure isn't there ;-) but given that you seen quite knowledgeable I guess you have already applied it to your own system using terminal or portainer !
|
Nope, that is not how it works. You you upstream Docker image is from from linuxsever.io - I see something like:
You can't change directly content of the that existing upstream Docker image, but you can change/extend it in you Docker layer. So if you patch given file at place using your Docker file, it will add extra layer with the corrected file. So the command I am referring to shall be put into your Docker file. |
I don't understand - the linuxserver Dockerfile does not uses the nextcloud server git tree but the release file https://download.nextcloud.com/server/releases/nextcloud-28.0.5.tar.bz2. When I download and extract the file, there is no apps.js file ; which is the same result as searching for the file in the container given than this release is extracted to /app/www/src. There is no additional files in the docker layer so don't see how performing this in the Dockerfile changes the output ? |
Well, that's the great part of github - learning together while achieving useful things both for oneselves and others ;-) the addon is still restarting - my system isn't fast |
Yep, as I am afraid that single function in src is on many more places...
|
argh... I'll try a I tried to avoid reverting to a previous nexctloud version as I fear that it might cause issues in the database... |
Not all are javascripts, only those
|
BUT beware, this are not the issues! just check some of them, they are completely fine, having inside strings like.
I really think, that that fix is only where the original nextcloud commit has:
and that seems to be only at one place - the one you already fixed:
and correspondig minified dist/settings-vue-settings-apps-users-management.js:
So to my best knowledge it shall be working... |
Could it be caching? OP server cache is only IMHO for PHP, so browser cache? and one more question, is the file path in sed correct? |
yes I've checked using portainer that the files are modifed and I've tried in incognito mode to avoid the cache ; I'll try again tomorrow but don't see what else to do For sure the file is used though - if I delete it then the apps page doesn't work anymore |
I reported our failed backport attempt to the related Nextcloud upstream issue. Meanwhile we can try to focus on the second proposed fix. Fix needs to be applied to this nginx conf into following block:
to become this:
Due to S6 init system, I am afraid, that you will not be able to modify nginx site config for testing at place via portainer, as you will not be able to restart nginx after file modification (and probably whole container will be restarted and change lost - but you can try it). If not possible we will need to overwrite the If we will succeed we can prepare PR for linuxserver.io upstream an temporarily overwrite file it in own Docker file, till it will be fully fixed in Nexcloud and/or Linuxserver upstreams;-) |
Hi, thanks! to reload the config from portainer you need to do We'll have to make this line dependent on whether ssl is enabled or not btw |
Any news? |
Bonjour, comment faire pour installer une version précédente afin de pouvoir éviter ce soucis ? |
Hélas il est peu recommandé de revenir sur des versions précédentes de Nextcloud, car cela peut causer des problèmes de corruption de database... La solution la plus simple a court terme est d'éviter d'utiliser ssl car le problème de base est sur la redirection https -> http ; sinon je vais tenter de regarder mais cela ne dois pas être évident à faire car l'issue est ouverte depuis un moment sur nextcloud : nextcloud/server#44685 |
Merci pour ton retour rapide Alexbelgium ;), dans mon cas, la base de données est plus que light car c'est une installation de zéro donc je voulais commencer avec une version précédente mais est-ce possible ? |
a priori j'ai la solution dans 1h ce sera bon |
Sorry guys, my Klingon is little bit rusty, would you please prefer to speak UN galactic standard? |
Bonsoir Alexbelgium, j'avais juste une petite question. J'ai branché un second disque ssd (sdb1) sur mon raspberry5 (le 1er (sda1), c'est le système) et je voulais que les données et stockage nextcloud soient sur le second disque. J'ai donc monté le disque sur share/nextcloud mais je retrouve mon sda1 en premier dans nextcloud et l'autre en second. Si je le monte sur /mnt/dossier/nextcloud (en prenant soin de monté le sdb1 sur ce chemin), il refuse l'installation. Pourtant, j'ai mis sdb1 dans localdisk et en ssh "chmod 777 /mnt/dossier/nextcloud rwxrwxrwx. Je ne vois pas le soucis ? |
Ok, you probably didn't get the message. So I will try to explain in more straightforward way. It is rude to start switch to other language that the one in which given topic is discussed. It is rude because you automatically expect that other people who cooperate on the issuse will now start using translator just to overcome your inabilities. So thank you, that next time you will try to use English. Ok, vous n'avez probablement pas compris le message. Je vais donc essayer de vous expliquer de manière plus simple. Il est impoli de commencer à passer à une autre langue que celle dans laquelle le sujet donné est abordé. C'est impoli car vous vous attendez automatiquement à ce que d'autres personnes qui coopèrent sur le problème commencent désormais à utiliser un traducteur juste pour surmonter vos incapacités. Alors merci, la prochaine fois, vous essaierez d'utiliser l'anglais. |
Hi, could you please confirm if the issue is solved with latest update? At least on my system it does, thanks |
i can confirm this is workaround working! |
The latest version works i'll close this except if someone still has the same issue |
Description
I can't enable the External Storage Support App in Nextcloud. When trying to enable it, it says:
Error: This app cannot be enabled because it makes the server unstable
I set the Share up as CIFS networkdisks in the Addon Options and rebooted, it looks like sucessful:
Any Idea how to resolve that Issue?
Reproduction steps
Addon Logs
Architecture
No response
OS
HAos
The text was updated successfully, but these errors were encountered: