# Error MySQL when installing NextCloud (fail) \[Can't reproduce anymore\]

**URL:** https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485
**Category:** Support apps
**Tags:** nextcloud, mysql, bug, french, english
**Created:** [April 28, 2024, 7:54am UTC](https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485 "2024-04-28T07:54:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LautreG](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lautreg/32/9634_2.png) [@LautreG](https://forum.yunohost.org/u/LautreG)
#### Post date: [April 28, 2024, 7:54am UTC](https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485/1 "2024-04-28T07:54:22Z")

</div>

## 🇬🇧/🇺🇸

### My YunoHost server

**Hardware:** Computer with VM by Proxmox  
**YunoHost version:** 11.2.11.3 (stable) with updated packages system the same day.  
**I have access to my server :** Through SSH & through the webadmin & direct access via keyboard / screen  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : yes  
Only adapted the Nginx for logs and works behind a Proxy SNI

### Description of my issue

NextCloud previously worked on this server.  
Yesterday, I updated it, but can’t log in (Means php working).  
Because it was for tests, I removed it, and reinstalled it, but the the installation failled.  
In the log, I saw that was a MySQL issue.  
I restarter the server (easyer than connect to SSH at this time), but same problem, can’t install NextCloud.

Logs are here: [https://paste.yunohost.org/raw/padagaleco](https://paste.yunohost.org/raw/padagaleco)

I checked, in the MySQL, there is no Nextcloud users, and no databases for nextcloud.

Here, some parts form logs.

```auto
2024-04-27 23:38:51,361: DEBUG - + local _globalapp=nextcloud
2024-04-27 23:38:51,433: DEBUG - + app=nextcloud
2024-04-27 23:38:51,433: DEBUG - + [[phpflags =~ (unprotected|protected|skipped)_]]
2024-04-27 23:38:51,433: DEBUG - + ynh_app_setting set nextcloud phpflags '--define;apc.enable_cli=1'
2024-04-27 23:38:52,082: INFO - [....................] > Migrate MySQL database to utf8...
2024-04-27 23:38:52,083: DEBUG - + ynh_mysql_connect_as --user=nextcloud --password=a143fcb65052109d959168ad --database=nextcloud
2024-04-27 23:38:52,158: DEBUG - + database=nextcloud
2024-04-27 23:38:52,158: DEBUG - + default_character_set=
2024-04-27 23:38:52,158: DEBUG - + '[' -n '' ']'
2024-04-27 23:38:52,158: DEBUG - + default_character_set=--default-character-set=latin1
2024-04-27 23:38:52,158: DEBUG - + mysql --user=nextcloud --password=a143fcb65052109d959168ad --default-character-set=latin1 --batch nextcloud
2024-04-27 23:38:52,446: WARNING - ERROR 1045 (28000): Access denied for user 'nextcloud'@'localhost' (using password: YES)
2024-04-27 23:38:52,447: DEBUG - + ynh_exit_properly
2024-04-27 23:38:52,447: DEBUG - + [[install =~ ^install$|^upgrade$|^restore$]]
2024-04-27 23:38:53,972: ERROR - Impossible d'installer nextcloud : Une erreur est survenue dans le script d'installation de l'application

```

* * *

## 🇫🇷

### Mon serveur YunoHost

**Matériel:** ordinateur avec des VM par Proxmox  
**Version de YunoHost:** 11.2.11.3 (stable) avec mise à jour des paquets le même jour  
**J’ai accès à mon serveur :** En SSH & webadmin & En direct avec un clavier/écran  
**Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ?** : oui  
J’ai modifié un peu Nginx pour les logs et de manière à ce que tout fonctionne parce que la VM est après un Proxy SNI

### Description du problème

NextCloud a déjà fonctionné par le passé sur cette installation.  
J’ai mis à jour NextCloud, mais après je n’ai pas réussi à m’identifier, mais je n’ai pas trop fait attention.  
Comme c’était une installation de test, je l’ai désinstallé et réinstallé.  
Mais l’installation à échoué.  
J’ai vu que c’était une erreur MySQL, dans le doute, j’ai rebooté la VM (plus facile que de voir par SSH).  
Cela n’a rien changé, l’installation échoua encore, avec cette erreur MySQL.

Les logs : [https://paste.yunohost.org/raw/padagaleco](https://paste.yunohost.org/raw/padagaleco)

Pour un extrait des logs, voir plus haut.

Bonne journée

---

<div class="post-metadata">

### Author: ![LautreG](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lautreg/32/9634_2.png) [@LautreG](https://forum.yunohost.org/u/LautreG)
#### Post date: [April 28, 2024, 8:07am UTC](https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485/2 "2024-04-28T08:07:16Z")

</div>

I tried the version 29 from the git repository, and the installation was successful, and NextCloud working.

---

<div class="post-metadata">

### Author: ![LautreG](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lautreg/32/9634_2.png) [@LautreG](https://forum.yunohost.org/u/LautreG)
#### Post date: [April 29, 2024, 10:44am UTC](https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485/3 "2024-04-29T10:44:43Z")

</div>

Today, on another server, I installed NextCloud, without problem.  
I will need to investigate why I have problems on another server (and will try to answers to [Désinstallation de Nextcloud à la dernière mise à jour](https://forum.yunohost.org/t/desinstallation-de-nextcloud-a-la-derniere-mise-a-jour/29493/1) )

---

<div class="post-metadata">

### Author: ![LautreG](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lautreg/32/9634_2.png) [@LautreG](https://forum.yunohost.org/u/LautreG)
#### Post date: [April 29, 2024, 11:23am UTC](https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485/4 "2024-04-29T11:23:37Z")

</div>

Strange, everything works now.

I can’t reproduce.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [May 14, 2024, 11:24am UTC](https://forum.yunohost.org/t/error-mysql-when-installing-nextcloud-fail-cant-reproduce-anymore/29485/5 "2024-05-14T11:24:11Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
