There is a problem with Nextcloud, not possible to update/upgrade/reinstall

There was a problem with Nextcloud.

Linked to: [Solved] Problems with nextcloud after June 2021 Update

I have removed Nextcloud in “Application” from Cockpit, and reinstall from “Software Center”, it is same.

I have done: https://docs.nethserver.org/projects/nethserver-devel/en/latest/nethserver-nextcloud.html#full-reinstall

After in “Software Center” in Cockpit:
echo '{"action":"install","packages":["@nethserver-nextcloud"]}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update | jq

What is the solution?

Is your problem the same as the one in that four-year-old topic on the Nextcloud forum? That seems unlikely.

Why did you again post the text of that command? It wasn’t helpful when you posted it in the other topic, and it isn’t helpful here. The output of that command might be helpful, depending on the circumstances, but the only thing the command itself tells us is that you were trying to install Nextcloud from the software, and apparently there was a problem.

The problem is that the install is broken in NethServer.
I think, it is needed to inform how to clean the server and to install Nextcloud correctly.

Full reinstall is explained here.

1 Like

@mrmarkuz: Like I have said in the topic, it does not work.

Is not information, is not a log, nor a screenshot.
→ Does NOT help solving an issue, and wastes time!

Include Log files when making such a statement, or output from commandos…

I have users (employees) at clients saying: “The Internet stopped working” - instead of “my Browser is hanging”…
The first implies that 8 billion humans can’t access Google, FB or whatever.
The second is the truth…

It also gives the supporter enough info to make a quick judgement about how much IQ this person probably has…

My 2 cents
Andy

4 Likes

Please check /var/log/messages for errors.

Edit:

Nextcloud was migrated to a new database engine, see following post how to delete the db:

Edit2:

Full reinstall including deleting mariadb105 Nextcloud database:

/opt/rh/rh-mariadb105/root/bin/mysql --socket="/var/run/rh-mariadb105-mariadb/nextcloud-mysql.sock" -e "drop database nextcloud"
yum -y remove nethserver-nextcloud
config delete nextcloud
rm -rf /usr/share/nextcloud/
rm -rf /var/lib/nethserver/nextcloud
yum -y install nethserver-nextcloud
1 Like

That is a useless problem report, and you’ve been around long enough to know better. What, exactly, is happening? What, exactly, is the output of the command that you’ve (for some reason) posted twice?

1 Like

The documentation is outdated as regards the deletion of the Nextcloud DB.

1 Like

NethServer 7.7 (ejabberd/mattermost/nextcloud/sogo installed) -> 7.8 -> 7.9 (Nextcloud problem)

Complete log: https://gist.github.com/Neustradamus/165d25ca1d86278d182f80831b79d81b

I’m out. When you can post a coherent question with an actual description of your problem, maybe I’ll check back.

@danb35: @mrmarkuz has requested me a full log with the Nextcloud problem, I have done an installation of NS 7.7 + ejabberd+mattermost+nextcloud+sogo + update + upgrade to 7.8 + upgrade to 7.9 and there is the problem with Nextcloud.

Did you try to reinstall Nextcloud as explained in this post?

Please also share the output of these commands to maybe see if there were problems with DB migration:

Originally I wrote:

I checked your messages log but couldn’t find any relevant error.

Usually you should install the most recent version and update regularly.

Nobody asked you to post a 15000-line log file, covering a period of over an hour. I didn’t, Andy didn’t, and Markus didn’t. What all three of us have asked, and you continue to refuse to provide, are:

Now, if you put zero thought into the question, you might have concluded that Andy was asking for the complete log. But if you thought about it for even a second, it would have been obvious that he’d be asking for relevant portions of the logs. Which parts are relevant? I’m betting you already know, but on the off chance you don’t, a simple time filter would be better than nothing–start at the time you ran the installation command, and finish when you got the error.

But the bottom line is, we aren’t going to put more effort or attention into solving your problem, than you are into describing it. You’ve been around here long enough to have a pretty good idea of how to ask a question that’s likely to get an answer, but in case you’ve somehow missed it, this page provides lots of valuable information:
http://www.catb.org/~esr/faqs/smart-questions.html

In particular, note this portion:

Despite this, hackers have a reputation for meeting simple questions with what looks like hostility or arrogance. It sometimes looks like we’re reflexively rude to newbies and the ignorant. But this isn’t really true.

What we are, unapologetically, is hostile to people who seem to be unwilling to think or to do their own homework before asking questions. People like that are time sinks — they take without giving back, and they waste time we could have spent on another question more interesting and another person more worthy of an answer.
(emphasis added)

4 Likes

Have you looked the problem for the update?
The problem is when we update the NS to 7.9.
It is possible to solve it?
The goal is to have a good migration from 7.8 to 7.9…
People do not want to launch several lines of code…

With your “Edit 2”:

FAILED with the main server.

Can you look the other gist too, to solve the original bug?

@mrmarkuz and all others: Have you looked logs from install and other from reinstall?

So you are updating form Nethserver 7.8 ??? , quite late to the party…
How did you manage that? The crazy version-lock does not exist anymore to my knowledge.

What happens when you browse to https://<YOURNETHSERVER>/nextcloud ? Do you get an error?

I already answered in a previous post:

In your reinstall log you can find that the Nextcloud configuration failed:

Event: nethserver-nextcloud-update FAILED

rpm -qa | grep nextcloud

mysqlshow 

/opt/rh/rh-mariadb105/root/bin/mysqlshow --socket="/var/run/rh-mariadb105-mariadb/nextcloud-mysql.sock"

@mrmarkuz: On a 7.9… a new time

 [root@server ~]# rpm -qa | grep nextcloud
nethserver-nextcloud-1.17.1-1.ns7.noarch

[root@server ~]# mysqlshow
+--------------------+
|     Databases      |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| roundcubemail      |
| sogo               |
+--------------------+

[root@server ~]# /opt/rh/rh-mariadb105/root/bin/mysqlshow --socket="/var/run/rh-mariadb105-mariadb/nextcloud-mysql.sock"
+--------------------+
|     Databases      |
+--------------------+
| information_schema |
| mysql              |
| nextcloud          |
| performance_schema |
+--------------------+

[root@server ~]# yum remove nethserver-nextcloud nextcloud
OK...

[root@server ~]# /opt/rh/rh-mariadb105/root/bin/mysql --socket="/var/run/rh-mariadb105-mariadb/nextcloud-mysql.sock" -e "drop database nextcloud;"
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/rh-mariadb105-mariadb/nextcloud-mysql.sock' (2)

[root@server ~]# rm -rf /usr/share/nextcloud/

[root@server ~]# config delete nextcloud

[root@server ~]# rm -rf /var/lib/nethserver/nextcloud

After in cockpit to install Nextcloud again:

Note that you have full log about migration of NS 7.7 -> 7.8 -> 7.9 with the problem too.