Nextcloud on Nethserver 7

NethServer Version: NethServer release 7.3.1611 (Final)
Module: NextCloud

Hi
I just had a total failure on my server, so I had to set it up again…
I have all the data from nextcloud (all in nextcloud data dir)
But I had some trouble getting NC to work… first I got the message I had to install from commandline

Anyway I longer story short, I uninstalled and deleted all nextcloud files.

The problem now is, when I install nextcloud from nethserver.
I’m promted to create a adminuser/database.

I was thinking id had to be due to /usr/share/nexcloud folder is gone.

AFAIK nextcloud uses a mysql (mariadb on NS) database. Did you make a dump of that database before reinstalling?

hi. No sorry. I couldn’t
my entire server died due to a powersurge. and unfortanly I haven’t gotten the backup offsite yet.
So only have backup of the files it self.

You might solve it with:

signal-event nethserver-nextcloud-update

If it doesn’t work, then:

yum reinstall nethserver-nextcloud

Thanks for that, but I have tried reinstalling it several times…
Doesn’t help.
I know that a reinstall of the entire server will help. but I rather not do that. spend 2 days configure it again :wink:

Which version of nextcloud is installed, and where (current path)?

version:
1.1.3-1.ns7
and its on default path
/var/lib/nethserver/nextcloud

But I feel this error occured when I deleted the /usr/share/nextcloud folder.

Can you try:

yum clean all
yum reinstall nethserver-nextcloud nextcloud

Tried that now… Still the same.
It’s not creating the congif.php properly.
Btw I have set the system up with connection to AD.

  Installing : nextcloud-11.0.3-2.ns7.noarch           1/2
  Installing : nethserver-nextcloud-1.1.3-1.ns7.noarch

rpm -e nethserver-nextcloud nextcloud
mysql -e “drop database nextcloud”

And try to install again

1 Like

That fixed it :slight_smile:
Now it installed and the config file is back…
Thanks alot for the help here everyone :smiley:

Well now I receive this error when I log in to the server.

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Technical details
Remote Address: 192.168.1.190
Request ID: WSWc5FxPJUFjRWEth5fegQAAAAs

Not sure what log file to look into.

This is the same problem I am experiencing:

Clean setup of latest Nethserver
Run Updates
Setup server as AD (AD working fine)
Install Nextcloud, but get this "Internal Server Error"
If I uninstall AD and use LDAP, Nextcloud works fine.
I have reloaded the server three times, same problem, so for some reason Nextcloud does not talk to AD?

1 Like

Please inspect all logs:

  • /var/log/messages
  • /var/log/http/*log
  • /var/lib/nethserver/nextcloud/nextcloud.log

I have now the exact same message when installing NC12 on a NS7 with Samba4 AD accountprovider:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

I have searched for nextcloud entries in /var/log/messages and have these lines:
https://pastebin.com/nitWseRC

Reading the log, something is wrong within the db format.
Maybe you already had installed an old nextcloud release?

Try to repair and then upgrade the installation with occ command.

/cc @goggaboy

what command would that be? :slight_smile:

That’s right, I had nextcloud10 installed back in januari, but deinstalled that version. Also dropped the database and removed the /var/lib/nethserverl/nextcloud directory… So I assumed I had removed all remnants of the previous install… Maybe I forgot something?

OK, I have found my problem. @Robb and @Drake, maybe you are doing the same?

DNS Domain Name under ‘Accounts Provider’ cannot be the same as ‘Fully qualified Domain Name’ under 'Server Name’
When they are the same, Nextcloud has an error connecting to LDAP, but once I uninstalled and reinstalled AD with a different name, Nextcloud worked perfectly.
Maybe this is obvious to others, but I learnt something :slight_smile:

Thanks Guys.

1 Like

For meDNS domain name is “domain.tld” and Servername is ‘server.domain.tld’ so they are different.

That is not the case at my setup.
I have the same as @robb here.
FQDN = servername.domain.local
and domain is domain.local