Koozali.org: home of the SME Server

Nextcloud 24

Offline gieres

  • *
  • 213
  • +0/-0
Nextcloud 24
« on: July 18, 2022, 04:59:12 PM »
J'ai suivi la procédure ici : https://forums.koozali.org/index.php/topic,54847.0.html en tant qu'ancien utilisateur de Nextcloud mais la connexion à https://mon-domaine/nextcloud/ envoie une erreur 403 :
Forbidden
You don't have permission to access /nextcloud/ on this server.

Par ailleurs, je ne suis pas sûr d'avoir bien compris la phrase : after having the new db working as a sclo Mariadb105 for SME10 as example dans https://wiki.koozali.org/Nextcloud#Change_Database
C'est quoi sclo ?

Et pour lancer les commandes de ce paragarphe, faut-il ouvrir un shell mysql ?

Enfin, je n'ai pas pu installer nextcloud-src v23, je ne l'ai pas trouvé. Yum a alors installé la version 24. Là est peut-être le problème ?
D'avance merci.

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud 24
« Reply #1 on: July 18, 2022, 06:27:49 PM »
y’a pas de version 23. mais si tu es utilisateur de longue date tu as du faire la mise a jour logiciel via l’interface web.

tu as ru etre bloqué a la version 20 car la version 21 a besoin d’un mariadb plus recent que celui de base. 

c’est là qu’il faut faire les manœuvres pour déplacer la base de nc de mariadb 55 à mariadb 105.

les commandes indiquées se font via le shell simplement. 

pour que mariadb 105 soit installé il faut soit installer la contrib soit mettre a jour smeserver-nextcloud qui feea l’installation de mariadb105. la migration de db doit se faire manuellement. 

sclo /scl c’est pour les software collection de Red Hat qui permettent d’installer des versions différentes du meme logiciel.

Offline gieres

  • *
  • 213
  • +0/-0
Re: Nextcloud 24
« Reply #2 on: July 24, 2022, 05:28:20 PM »
Non, je ne suis pas utilisateur de longue date mais quand j'ai installé il y a quelques mois, c'était encore mysql si j'ai bien compris.
J'ai tout (je pense) désinstallé et je réinstalle tout.
Message à l'installation :
Code: [Select]
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installation : rh-mariadb105-runtime-3.7-1.el7.x86_64                   1/14
  Installation : 3:rh-mariadb105-mariadb-config-10.5.9-2.el7.x86_64       2/14
  Installation : 3:rh-mariadb105-mariadb-common-10.5.9-2.el7.x86_64       3/14
  Installation : 3:rh-mariadb105-mariadb-libs-10.5.9-2.el7.x86_64         4/14
  Installation : 3:rh-mariadb105-mariadb-10.5.9-2.el7.x86_64              5/14
  Installation : 3:rh-mariadb105-mariadb-errmsg-10.5.9-2.el7.x86_64       6/14
  Installation : 3:rh-mariadb105-mariadb-server-10.5.9-2.el7.x86_64       7/14
libsemanage.semanage_read_policydb: Could not open kernel policy /etc/selinux/targeted/active/policy.kern for reading. (No such file or directory).
OSError: No such file or directory
libsemanage.semanage_read_policydb: Could not open kernel policy /etc/selinux/targeted/active/policy.kern for reading. (No such file or directory).
OSError: No such file or directory
  Installation : 3:rh-mariadb105-mariadb-server-utils-10.5.9-2.el7.x86    8/14
  Installation : rh-mariadb105-3.7-1.el7.x86_64                           9/14
  Installation : smeserver-mariadb105-2.7.0-16.el7.sme.noarch            10/14
  Installation : oniguruma-6.8.2-2.el7.x86_64                            11/14
  Installation : jq-1.6-2.el7.x86_64                                     12/14
  Installation : nextcloud-src-24.0.2-3.el7.sme.noarch                   13/14
  Installation : smeserver-nextcloud-1.2.0-17.el7.sme.noarch             14/14
Initializing databases

Pas de changement, pas d'accès possible à mon-domaine.fr/nextcloud :
You don't have permission to access /nextcloud/ on this server.

En essayant de mettre en œuvre la procédure décrite dans le wiki :
"Un utilisateur ne peut pas voir shares/files"  ça ne règle rien.

Par contre quand je veux créer le groupe "localusers", à l'enregistrement de ce nouveau groupe, j'ai une erreur :
Rapport d'état de l'opération
Une erreur est survenue lors de la modification du groupe d'utilisateurs.

Donc il y a un autre problème sur le serveur.

Des lignes avec erreurs du journal "Messages", on peut extraire :
Code: [Select]
Jul 24 16:51:14 kooz1 esmith::event[11915]: expanding /etc/phpMyAdmin/config.inc.php
Jul 24 16:51:14 kooz1 esmith::event[11915]: ERROR: Cannot create output file //etc/phpMyAdmin/config.inc.php.11916 Aucun fichier ou dossier de ce type
Jul 24 16:51:14 kooz1 esmith::event[11915]: at /etc/e-smith/events/actions/generic_template_expand line 56.
Jul 24 16:51:14 kooz1 esmith::event[11915]: expanding /etc/e-smith/sql/init105/10mysql_upgrade
...
Jul 24 16:51:16 kooz1 esmith::event[11915]: adjusting non-supervised mariadb105-mariadb (restart)
Jul 24 16:51:16 kooz1 scl: Socket file /var/lib/mysql/mariadb105.sock exists.
Jul 24 16:51:16 kooz1 scl: No process is using /var/lib/mysql/mariadb105.sock, which means it is a garbage, so it will be removed automatically.
Jul 24 16:51:17 kooz1 scl: Database MariaDB is probably initialized in /var/opt/rh/rh-mariadb105/lib/mysql already, nothing is done.
Jul 24 16:51:17 kooz1 scl: If this is not the case, make sure the /var/opt/rh/rh-mariadb105/lib/mysql is empty before running mysql-prepare-db-dir.
Jul 24 16:51:17 kooz1 mysqld-scl-helper: 2022-07-24 16:51:17 0 [Note] /opt/rh/rh-mariadb105/root/usr/libexec/mysqld (mysqld 10.5.9-MariaDB) starting as process 12210 ...
Jul 24 16:51:17 kooz1 mariadb105-post: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (111)
Jul 24 16:51:17 kooz1 mariadb105-post: root password set
Jul 24 16:51:17 kooz1 esmith::event[11915]: adjusting non-supervised mariadb105-mysql.init (restart)
Jul 24 16:51:18 kooz1 scl: Database MariaDB is probably initialized in /var/opt/rh/rh-mariadb105/lib/mysql already, nothing is done.
Jul 24 16:51:18 kooz1 scl: If this is not the case, make sure the /var/opt/rh/rh-mariadb105/lib/mysql is empty before running mysql-prepare-db-dir.
Jul 24 16:51:18 kooz1 mysqld-scl-helper: 2022-07-24 16:51:18 0 [Note] /opt/rh/rh-mariadb105/root/usr/libexec/mysqld (mysqld 10.5.9-MariaDB) starting as process 12405 ...
Jul 24 16:51:18 kooz1 mariadb105-post: waiting for rh-mariadb105-mariadb to start to set root password
Jul 24 16:51:19 kooz1 mariadb105-post: root password set
Jul 24 16:51:19 kooz1 esmith::event[11915]: adjusting non-supervised httpd-e-smith (start)
Jul 24 16:51:19 kooz1 esmith::event[11915]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 24 16:51:19 kooz1 esmith::event[11915]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 24 16:51:19 kooz1 esmith::event[11915]: adjust-services=action|Event|temp|Action|adjust-services|Start|1658674276 302089|End|1658674279 665557|Elapsed|3.363468
Jul 24 16:51:19 kooz1 esmith::event[11915]: Running event handler: /etc/e-smith/events/temp/S91nextcloud-conf
Jul 24 16:51:20 kooz1 esmith::event[11915]: parse error: Invalid numeric literal at line 1, column 6
Jul 24 16:51:20 kooz1 esmith::event[11915]: parse error: Invalid numeric literal at line 1, column 6
Jul 24 16:51:20 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:20 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:20 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:21 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:21 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:21 kooz1 esmith::event[11915]: S91nextcloud-conf=action|Event|temp|Action|S91nextcloud-conf|Start|1658674279 665827|End|1658674281 238827|Elapsed|1.573
Jul 24 16:51:21 kooz1 esmith::event[11915]: Running event handler: /etc/e-smith/events/temp/S92nextcloud-occ-conf
Jul 24 16:51:21 kooz1 esmith::event[11915]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/temp/S92nextcloud-occ-conf line 48.
Jul 24 16:51:21 kooz1 esmith::event[11915]: S92nextcloud-occ-conf=action|Event|temp|Action|S92nextcloud-occ-conf|Start|1658674281 239069|End|1658674281 753024|Elapsed|0.513955|Status|256
Jul 24 16:55:19 kooz1 esmith::event[12693]: Processing event: nextcloud-update
...
Jul 24 17:01:15 kooz1 /etc/e-smith/web/functions/groups[12938]: /home/e-smith/db/accounts: OLD localusers=(undefined)
Jul 24 17:01:15 kooz1 /etc/e-smith/web/functions/groups[12938]: /home/e-smith/db/accounts: NEW localusers=group|Description|util locaux|Members|admin,som
Jul 24 17:01:15 kooz1 esmith::event[12939]: Processing event: group-create localusers
Jul 24 17:01:15 kooz1 esmith::event[12939]: Running event handler: /etc/e-smith/events/group-create/S03pseudonym-cleanup
Jul 24 17:01:15 kooz1 esmith::event[12939]: S03pseudonym-cleanup=action|Event|group-create|Action|S03pseudonym-cleanup|Start|1658674875 92392|End|1658674875 166817|Elapsed|0.074425
Jul 24 17:01:15 kooz1 esmith::event[12939]: Running event handler: /etc/e-smith/events/group-create/S04group-create-unix
Jul 24 17:01:15 kooz1 /etc/e-smith/events/group-create/S04group-create-unix[12941]: /home/e-smith/db/configuration: OLD MinUid=5004
Jul 24 17:01:15 kooz1 /etc/e-smith/events/group-create/S04group-create-unix[12941]: /home/e-smith/db/configuration: NEW MinUid=5005
Jul 24 17:01:15 kooz1 /etc/e-smith/events/group-create/S04group-create-unix[12941]: /home/e-smith/db/accounts: OLD localusers=group|Description|util locaux|Members|admin,som
Jul 24 17:01:15 kooz1 /etc/e-smith/events/group-create/S04group-create-unix[12941]: /home/e-smith/db/accounts: NEW localusers=group|Description|util locaux|Gid|5004|Members|admin,som
Jul 24 17:01:15 kooz1 /etc/e-smith/events/group-create/S04group-create-unix[12941]: /home/e-smith/db/accounts: OLD localusers=group|Description|util locaux|Gid|5004|Members|admin,som
Jul 24 17:01:15 kooz1 /etc/e-smith/events/group-create/S04group-create-unix[12941]: /home/e-smith/db/accounts: NEW localusers=group|Description|util locaux|Gid|5004|Members|admin,som|Uid|5004
Jul 24 17:01:15 kooz1 esmith::event[12939]: useradd: warning: the home directory already exists.
Jul 24 17:01:15 kooz1 esmith::event[12939]: Not copying any file from skel directory into it.
Jul 24 17:01:15 kooz1 esmith::event[12939]: Group localusers successfully added!
Jul 24 17:01:15 kooz1 esmith::event[12939]: User localusers successfully added!
Jul 24 17:01:15 kooz1 esmith::event[12939]: User localusers successfully modified!
Jul 24 17:01:15 kooz1 esmith::event[12939]: User admin successfully modified!
Jul 24 17:01:15 kooz1 esmith::event[12939]: User som successfully modified!
Jul 24 17:01:15 kooz1 esmith::event[12939]: User admin successfully modified!
Jul 24 17:01:15 kooz1 esmith::event[12939]: User www successfully modified!
...
Jul 24 17:02:32 kooz1 esmith::event[13063]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/ibay-modify/S30nextcloud-occ-conf line 48.
Jul 24 17:02:32 kooz1 esmith::event[13063]: S30nextcloud-occ-conf=action|Event|ibay-modify|Action|S30nextcloud-occ-conf|Start|1658674951 725084|End|1658674952 25157|Elapsed|0.300073|Status|256
Jul 24 17:02:32 kooz1 esmith::event[13063]: Running event handler: /etc/e-smith/events/actions/adjust-services

Il y a cette erreur "malformed JSON string" qui revient lors des commandes de modifications de groupe et de la baie.

D'avance merci.

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud 24
« Reply #3 on: July 25, 2022, 05:57:56 AM »
Gieres
avant d'aller dans toutes les directions, as tu pris le temps de regarder les logs ???

mais la connexion à https://mon-domaine/nextcloud/ envoie une erreur 403 :
Forbidden
You don't have permission to access /nextcloud/ on this server.
si je vois une erreur 403 denied, la premiere chose que je regarde c'est le log erreur d'Apache, immediatement apres ou en reessayant d'Acceder a la page
Code: [Select]
# tail -f /var/log/httpd/error_log



Non, je ne suis pas utilisateur de longue date mais quand j'ai installé il y a quelques mois, c'était encore mysql si j'ai bien compris.
close enough, ca se qualifie pour longue date.

J'ai tout (je pense) désinstallé et je réinstalle tout.
ah? et qu'as tu désinstallé exactement ? quelles commandes ont été exécutées ?

Message à l'installation :
...
Pas de changement, pas d'accès possible à mon-domaine.fr/nextcloud :
You don't have permission to access /nextcloud/ on this server.
bref tu es revenu au point de départ, et la solution reside encore à faire la même chose ....
...
...
regarder les logs !

En essayant de mettre en œuvre la procédure décrite dans le wiki :
"Un utilisateur ne peut pas voir shares/files"  ça ne règle rien.
étonnant, non ?

Je comprends que si tu ne peux pas accéder à nextcloud, tu ne peux pas accéder non plus aux shares/files, mais c’était capillotracté d'essayer cela :)



Une erreur est survenue lors de la modification du groupe d'utilisateurs.

Donc il y a un autre problème sur le serveur.

Des lignes avec erreurs du journal "Messages", on peut extraire :
Code: [Select]
Jul 24 16:51:14 kooz1 esmith::event[11915]: expanding /etc/phpMyAdmin/config.inc.php
Jul 24 16:51:14 kooz1 esmith::event[11915]: ERROR: Cannot create output file //etc/phpMyAdmin/config.inc.php.11916 Aucun fichier ou dossier de ce type
Jul 24 16:51:14 kooz1 esmith::event[11915]: at /etc/e-smith/events/actions/generic_template_expand line 56.
oui c'est une consequence de vouloir avoir mariadb dans phpmyadmin s'il est installé ... là il l'est pas
a ignorer

Code: [Select]
Jul 24 16:51:16 kooz1 esmith::event[11915]: adjusting non-supervised mariadb105-mariadb (restart)
Jul 24 16:51:16 kooz1 scl: Socket file /var/lib/mysql/mariadb105.sock exists.
Jul 24 16:51:16 kooz1 scl: No process is using /var/lib/mysql/mariadb105.sock, which means it is a garbage, so it will be removed automatically.
Jul 24 16:51:17 kooz1 scl: Database MariaDB is probably initialized in /var/opt/rh/rh-mariadb105/lib/mysql already, nothing is done.
Jul 24 16:51:17 kooz1 scl: If this is not the case, make sure the /var/opt/rh/rh-mariadb105/lib/mysql is empty before running mysql-prepare-db-dir.
Jul 24 16:51:17 kooz1 mysqld-scl-helper: 2022-07-24 16:51:17 0 [Note] /opt/rh/rh-mariadb105/root/usr/libexec/mysqld (mysqld 10.5.9-MariaDB) starting as process 12210 ...
Jul 24 16:51:17 kooz1 mariadb105-post: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (111)
ca c'est signe que mariadb 105 n'a pas été desinstallé complémentement et etait encore en train de tourner avec un socket qui a pas été retiré. la suite du log indique meme que le contenu de la db n'a pas été supprimée... ce qui fait que nextcloud ne s'installera simplement pas.


Code: [Select]
Jul 24 16:51:19 kooz1 esmith::event[11915]: Running event handler: /etc/e-smith/events/temp/S91nextcloud-conf
Jul 24 16:51:20 kooz1 esmith::event[11915]: parse error: Invalid numeric literal at line 1, column 6
Jul 24 16:51:20 kooz1 esmith::event[11915]: parse error: Invalid numeric literal at line 1, column 6
Jul 24 16:51:20 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:20 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:20 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:21 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:21 kooz1 esmith::event[11915]: Could not open input file: occ
Jul 24 16:51:21 kooz1 esmith::event[11915]: S91nextcloud-conf=action|Event|temp|Action|S91nextcloud-conf|Start|1658674279 665827|End|1658674281 238827|Elapsed|1.573
probablement le resultat de tout ce qui a été fait avant.
je n'arrive pas a reproduire tout cela.

/usr/bin/occ semble absent
ou le dossier config de nextcloud est resté en place empêchant le reste de l'installation

Code: [Select]
Jul 24 16:51:21 kooz1 esmith::event[11915]: Running event handler: /etc/e-smith/events/temp/S92nextcloud-occ-conf
Jul 24 16:51:21 kooz1 esmith::event[11915]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/temp/S92nextcloud-occ-conf line 48.
Jul 24 16:51:21 kooz1 esmith::event[11915]: S92nextcloud-occ-conf=action|Event|temp|Action|S92nextcloud-occ-conf|Start|1658674281 239069|End|1658674281 753024|Elapsed|0.513955|Status|256

probablement aussi le resultat de tout ce qui a été fait avant. Tente de faire la commande suivante cela te donnera une idée, j'ensiage un message D'erreur que NC est pas installé ou cassé.
Code: [Select]
/usr/bin/occ user:list --output json
bon sinon le log apache, il dit quoi ?

mariadb fonctionne ?
Code: [Select]
mysql105
Code: [Select]
mysqlshow|grep nextcloud
Code: [Select]
mysqlshow105|grep nextcloud

Offline gieres

  • *
  • 213
  • +0/-0
Re: Nextcloud 24
« Reply #4 on: July 25, 2022, 05:08:18 PM »
Merci pour toutes ces explications : je manque effectivement de méthodes.
Reprenons :
Code: [Select]
tail -f /var/log/httpd/error_log
[Mon Jul 25 14:33:52.301096 2022] [autoindex:error] [pid 18335] [client 192.168.xx.yy:38408] AH01276: Cannot serve directory /usr/share/nextcloud/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.cgi,index.htm,index.html,index.shtml,index.cgi,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive
D'après ce que j'ai trouvé sur internet, cela signifierait que Apache ne trouve pas l'un des types de fichier d'index qu'il liste ou que certains sont interdits par le fichier de configuration.

Donc j'ai été voir /etc/httpd/conf/httpd.conf mais c'est trop compliqué pour moi.

Quote
ah? et qu'as tu désinstallé exactement ? quelles commandes ont été exécutées ?
Code: [Select]
yum remove smeserver-nextcloud nextcloud-src nextcloud
yum remove smeserver-mariadb105* rh-mariadb*
yum remove oniguruma.x86_64 0:6.8.2-2.el7

Mais j'ai effectivement constaté qu'il restait des choses dans /opt/rh/ que je n'ai pas osé supprimer.

Donc suppression de tout ce qu'il y avait dans /opt/rh/ puis

Contenu de /var/lib/mysql :
Code: [Select]
[root@kooz1 mysql]# ls -la
total 28748
drwxr-xr-x.  7 mysql mysql     4096 25 juil. 16:09 .
drwxr-xr-x. 51 root  root      4096 30 mars   2018 ..
-rw-rw----   1 mysql mysql    16384 23 juil. 22:17 aria_log.00000001
-rw-rw----   1 mysql mysql       52 23 juil. 22:17 aria_log_control
drwx------   2 mysql mysql    12288 28 nov.   2021 horde
-rw-rw----   1 mysql mysql 18874368 25 juil. 14:05 ibdata1
-rw-rw----   1 mysql mysql  5242880 25 juil. 14:05 ib_logfile0
-rw-rw----   1 mysql mysql  5242880 17 juil. 06:59 ib_logfile1
srwxrwxrwx   1 mysql mysql        0 25 juil. 16:09 mariadb105.sock
drwx------   2 mysql mysql     4096 23 juil. 22:17 mysql
srwxrwxrwx   1 mysql mysql        0 23 juil. 22:18 mysql.sock
-rw-r--r--   1 root  root        14 28 nov.   2021 mysql_upgrade_info
drwx------   2 mysql mysql     8192 30 juin  15:34 nextcloud
drwx------   2 mysql mysql     4096 28 nov.   2021 performance_schema
-r--------   1 root  root       288 18 juil. 11:05 set.password
-r--------   1 root  root       157 18 juil. 11:27 set.password2
drwx------   2 mysql mysql        6 28 nov.   2021 test
Suppression de mariadb105.sock et du répertoire nextcloud.
signal-event post-upgrade; signal-event reboot &

Réinstallation de nextcloud. Accès impossible avec la même erreur.
Et :
Code: [Select]
[root@kooz1 ~]# tail -f /var/log/httpd/error_log
[Mon Jul 25 16:36:36.980507 2022] [mpm_prefork:notice] [pid 2783] AH00171: Graceful restart requested, doing restart
[Mon Jul 25 16:36:37.004703 2022] [ssl:warn] [pid 2783] AH01909: RSA certificate configured for od.fr:443 does NOT include an ID which matches the server name
[Mon Jul 25 16:36:37.005025 2022] [mpm_prefork:notice] [pid 2783] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Mon Jul 25 16:36:37.005034 2022] [core:notice] [pid 2783] AH00094: Command line: '/usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND'
[Mon Jul 25 16:37:27.355827 2022] [autoindex:error] [pid 4692] [client 192.168.64.101:33156] AH01276: Cannot serve directory /usr/share/nextcloud/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.cgi,index.htm,index.html,index.shtml,index.cgi,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive


Des erreurs d'installation de MariadB dans le journal des messages qui ne sont pas les mêmes :
Code: [Select]
Jul 25 16:36:30 kooz1 yum[4450]: Installed: nextcloud-src-24.0.2-3.el7.sme.noarch
Jul 25 16:36:31 kooz1 yum[4450]: Installed: rh-mariadb105-3.7-1.el7.x86_64
Jul 25 16:36:31 kooz1 yum[4450]: Installed: smeserver-mariadb105-2.7.0-16.el7.sme.noarch
Jul 25 16:36:33 kooz1 yum[4450]: Installed: smeserver-nextcloud-1.2.0-17.el7.sme.noarch
Jul 25 16:36:34 kooz1 esmith::event[4484]: Processing event: temp
Jul 25 16:36:34 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/my.cnf
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/crontab
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/opt/remi/php74/php.d/20-opcache.ini
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/opt/remi/php74/php-fpm.d/www.conf
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/opt/rh/rh-mariadb105/my.cnf
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/phpMyAdmin/config.inc.php
Jul 25 16:36:34 kooz1 esmith::event[4484]: ERROR: Cannot create output file //etc/phpMyAdmin/config.inc.php.4485 Aucun fichier ou dossier de ce type
Jul 25 16:36:34 kooz1 esmith::event[4484]: at /etc/e-smith/events/actions/generic_template_expand line 56.
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/e-smith/sql/init105/10mysql_upgrade
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/httpd/conf/httpd.conf
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /etc/dar/DailyBackup.dcf
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /var/lib/mysql/set.password
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /var/lib/mysql/set.password2
Jul 25 16:36:34 kooz1 esmith::event[4484]: expanding /root/.my.cnf
Jul 25 16:36:34 kooz1 esmith::event[4484]: generic_template_expand=action|Event|temp|Action|generic_template_expand|Start|1658759794 310602|End|1658759794 995272|Elapsed|0.68467
Jul 25 16:36:34 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S40mariadb105-load-tables
Jul 25 16:36:35 kooz1 esmith::event[4484]: S40mariadb105-load-tables=action|Event|temp|Action|S40mariadb105-load-tables|Start|1658759794 995635|End|1658759795 51263|Elapsed|0.055628
Jul 25 16:36:35 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S88systemd-default
Jul 25 16:36:35 kooz1 esmith::event[4484]: Created symlink from /etc/systemd/system/sme-server.target.wants/mariadb105-mariadb.service to /usr/lib/systemd/system/mariadb105-mariadb.service.
Jul 25 16:36:35 kooz1 esmith::event[4484]: Created symlink from /etc/systemd/system/sme-server.target.wants/mariadb105-mysql.init.service to /usr/lib/systemd/system/mariadb105-mysql.init.service.
Jul 25 16:36:36 kooz1 esmith::event[4484]: S88systemd-default=action|Event|temp|Action|S88systemd-default|Start|1658759795 51636|End|1658759796 413993|Elapsed|1.362357
Jul 25 16:36:36 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S89systemd-reload
Jul 25 16:36:36 kooz1 esmith::event[4484]: S89systemd-reload=action|Event|temp|Action|S89systemd-reload|Start|1658759796 414300|End|1658759796 485086|Elapsed|0.070786
Jul 25 16:36:36 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 25 16:36:36 kooz1 esmith::event[4484]: adjusting non-supervised mariadb105-mariadb (restart)
Jul 25 16:36:36 kooz1 esmith::event[4484]: Job for mariadb105-mariadb.service failed because a configured resource limit was exceeded. See "systemctl status mariadb105-mariadb.service" and "journalctl -xe" for details.
Jul 25 16:36:36 kooz1 esmith::event[4484]: serviceControl: Couldn't system( /usr/bin/systemctl restart mariadb105-mariadb.service): Aucun fichier ou dossier de ce type
Jul 25 16:36:36 kooz1 esmith::event[4484]: adjusting non-supervised mariadb105-mysql.init (restart)
Jul 25 16:36:36 kooz1 esmith::event[4484]: A dependency job for mariadb105-mysql.init.service failed. See 'journalctl -xe' for details.
Jul 25 16:36:36 kooz1 esmith::event[4484]: serviceControl: Couldn't system( /usr/bin/systemctl restart mariadb105-mysql.init.service): Aucun fichier ou dossier de ce type
Jul 25 16:36:36 kooz1 esmith::event[4484]: adjusting non-supervised httpd-e-smith (start)
Jul 25 16:36:36 kooz1 esmith::event[4484]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 25 16:36:36 kooz1 esmith::event[4484]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 25 16:36:37 kooz1 esmith::event[4484]: adjust-services=action|Event|temp|Action|adjust-services|Start|1658759796 485385|End|1658759797 42269|Elapsed|0.556884
Jul 25 16:36:37 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S91nextcloud-conf
Jul 25 16:36:37 kooz1 esmith::event[4484]: parse error: Invalid numeric literal at line 1, column 6
Jul 25 16:36:37 kooz1 esmith::event[4484]: parse error: Invalid numeric literal at line 1, column 6
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:37 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: S91nextcloud-conf=action|Event|temp|Action|S91nextcloud-conf|Start|1658759797 42519|End|1658759798 357035|Elapsed|1.314516
Jul 25 16:36:38 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S92nextcloud-occ-conf
Jul 25 16:36:38 kooz1 esmith::event[4484]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/temp/S92nextcloud-occ-conf line 48.
Jul 25 16:36:38 kooz1 esmith::event[4484]: S92nextcloud-occ-conf=action|Event|temp|Action|S92nextcloud-occ-conf|Start|1658759798 357307|End|1658759798 864793|Elapsed|0.507486|Status|256
Jul 25 16:38:32 kooz1 kernel: [  517.765448] conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.
Jul 25 16:38:32 kooz1 kernel: conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.

Et :
Code: [Select]
[root@kooz1 ~]# systemctl status mariadb105-mariadb.service
● mariadb105-mariadb.service - Mariadb 105 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb105-mariadb.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since lun. 2022-07-25 16:36:37 CEST; 19min ago

juil. 25 16:36:37 kooz1.od.fr systemd[1]: mariadb105-mariadb.service failed to run 'start-pre' task: No such file or directory
juil. 25 16:36:37 kooz1.od.fr systemd[1]: Failed to start Mariadb 105 database server.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: Unit mariadb105-mariadb.service entered failed state.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: mariadb105-mariadb.service failed.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: mariadb105-mariadb.service holdoff time over, scheduling restart.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: Stopped Mariadb 105 database server.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: start request repeated too quickly for mariadb105-mariadb.service
juil. 25 16:36:37 kooz1.od.fr systemd[1]: Failed to start Mariadb 105 database server.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: Unit mariadb105-mariadb.service entered failed state.
juil. 25 16:36:37 kooz1.od.fr systemd[1]: mariadb105-mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Et journalctl :
Code: [Select]
[root@kooz1 ~]# journalctl -xe
-- Subject: L'unité (unit) httpd-e-smith.service a commencé à recharger sa configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) httpd-e-smith.service a commencé à recharger sa configuration.
juil. 25 16:53:30 kooz1.od.fr systemd[1]: Reloaded httpd-e-smith The Koozali SME Server Apache HTTP Service.
-- Subject: L'unité (unit) httpd-e-smith.service a terminé de recharger configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) httpd-e-smith.service a terminé de recharger configuration,
-- avec le résultat done.
juil. 25 16:53:30 kooz1.od.fr esmith::event[5033]: adjusting non-supervised php74-php-fpm (reload-or-restart)
juil. 25 16:53:30 kooz1.od.fr systemd[1]: Reloading The PHP FastCGI Process Manager.
-- Subject: L'unité (unit) php74-php-fpm.service a commencé à recharger sa configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) php74-php-fpm.service a commencé à recharger sa configuration.
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] Reloading in progress ...
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] reloading: execvp("/opt/remi/php74/root/usr/sbin/php-fpm", {"/opt/remi/
juil. 25 16:53:30 kooz1.od.fr systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: L'unité (unit) php74-php-fpm.service a terminé de recharger configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) php74-php-fpm.service a terminé de recharger configuration,
-- avec le résultat done.
juil. 25 16:53:30 kooz1.od.fr esmith::event[5033]: adjust-services=action|Event|nextcloud-update|Action|adjust-services|Start|1
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] using inherited socket fd=7, "/var/run/php-fpm/php74-primary.sock"
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] using inherited socket fd=8, "/var/run/php-fpm/php74.sock"
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] using inherited socket fd=10, "/var/run/php-fpm/php74-nextcloud.sock"
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] fpm is running, pid 1487
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] ready to handle connections
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] systemd monitor interval set to 10000ms
juil. 25 16:54:01 kooz1.od.fr crond[665]: (*system*) RELOAD (/etc/crontab)
juil. 25 16:55:01 kooz1.od.fr crond[5124]: pam_unix(crond:session): session opened for user root by (uid=0)
juil. 25 16:55:01 kooz1.od.fr CROND[5125]: (root) CMD (/usr/bin/php  /usr/bin/horde-alarms)
juil. 25 16:55:01 kooz1.od.fr php[5125]: DIGEST-MD5 common mech free
juil. 25 16:55:01 kooz1.od.fr CROND[5124]: pam_unix(crond:session): session closed for user root

[root@kooz1 ~]# mysql105
/usr/bin/mysql105: ligne1: /opt/rh/rh-mariadb105/root/usr/bin/mysql: Aucun fichier ou dossier de ce type
[root@kooz1 ~]# mysqlshow|grep nextcloud
[root@kooz1 ~]# mysqlshow105|grep nextcloud
/usr/bin/mysqlshow105: ligne1: /opt/rh/rh-mariadb105/root/usr/bin/mysqlshow: Aucun fichier ou dossier de ce type

Encore merci.

« Last Edit: July 25, 2022, 05:12:44 PM by gieres »

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud 24
« Reply #5 on: July 25, 2022, 11:43:55 PM »
Merci pour toutes ces explications : je manque effectivement de méthodes.
Reprenons :
Code: [Select]
tail -f /var/log/httpd/error_log
[Mon Jul 25 14:33:52.301096 2022] [autoindex:error] [pid 18335] [client 192.168.xx.yy:38408] AH01276: Cannot serve directory /usr/share/nextcloud/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.cgi,index.htm,index.html,index.shtml,index.cgi,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive

ll /usr/share/nextcloud/
je parie qu'il est vide ou mn'a pas D'index....


Code: [Select]
yum remove smeserver-nextcloud nextcloud-src nextcloud
yum remove smeserver-mariadb105* rh-mariadb*
yum remove oniguruma.x86_64 0:6.8.2-2.el7

Mais j'ai effectivement constaté qu'il restait des choses dans /opt/rh/ que je n'ai pas osé supprimer.

Donc suppression de tout ce qu'il y avait dans /opt/rh/ puis
tout ?



Contenu de /var/lib/mysql :
Code: [Select]
[root@kooz1 mysql]# ls -la
total 28748
drwxr-xr-x.  7 mysql mysql     4096 25 juil. 16:09 .
drwxr-xr-x. 51 root  root      4096 30 mars   2018 ..
-rw-rw----   1 mysql mysql    16384 23 juil. 22:17 aria_log.00000001
-rw-rw----   1 mysql mysql       52 23 juil. 22:17 aria_log_control
drwx------   2 mysql mysql    12288 28 nov.   2021 horde
-rw-rw----   1 mysql mysql 18874368 25 juil. 14:05 ibdata1
-rw-rw----   1 mysql mysql  5242880 25 juil. 14:05 ib_logfile0
-rw-rw----   1 mysql mysql  5242880 17 juil. 06:59 ib_logfile1
srwxrwxrwx   1 mysql mysql        0 25 juil. 16:09 mariadb105.sock
drwx------   2 mysql mysql     4096 23 juil. 22:17 mysql
srwxrwxrwx   1 mysql mysql        0 23 juil. 22:18 mysql.sock
-rw-r--r--   1 root  root        14 28 nov.   2021 mysql_upgrade_info
drwx------   2 mysql mysql     8192 30 juin  15:34 nextcloud
drwx------   2 mysql mysql     4096 28 nov.   2021 performance_schema
-r--------   1 root  root       288 18 juil. 11:05 set.password
-r--------   1 root  root       157 18 juil. 11:27 set.password2
drwx------   2 mysql mysql        6 28 nov.   2021 test
Suppression de mariadb105.sock et du répertoire nextcloud.
as tu verifié que maraidb ne tournait pas avant de faire cela ?
pourquoi ton repertoire nextcloud de mariadb55 ?


signal-event post-upgrade; signal-event reboot &
inutile

Réinstallation de nextcloud. Accès impossible avec la même erreur.
Et :
Code: [Select]
[root@kooz1 ~]# tail -f /var/log/httpd/error_log
[Mon Jul 25 16:36:36.980507 2022] [mpm_prefork:notice] [pid 2783] AH00171: Graceful restart requested, doing restart
[Mon Jul 25 16:36:37.004703 2022] [ssl:warn] [pid 2783] AH01909: RSA certificate configured for od.fr:443 does NOT include an ID which matches the server name
[Mon Jul 25 16:36:37.005025 2022] [mpm_prefork:notice] [pid 2783] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Mon Jul 25 16:36:37.005034 2022] [core:notice] [pid 2783] AH00094: Command line: '/usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND'
[Mon Jul 25 16:37:27.355827 2022] [autoindex:error] [pid 4692] [client 192.168.64.101:33156] AH01276: Cannot serve directory /usr/share/nextcloud/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.cgi,index.htm,index.html,index.shtml,index.cgi,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive
je suis pas étonné, tu as toujours pas été voir le dossier que le log te pointait ... un peu de methode...



Jul 25 16:36:36 kooz1 esmith::event[4484]: Job for mariadb105-mariadb.service failed because a configured resource limit was exceeded. See "systemctl status mariadb105-mariadb.service" and "journalctl -xe" for details.
Jul 25 16:36:36 kooz1 esmith::event[4484]: serviceControl: Couldn't system( /usr/bin/systemctl restart mariadb105-mariadb.service): Aucun fichier ou dossier de ce type
Jul 25 16:36:36 kooz1 esmith::event[4484]: adjusting non-supervised mariadb105-mysql.init (restart)
Jul 25 16:36:36 kooz1 esmith::event[4484]: A dependency job for mariadb105-mysql.init.service failed. See 'journalctl -xe' for details.
Jul 25 16:36:36 kooz1 esmith::event[4484]: serviceControl: Couldn't system( /usr/bin/systemctl restart mariadb105-mysql.init.service): Aucun fichier ou dossier de ce type
[/code]
hum
que dit 
le bon path devrait etre mariadb105-mysql.init.service
ya  un bug la



Code: [Select]
Jul 25 16:36:37 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S91nextcloud-conf
Jul 25 16:36:37 kooz1 esmith::event[4484]: parse error: Invalid numeric literal at line 1, column 6
Jul 25 16:36:37 kooz1 esmith::event[4484]: parse error: Invalid numeric literal at line 1, column 6
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mariadb105.sock' (2)
Jul 25 16:36:37 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:37 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: Could not open input file: occ
Jul 25 16:36:38 kooz1 esmith::event[4484]: S91nextcloud-conf=action|Event|temp|Action|S91nextcloud-conf|Start|1658759797 42519|End|1658759798 357035|Elapsed|1.314516
Jul 25 16:36:38 kooz1 esmith::event[4484]: Running event handler: /etc/e-smith/events/temp/S92nextcloud-occ-conf
Jul 25 16:36:38 kooz1 esmith::event[4484]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/temp/S92nextcloud-occ-conf line 48.
Jul 25 16:36:38 kooz1 esmith::event[4484]: S92nextcloud-occ-conf=action|Event|temp|Action|S92nextcloud-occ-conf|Start|1658759798 357307|End|1658759798 864793|Elapsed|0.507486|Status|256
Jul 25 16:38:32 kooz1 kernel: [  517.765448] conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.
Jul 25 16:38:32 kooz1 kernel: conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.
rien de neuf la on sait deja que mariadb tourne pas et que nextcloud a jamais été reinstallé dans le dossier  /usr/share/nextcloud/ vu le message de httpd, meme si tu as pas encore été le verifier.




Et :
Code: [Select]
[root@kooz1 ~]# systemctl status mariadb105-mariadb.service
● mariadb105-mariadb.service - Mariadb 105 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb105-mariadb.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since lun. 2022-07-25 16:36:37 CEST; 19min ago

juil. 25 16:36:37 kooz1.od.fr systemd[1]: mariadb105-mariadb.service failed to run 'start-pre' task: No such file or directory

Et journalctl :
Code: [Select]
[root@kooz1 ~]# journalctl -xe
-- Subject: L'unité (unit) httpd-e-smith.service a commencé à recharger sa configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) httpd-e-smith.service a commencé à recharger sa configuration.
juil. 25 16:53:30 kooz1.od.fr systemd[1]: Reloaded httpd-e-smith The Koozali SME Server Apache HTTP Service.
-- Subject: L'unité (unit) httpd-e-smith.service a terminé de recharger configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) httpd-e-smith.service a terminé de recharger configuration,
-- avec le résultat done.
juil. 25 16:53:30 kooz1.od.fr esmith::event[5033]: adjusting non-supervised php74-php-fpm (reload-or-restart)
juil. 25 16:53:30 kooz1.od.fr systemd[1]: Reloading The PHP FastCGI Process Manager.
-- Subject: L'unité (unit) php74-php-fpm.service a commencé à recharger sa configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) php74-php-fpm.service a commencé à recharger sa configuration.
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] Reloading in progress ...
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] reloading: execvp("/opt/remi/php74/root/usr/sbin/php-fpm", {"/opt/remi/
juil. 25 16:53:30 kooz1.od.fr systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: L'unité (unit) php74-php-fpm.service a terminé de recharger configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) php74-php-fpm.service a terminé de recharger configuration,
-- avec le résultat done.
juil. 25 16:53:30 kooz1.od.fr esmith::event[5033]: adjust-services=action|Event|nextcloud-update|Action|adjust-services|Start|1
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] using inherited socket fd=7, "/var/run/php-fpm/php74-primary.sock"
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] using inherited socket fd=8, "/var/run/php-fpm/php74.sock"
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] using inherited socket fd=10, "/var/run/php-fpm/php74-nextcloud.sock"
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] fpm is running, pid 1487
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] ready to handle connections
juil. 25 16:53:30 kooz1.od.fr php74-fpm[1487]: [NOTICE] systemd monitor interval set to 10000ms
juil. 25 16:54:01 kooz1.od.fr crond[665]: (*system*) RELOAD (/etc/crontab)
juil. 25 16:55:01 kooz1.od.fr crond[5124]: pam_unix(crond:session): session opened for user root by (uid=0)
juil. 25 16:55:01 kooz1.od.fr CROND[5125]: (root) CMD (/usr/bin/php  /usr/bin/horde-alarms)
juil. 25 16:55:01 kooz1.od.fr php[5125]: DIGEST-MD5 common mech free
juil. 25 16:55:01 kooz1.od.fr CROND[5124]: pam_unix(crond:session): session closed for user root

[root@kooz1 ~]# mysql105
/usr/bin/mysql105: ligne1: /opt/rh/rh-mariadb105/root/usr/bin/mysql: Aucun fichier ou dossier de ce type
/usr/bin/mysqlshow105: ligne1: /opt/rh/rh-mariadb105/root/usr/bin/mysqlshow: Aucun fichier ou dossier de ce type

Encore merci.
tu as mis a terre ton serveur en supprimant des fichiers appartement à des rpm, qui n'ont pas été reinstallé car yum considere ces rpm toujours installés


Offline gieres

  • *
  • 213
  • +0/-0
Re: Nextcloud 24
« Reply #6 on: July 28, 2022, 06:19:00 PM »
J'ai donc réinstallé les 54 paquets dans l'ordre dans lequel ils sont installés par yum.
Puis :
 signal-event nextcloud-update
Et toujours pas d'accès possible à Nextcloud.

Code: [Select]
[root@kooz1 ~]# tail -f /var/log/httpd/error_log
[Thu Jul 28 16:35:29.736273 2022] [ssl:warn] [pid 4686] AH01909: RSA certificate configured for mon-domaine.fr:443 does NOT include an ID which matches the server name
[Thu Jul 28 16:35:29.736565 2022] [mpm_prefork:notice] [pid 4686] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Thu Jul 28 16:35:29.736582 2022] [core:notice] [pid 4686] AH00094: Command line: '/usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND'
[Thu Jul 28 16:35:34.739036 2022] [mpm_prefork:notice] [pid 4686] AH00171: Graceful restart requested, doing restart
[Thu Jul 28 16:35:34.760825 2022] [ssl:warn] [pid 4686] AH01909: RSA certificate configured for odion-psygrenoble.fr:443 does NOT include an ID which matches the server name
[Thu Jul 28 16:35:34.761103 2022] [mpm_prefork:notice] [pid 4686] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Thu Jul 28 16:35:34.761111 2022] [core:notice] [pid 4686] AH00094: Command line: '/usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -D FOREGROUND'
[Thu Jul 28 16:35:45.773011 2022] [autoindex:error] [pid 7702] [client 192.168.64.104:57422] AH01276: Cannot serve directory /usr/share/nextcloud/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.cgi,index.htm,index.html,index.shtml,index.cgi,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive
[Thu Jul 28 16:41:42.502786 2022] [autoindex:error] [pid 7701] [client 192.168.64.104:45670] AH01276: Cannot serve directory /usr/share/nextcloud/: No matching DirectoryIndex (index.htm,index.html,index.shtml,index.cgi,index.htm,index.html,index.shtml,index.cgi,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive
[Thu Jul 28 16:52:08.620841 2022] [core:error] [pid 7703] [client 185.7.214.104:52340] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1

Rien de changé.

Code: [Select]
[root@kooz1 ~]# ll /usr/share/nextcloud/
total 0
drwxrwxr-x 2 www www 24 17 juil. 07:56 config
drwxrwxr-x 2 www www 62 30 juin  15:33 data
Effectivement, il n'y a pas de fichier d'index.

MariadB :
Code: [Select]
[root@kooz1 ~]# mysql105
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.5.9-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> \q
Bye
MariadB fonctionne maintenant.

Code: [Select]
[root@kooz1 ~]# mysqlshow|grep nextcloud
[root@kooz1 ~]# mysqlshow105|grep nextcloud
| nextcloud   

Quote
Tente de faire la commande suivante cela te donnera une idée, j'envisage un message d'erreur que NC est pas installé ou cassé.
Code: [Select]
[root@kooz1 ~]# /usr/bin/occ user:list --output json
Could not open input file: occ

Quote
ou le dossier config de nextcloud est resté en place empêchant le reste de l'installation
Donc j'ai renommé le fichier /usr/share/nextcloud/config/config.php en .php.old et j'ai fait la réinstallation de nextcloud-src et de smeserver-nextcloud.
Le fichier conf.php n'a pas été recréé.
J'ai remis conf.php en place.

Les journaux de mariadb, php.nextcloud.errors.log et php.errors.log sont vides.
Dans le journal de yum, il n'y a rien de spécial.
Et dans le journal des messages, il n'y a que cette erreur JSON déjà vue.
Code: [Select]
Jul 28 17:41:20 kooz1 yum[8760]: Installed: nextcloud-src-24.0.2-3.el7.sme.noarch
Jul 28 17:41:20 kooz1 esmith::event[8787]: Processing event: temp
Jul 28 17:41:20 kooz1 esmith::event[8787]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 28 17:41:20 kooz1 esmith::event[8787]: generic_template_expand=action|Event|temp|Action|generic_template_expand|Start|1659022880 623349|End|1659022880 690615|Elapsed|0.067266
Jul 28 17:41:20 kooz1 esmith::event[8787]: Running event handler: /etc/e-smith/events/temp/S88systemd-default
Jul 28 17:41:22 kooz1 esmith::event[8787]: S88systemd-default=action|Event|temp|Action|S88systemd-default|Start|1659022880 691055|End|1659022882 82831|Elapsed|1.391776
Jul 28 17:41:22 kooz1 esmith::event[8787]: Running event handler: /etc/e-smith/events/temp/S89systemd-reload
Jul 28 17:41:22 kooz1 esmith::event[8787]: S89systemd-reload=action|Event|temp|Action|S89systemd-reload|Start|1659022882 83132|End|1659022882 150993|Elapsed|0.067861
Jul 28 17:41:22 kooz1 esmith::event[8787]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 28 17:41:22 kooz1 esmith::event[8787]: adjust-services=action|Event|temp|Action|adjust-services|Start|1659022882 151321|End|1659022882 221024|Elapsed|0.069703
Jul 28 17:41:55 kooz1 yum[9096]: Installed: smeserver-nextcloud-1.2.0-17.el7.sme.noarch
Jul 28 17:41:56 kooz1 esmith::event[9118]: Processing event: temp
Jul 28 17:41:56 kooz1 esmith::event[9118]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 28 17:41:56 kooz1 esmith::event[9118]: expanding /etc/crontab
Jul 28 17:41:56 kooz1 esmith::event[9118]: expanding /etc/httpd/conf/httpd.conf
Jul 28 17:41:56 kooz1 esmith::event[9118]: expanding /etc/opt/remi/php74/php.d/20-opcache.ini
Jul 28 17:41:56 kooz1 esmith::event[9118]: expanding /etc/opt/remi/php74/php-fpm.d/www.conf
Jul 28 17:41:56 kooz1 esmith::event[9118]: expanding /etc/dar/DailyBackup.dcf
Jul 28 17:41:56 kooz1 esmith::event[9118]: generic_template_expand=action|Event|temp|Action|generic_template_expand|Start|1659022916 372280|End|1659022916 837846|Elapsed|0.465566
Jul 28 17:41:56 kooz1 esmith::event[9118]: Running event handler: /etc/e-smith/events/temp/S88systemd-default
Jul 28 17:41:58 kooz1 esmith::event[9118]: S88systemd-default=action|Event|temp|Action|S88systemd-default|Start|1659022916 838107|End|1659022918 153015|Elapsed|1.314908
Jul 28 17:41:58 kooz1 esmith::event[9118]: Running event handler: /etc/e-smith/events/temp/S89systemd-reload
Jul 28 17:41:58 kooz1 esmith::event[9118]: S89systemd-reload=action|Event|temp|Action|S89systemd-reload|Start|1659022918 153336|End|1659022918 231223|Elapsed|0.077887
Jul 28 17:41:58 kooz1 esmith::event[9118]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 28 17:41:58 kooz1 esmith::event[9118]: adjusting non-supervised httpd-e-smith (start)
Jul 28 17:41:58 kooz1 esmith::event[9118]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 28 17:41:58 kooz1 esmith::event[9118]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 28 17:41:58 kooz1 esmith::event[9118]: adjust-services=action|Event|temp|Action|adjust-services|Start|1659022918 231536|End|1659022918 413588|Elapsed|0.182052
Jul 28 17:41:58 kooz1 esmith::event[9118]: Running event handler: /etc/e-smith/events/temp/S91nextcloud-conf
Jul 28 17:41:58 kooz1 esmith::event[9118]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:41:58 kooz1 esmith::event[9118]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:41:58 kooz1 esmith::event[9118]: Could not open input file: occ
Jul 28 17:41:59 kooz1 esmith::event[9118]: Could not open input file: occ
Jul 28 17:41:59 kooz1 esmith::event[9118]: Could not open input file: occ
Jul 28 17:41:59 kooz1 esmith::event[9118]: Could not open input file: occ
Jul 28 17:41:59 kooz1 esmith::event[9118]: Could not open input file: occ
Jul 28 17:41:59 kooz1 esmith::event[9118]: S91nextcloud-conf=action|Event|temp|Action|S91nextcloud-conf|Start|1659022918 413841|End|1659022919 526035|Elapsed|1.112194
Jul 28 17:41:59 kooz1 esmith::event[9118]: Running event handler: /etc/e-smith/events/temp/S92nextcloud-occ-conf
Jul 28 17:41:59 kooz1 esmith::event[9118]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/temp/S92nextcloud-occ-conf line 48.
Jul 28 17:41:59 kooz1 esmith::event[9118]: S92nextcloud-occ-conf=action|Event|temp|Action|S92nextcloud-occ-conf|Start|1659022919 526333|End|1659022919 824828|Elapsed|0.298495|Status|256
Jul 28 17:42:08 kooz1 esmith::event[9456]: Processing event: nextcloud-update
Jul 28 17:42:08 kooz1 esmith::event[9456]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 28 17:42:08 kooz1 esmith::event[9456]: expanding /etc/crontab
Jul 28 17:42:08 kooz1 esmith::event[9456]: expanding /etc/httpd/conf/httpd.conf
Jul 28 17:42:08 kooz1 esmith::event[9456]: expanding /etc/opt/remi/php74/php-fpm.d/www.conf
Jul 28 17:42:08 kooz1 esmith::event[9456]: expanding /etc/opt/remi/php74/php.d/20-opcache.ini
Jul 28 17:42:08 kooz1 esmith::event[9456]: generic_template_expand=action|Event|nextcloud-update|Action|generic_template_expand|Start|1659022928 15412|End|1659022928 462442|Elapsed|0.44703
Jul 28 17:42:08 kooz1 esmith::event[9456]: Running event handler: /etc/e-smith/events/nextcloud-update/S20nextcloud-conf
Jul 28 17:42:08 kooz1 esmith::event[9456]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:42:08 kooz1 esmith::event[9456]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:42:09 kooz1 esmith::event[9456]: Could not open input file: occ
Jul 28 17:42:09 kooz1 esmith::event[9456]: Could not open input file: occ
Jul 28 17:42:09 kooz1 esmith::event[9456]: Could not open input file: occ
Jul 28 17:42:09 kooz1 esmith::event[9456]: Could not open input file: occ
Jul 28 17:42:09 kooz1 esmith::event[9456]: Could not open input file: occ
Jul 28 17:42:09 kooz1 esmith::event[9456]: S20nextcloud-conf=action|Event|nextcloud-update|Action|S20nextcloud-conf|Start|1659022928 462698|End|1659022929 611503|Elapsed|1.148805
Jul 28 17:42:09 kooz1 esmith::event[9456]: Running event handler: /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf
Jul 28 17:42:09 kooz1 esmith::event[9456]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf line 48.
Jul 28 17:42:09 kooz1 esmith::event[9456]: S30nextcloud-occ-conf=action|Event|nextcloud-update|Action|S30nextcloud-occ-conf|Start|1659022929 611814|End|1659022929 955056|Elapsed|0.343242|Status|256
Jul 28 17:42:09 kooz1 esmith::event[9456]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 28 17:42:10 kooz1 esmith::event[9456]: adjusting non-supervised httpd-e-smith (start)
Jul 28 17:42:10 kooz1 esmith::event[9456]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 28 17:42:10 kooz1 esmith::event[9456]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 28 17:42:10 kooz1 esmith::event[9456]: adjust-services=action|Event|nextcloud-update|Action|adjust-services|Start|1659022929 955288|End|1659022930 121640|Elapsed|0.166352
Jul 28 17:42:11 kooz1 esmith::event[9606]: Processing event: nextcloud-update
Jul 28 17:42:11 kooz1 esmith::event[9606]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 28 17:42:11 kooz1 esmith::event[9606]: expanding /etc/crontab
Jul 28 17:42:11 kooz1 esmith::event[9606]: expanding /etc/httpd/conf/httpd.conf
Jul 28 17:42:11 kooz1 esmith::event[9606]: expanding /etc/opt/remi/php74/php-fpm.d/www.conf
Jul 28 17:42:11 kooz1 esmith::event[9606]: expanding /etc/opt/remi/php74/php.d/20-opcache.ini
Jul 28 17:42:11 kooz1 esmith::event[9606]: generic_template_expand=action|Event|nextcloud-update|Action|generic_template_expand|Start|1659022931 224537|End|1659022931 713027|Elapsed|0.48849
Jul 28 17:42:11 kooz1 esmith::event[9606]: Running event handler: /etc/e-smith/events/nextcloud-update/S20nextcloud-conf
Jul 28 17:42:11 kooz1 esmith::event[9606]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:42:12 kooz1 esmith::event[9606]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:42:12 kooz1 esmith::event[9606]: Could not open input file: occ
Jul 28 17:42:12 kooz1 esmith::event[9606]: Could not open input file: occ
Jul 28 17:42:12 kooz1 esmith::event[9606]: Could not open input file: occ
Jul 28 17:42:12 kooz1 esmith::event[9606]: Could not open input file: occ
Jul 28 17:42:12 kooz1 esmith::event[9606]: Could not open input file: occ
Jul 28 17:42:12 kooz1 esmith::event[9606]: S20nextcloud-conf=action|Event|nextcloud-update|Action|S20nextcloud-conf|Start|1659022931 713292|End|1659022932 794747|Elapsed|1.081455
Jul 28 17:42:12 kooz1 esmith::event[9606]: Running event handler: /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf
Jul 28 17:42:13 kooz1 esmith::event[9606]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf line 48.
Jul 28 17:42:13 kooz1 esmith::event[9606]: S30nextcloud-occ-conf=action|Event|nextcloud-update|Action|S30nextcloud-occ-conf|Start|1659022932 795000|End|1659022933 92128|Elapsed|0.297128|Status|256
Jul 28 17:42:13 kooz1 esmith::event[9606]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 28 17:42:13 kooz1 esmith::event[9606]: adjusting non-supervised httpd-e-smith (start)
Jul 28 17:42:13 kooz1 esmith::event[9606]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 28 17:42:13 kooz1 esmith::event[9606]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 28 17:42:13 kooz1 esmith::event[9606]: adjust-services=action|Event|nextcloud-update|Action|adjust-services|Start|1659022933 92398|End|1659022933 250229|Elapsed|0.157831
Jul 28 17:48:02 kooz1 esmith::event[9728]: Processing event: nextcloud-update
Jul 28 17:48:02 kooz1 esmith::event[9728]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 28 17:48:02 kooz1 esmith::event[9728]: expanding /etc/crontab
Jul 28 17:48:02 kooz1 esmith::event[9728]: expanding /etc/httpd/conf/httpd.conf
Jul 28 17:48:02 kooz1 esmith::event[9728]: expanding /etc/opt/remi/php74/php-fpm.d/www.conf
Jul 28 17:48:02 kooz1 esmith::event[9728]: expanding /etc/opt/remi/php74/php.d/20-opcache.ini
Jul 28 17:48:02 kooz1 esmith::event[9728]: generic_template_expand=action|Event|nextcloud-update|Action|generic_template_expand|Start|1659023282 89032|End|1659023282 506728|Elapsed|0.417696
Jul 28 17:48:02 kooz1 esmith::event[9728]: Running event handler: /etc/e-smith/events/nextcloud-update/S20nextcloud-conf
Jul 28 17:48:02 kooz1 esmith::event[9728]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:48:02 kooz1 esmith::event[9728]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:48:03 kooz1 esmith::event[9728]: Could not open input file: occ
Jul 28 17:48:03 kooz1 esmith::event[9728]: Could not open input file: occ
Jul 28 17:48:03 kooz1 esmith::event[9728]: Could not open input file: occ
Jul 28 17:48:03 kooz1 esmith::event[9728]: Could not open input file: occ
Jul 28 17:48:03 kooz1 esmith::event[9728]: Could not open input file: occ
Jul 28 17:48:03 kooz1 esmith::event[9728]: S20nextcloud-conf=action|Event|nextcloud-update|Action|S20nextcloud-conf|Start|1659023282 506989|End|1659023283 584862|Elapsed|1.077873
Jul 28 17:48:03 kooz1 esmith::event[9728]: Running event handler: /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf
Jul 28 17:48:03 kooz1 esmith::event[9728]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf line 48.
Jul 28 17:48:03 kooz1 esmith::event[9728]: S30nextcloud-occ-conf=action|Event|nextcloud-update|Action|S30nextcloud-occ-conf|Start|1659023283 585130|End|1659023283 884174|Elapsed|0.299044|Status|256
Jul 28 17:48:03 kooz1 esmith::event[9728]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 28 17:48:03 kooz1 esmith::event[9728]: adjusting non-supervised httpd-e-smith (start)
Jul 28 17:48:03 kooz1 esmith::event[9728]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 28 17:48:04 kooz1 esmith::event[9728]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 28 17:48:04 kooz1 esmith::event[9728]: adjust-services=action|Event|nextcloud-update|Action|adjust-services|Start|1659023283 884489|End|1659023284 40025|Elapsed|0.155536
Jul 28 17:48:05 kooz1 esmith::event[9820]: Processing event: nextcloud-update
Jul 28 17:48:05 kooz1 esmith::event[9820]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jul 28 17:48:05 kooz1 esmith::event[9820]: expanding /etc/crontab
Jul 28 17:48:06 kooz1 esmith::event[9820]: expanding /etc/httpd/conf/httpd.conf
Jul 28 17:48:06 kooz1 esmith::event[9820]: expanding /etc/opt/remi/php74/php-fpm.d/www.conf
Jul 28 17:48:06 kooz1 esmith::event[9820]: expanding /etc/opt/remi/php74/php.d/20-opcache.ini
Jul 28 17:48:06 kooz1 esmith::event[9820]: generic_template_expand=action|Event|nextcloud-update|Action|generic_template_expand|Start|1659023285 924311|End|1659023286 356239|Elapsed|0.431928
Jul 28 17:48:06 kooz1 esmith::event[9820]: Running event handler: /etc/e-smith/events/nextcloud-update/S20nextcloud-conf
Jul 28 17:48:06 kooz1 esmith::event[9820]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:48:06 kooz1 esmith::event[9820]: parse error: Invalid numeric literal at line 1, column 6
Jul 28 17:48:06 kooz1 esmith::event[9820]: Could not open input file: occ
Jul 28 17:48:07 kooz1 esmith::event[9820]: Could not open input file: occ
Jul 28 17:48:07 kooz1 esmith::event[9820]: Could not open input file: occ
Jul 28 17:48:07 kooz1 esmith::event[9820]: Could not open input file: occ
Jul 28 17:48:07 kooz1 esmith::event[9820]: Could not open input file: occ
Jul 28 17:48:07 kooz1 esmith::event[9820]: S20nextcloud-conf=action|Event|nextcloud-update|Action|S20nextcloud-conf|Start|1659023286 356495|End|1659023287 448161|Elapsed|1.091666
Jul 28 17:48:07 kooz1 esmith::event[9820]: Running event handler: /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf
Jul 28 17:48:07 kooz1 esmith::event[9820]: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "Could not open input...") at /etc/e-smith/events/nextcloud-update/S30nextcloud-occ-conf line 48.
Jul 28 17:48:07 kooz1 esmith::event[9820]: S30nextcloud-occ-conf=action|Event|nextcloud-update|Action|S30nextcloud-occ-conf|Start|1659023287 448449|End|1659023287 746922|Elapsed|0.298473|Status|256
Jul 28 17:48:07 kooz1 esmith::event[9820]: Running event handler: /etc/e-smith/events/actions/adjust-services
Jul 28 17:48:07 kooz1 esmith::event[9820]: adjusting non-supervised httpd-e-smith (start)
Jul 28 17:48:07 kooz1 esmith::event[9820]: adjusting non-supervised httpd-e-smith (sigusr1)
Jul 28 17:48:07 kooz1 esmith::event[9820]: adjusting non-supervised php74-php-fpm (reload-or-restart)
Jul 28 17:48:07 kooz1 esmith::event[9820]: adjust-services=action|Event|nextcloud-update|Action|adjust-services|Start|1659023287 747173|End|1659023287 898340|Elapsed|0.151167

...
A suivre ?



Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud 24
« Reply #7 on: July 29, 2022, 04:14:59 AM »
enleve le dossier nextcloud au comple avant de lancer l’installation. 

mv /usr/share/nextcloud /usr/share/nextcloud.old


puis lance l’installation. 

le probleme avec l’ancienne facon de faire (rpm nextcloud) est qu’il ne faut surtout pas desinstaller ce rpm car il supprime tous les fichiers d’origine incluant s’ils ont ete mis à jour. 
à partir de ce moment tu te retrouve avec une installation instable, car la base de donnée n’est plus au niveau version des des fichiers du nextcloud.rpm ni à la version du nouveau nextcloud-src.

si tu regarde bien le wiki, il y’a une section au sujet de ce rpm. 

pour faire une installation propre:
- retirer/ deplacer le dossier /usr/share/nextcloud
- retirer les db nextcloud de mariadb et mariadb105
- retirer les users nextcloud de ces memes serveur mariadb. phpmyadmin peut aider. un backup peut etre envisagé au besoin.
- retirer/ deplacer /home/e-smith/files/nextcloud
- retirer l’entrée nextcloud de la db nextcloud.  (en faire une copie au besoin)

- si tu veux reutiliser l’installation que tu avais avant de daire tout cela alternativement il faut regarder la version dans le fichier config et telecharger le tar.gz de nextcloud de cette version exactement et la mettre dans /usr/share/nextcloud puis la rendre lisible par www