helm icon indicating copy to clipboard operation
helm copied to clipboard

Extra configs on fresh install causes error

Open agates opened this issue 5 years ago • 12 comments

Including extra configs (like trusted_proxies) on first install of the chart appears to result in Nextcloud failing with the following:

Error. It looks like you are trying to reinstall your NextCloud. However the file CAN_INSTALL is missing from your config directory. Please create the file CAN_INSTALL in your config folder to continue.

Adding the config after the fact works as intended.

agates avatar Nov 30 '20 02:11 agates

Can confirm having faced the same issue, helm chart v2.3.2, docker tag 20.0.2

gjeusel avatar Nov 30 '20 16:11 gjeusel

I believe that You can use:

extraEnv:
- name: NEXTCLOUD_TRUSTED_DOMAINS
  value: nextcloud.local

lukasmrtvy avatar Dec 28 '20 14:12 lukasmrtvy

Perhaps, though I also have an s3.config.php for my primary storage, for example.

agates avatar Dec 28 '20 17:12 agates

I have a similar problem: https://github.com/nextcloud/helm/issues/114

steled avatar May 01 '21 21:05 steled

got the same problem

fwmarcel avatar Dec 05 '22 16:12 fwmarcel

same here

benedikt-bartscher avatar Dec 29 '22 18:12 benedikt-bartscher

Any solution? I have a same problem after fresh installation.

kisdaniel avatar Feb 12 '23 09:02 kisdaniel

If users are still having this issue, could you please give info about your setup? For instance, can you please post your values.yaml in a syntax highlighted code block (instructions here). Make sure to remove any sensitive data like passwords before posting. I have been using s3 as external storage with the extra configs block for a while and haven't run into any issues.

I can try to test your values locally, or someone else in the community can also try to validate your setup if they have time :)

jessebot avatar May 04 '23 13:05 jessebot

As I'm unable to reproduce this issue on a fresh install, there's not been any helm parameters/values.yaml posted here, and there hasn't been activity in over a year, I am going to close this issue as stale. If you're still having trouble with this, please feel free to open a new issue, and please follow the issue template so that we have all the tools we need to help you 🙏

jessebot avatar Jul 25 '24 10:07 jessebot

@agates, just noticed your thumbs down reaction. If you're still having trouble, could you please respond to https://github.com/nextcloud/helm/issues/48#issuecomment-1534822288 on this issue and I can reopen this? We can better help you if you provide what version of the chart you're using, and which values you used. This is important so we can see if you're using persistence, which configs this is an issue with, your env vars, etc. Right now, I'm unable to reproduce the error you originally posted, but with more info, we can try to create a test environment to replicate the error.

Additional info since 2020 when this was opened: We have also recently merged https://github.com/nextcloud/helm/pull/464 which adds S3 directly via the helm parameters of this chart (nextcloud.objectStore.s3) - there's even some docs on it. (More S3 work coming in https://github.com/nextcloud/helm/pull/614 too.) We also added the nextcloud.trustedDomains parameter.

We should also create a test for adding extra config files though regardless, as this is a common requirement. I'll create an Issue for that work to be done.

jessebot avatar Aug 02 '24 20:08 jessebot