-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Nextcloud fresh install - Error: Command "upgrade" is not defined. #111175
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
Comments
I just ran into this too, with |
I ran the |
Thanks, it works for me too. |
Cannot reproduce this on latest master and release-20.09. Can you please give me a minmal VM config that I can use to reproduce? |
Same config works in a test VM. |
I am running into this error as well with about the same config as |
It doesn't look like the builds of nextcloud and postgres are cleaned up completely, which is where it looks like this problem is coming from. Specifically, I had built nextcloud and postgres several times while I worked out the configuration settings I wanted. It turns out there were nextcloud and postgres folders in |
When I've first set up Nextcloud i encountered the same issues @DieracDelta is describing, but since then everything has run smoothly for me. |
It might sense to verify the The
Although this should be fixed upstream in the long term (see also nextcloud/server#23596), it needs to be stripped away for now (e.g. using |
#112013 may prevent corrupted installations in some cases. But I'm still missing a minimal VM setup to reproduce. |
I thought I gave one. I 'm very new with nixos but I would be delighted to learn more. maybe you can give me a link or guide me to do this? or pass the assignees to someone that can reproduce it. thanks |
Well, that's the test VM's config that I already checked. Was there any existing state in /var/lib/nextcloud during your install attempt? |
I don't know I need to reproduce this on the machine in question. i can try |
@eliasp have you checked whether repeated
Yeah please do that. You can also answer my question "Was there any existing state in /var/lib/nextcloud during your install attempt?". This is IIRC the main cause for problems like this. |
I don't have access to the machine but I've just started a vps and the same config works with the same steps. |
cool merge :-) I've used adminpass = "abcd1234" on vps may be this is the trick. |
@Ma27 do you really need me to reproduce the problem ? it's really very easy and I know you are active in others post who explain the problem. |
Well, I'm trying to check if there are any other causes apart from an existing state. Hence my question whether there was any existing state when you encountered the issue. |
I don't know in any case, /var/lib/nextcloud/* seems to be the same between the 2 generations |
Hit this too: I'd misconfigured the postgres database (the nextcloud module doesn't setup a nextcloud user and role on the db, which I'm used to for other modules), so the |
To me it seems as if most of the issues here are because the initial install failed and then the app wasn't properly installed, correct? Rather than letting this stall here even more, I'd write a few more notes in the documentation. |
…defined.` This error occurs if `nextcloud-occ maintenance:install` fails and the `upgrade` command is attempted to be executed afterwards. Due to the nature of the installer we can't do much about it, so I guess it makes sense to add some notes about it. The other notes in the `Pitfalls`-section are semantically a list of different topics, so I changed that accordingly now. Closes NixOS#111175
…defined.` This error occurs if `nextcloud-occ maintenance:install` fails and the `upgrade` command is attempted to be executed afterwards. Due to the nature of the installer we can't do much about it, so I guess it makes sense to add some notes about it. The other notes in the `Pitfalls`-section are semantically a list of different topics, so I changed that accordingly now. Closes #111175 (cherry picked from commit 561418f)
I'm getting this issue on unstable. |
|
I'm getting it on 24.11: No luck on removing the /var/lib/nextcloud dir either. |
I'll lock this issue now. It is four years old and the module has changed in a lot of ways, so I doubt that any of this is related to the original problem. If you encounter this: file a clear & concise bug-report that includes nixpkgs rev, logs, nixos config, things you've tried, whether it's a fresh install. There's even an entire section in the manual for things to check! I can't help anyone if the bugreports consist of two sentences missing 99% of the information I'd need to give a qualified answer. |
Hi,
I'm testing nextcloud it seem there is an issue.
I'm tying to install a fresh nextcloud and with the minimal example of the man : https://nixos.org/manual/nixos/stable/index.html#module-services-nextcloud
I get :
janv. 29 16:56:31 cloud systemd[1]: Starting nextcloud-setup.service...
janv. 29 16:56:31 cloud nextcloud-setup-start[20532]: Nextcloud is not installed - only a limited number of commands are available
janv. 29 16:56:31 cloud nextcloud-setup-start[20532]:
janv. 29 16:56:31 cloud nextcloud-setup-start[20532]: Command "upgrade" is not defined.
nextcloud-setup-start try to update a new install
same result with :
nixpkgs.config.permittedInsecurePackages = [ "nextcloud-19.0.6" ];
or
package = pkgs.nextcloud20;
Linux 5.4.88, NixOS, 21.03pre266581.e5ce05cc1ee (Okapi)
yes
yes
nix-env (Nix) 2.3.10
"nixos-20.09.2750.85abeab48b5, nixpkgs-21.03pre266581.e5ce05cc1ee"
/root/.nix-defexpr/channels/nixpkgs
@Ma27 @beardhatcode @Mic92
I may not be calling all the maintainers in case it's a false alarm :-)
The text was updated successfully, but these errors were encountered: