[Eisfair] [E1 4.9.210-eisfair-64-VIRT] NextCloud einrichten

Martin Faderbauer martin at fmit.at
Mi Okt 27 12:23:30 CEST 2021


hallo Marcus

ich bin einen schritt weiter.

wenn ich bei der eisconfig mit F4 die erweiterten Optionen einschalte 
und bei der Mysql config bei HOST = "localhost" verwende bassier der Error
wenn ich bei HOST = "127.0.0.1" eintrage den geht die Config durch.
> Configuration file was saved as nextcloud.2021-10-27-12-03-39 in /etc/backup.d.
> 
> Activate configuration now (y/n) [yes]? y
> nextcloud version (eisfair-64): 1.10.3
> Database type  : mysql (mariadb-client)
> Database server: 127.0.0.1:3306
> Before TRUSTED_DOMAIN:
> Trusted domain(s): eis.lan.fli4l www.artmoebel.at webmail.artmoebel.at buger.at webmail.buger.at
> nach TRUSTED_DOMAIN:
> Apache2 SSL support: enabled
> check_active_apache_ssl: 0
> MySQL PHP7-WEB support: enabled
> MySQL PHP7-CLI support: enabled
> phpMysql: 0
> MySQL support: enabled
> MySQL binary logging: make sure that ..ACTIVATE_BINLOG='no' is
>                        set on the remote server to prevent errors!
> installMysql: 0
> nach OWNCLOUD_DB_TYPE: 0
> Mail support: enabled
> nach installed_mail: 0
> PHP7-WEB Redis cache: enabled
> PHP7-CLI APC cache: enabled
> PHP7-CLI Redis cache: enabled
> Redis support: enabled
> Before Memory check: 0
> PHP7-WEB memory limit: >= 512M
> PHP7-CLI memory limit: >= 512M
> Memory check: 0
> PHP7-CLI configuration access: possible
> CLI config check: 0
> Get WEB modules: 0
> Get WEB modules: 0
> Loaded CLI modules: 0
> Web: imagick: 0
> CLI: imagick: 0
> Web: intl: 0
> CLI: intl: 0
> Web: opcache: 0
> CLI: opcache: 0
> Web: pcntl: 0
> CLI: pcntl: 0
> initializing nextcloud database ...
> checking sql database user ...
> Please enter the SQL admin user? myecho --pack ${module_name} --info "check_active_apache_ssl: ${config_error}"
>                     if ! check_active_php_mysql
>                     then
>                         config_error=1
>                     fi
> myecho --pack ${module_name} --info "phpMysql: ${config_error}"
> 
>                     if ! check_installed_mysql
>                     then
>                         config_error=1
>                     fi
> myecho --pack ${module_name} --info "installMysql: ${config_error}"
> 
> 
> Please enter the SQL admin password?             case ${OWNCLOUD_DB_TYPE} in
> failed.
> an error appeared while checking sql database user!
> creating logrotate configuration ...
> creating cron script ...
> setting access rights of '/var/www/buger.at/htdocs/nextcloud' ...
>   wait [ ... ]
> setting access rights of '/var/nextcloud' ...
>   wait [ . ]
> checking nextcloud install/upgrade requirements ...
> ERROR 2002 (HY000): Can't connect to MySQL server on '127.0.0.1' (115)
>                                                                                                                                                                    ^[[82;164Rcreating nextcloud configuration ...
> creating cron job ...
> bash: Zeile 1: /var/www/buger.at/htdocs/nextcloud/occ: Keine Berechtigung
> nextcloud maintenance mode: enabled -> disabled
> checking nextcloud install/upgrade requirements ...
> owncloud maintenance mode: enabled
> ----------------------------------------------------------------
> The maintenance mode is still active at this stage!
> You should follow these instructions to solve the problem:
> 
> 1. switch to the webserver user: # su - wwwrun
> 2. change directory            : > cd /var/www/buger.at/htdocs/nextcloud
> 3. check the current directory : > pwd
>                                : /var/www/buger.at/htdocs/nextcloud
> 4. fix the previously described:
>    problems by using occ, e.g. : > ./occ app:disable gallery
>                                : gallery disabled
> 5. run update check            : > ./occ upgrade
>                                : Update successful
> 6. disable the maintenance mode: > ./occ  maintenance:mode --off
>                                : Maintenance mode disabled
> ----------------------------------------------------------------
> finished.
> Configuration messages appeared, please check configuration
> 
> Continue (y/n) [yes]? y

der Server findet sich selber
> sv02 # ping localhost
> PING localhost (127.0.0.1) 56(84) bytes of data.
> 64 Bytes von localhost (127.0.0.1): icmp_seq=1 ttl=64 Zeit=0.044 ms
> 64 Bytes von localhost (127.0.0.1): icmp_seq=2 ttl=64 Zeit=0.040 ms
> 64 Bytes von localhost (127.0.0.1): icmp_seq=3 ttl=64 Zeit=0.062 ms

wiso lauft das nicht mit "localhost" ? ist ja das gleiche


Am 27.10.2021 um 11:59 schrieb Marcus Röckrath:
> Hallo Martin,
> 
> Martin Faderbauer wrote:
> 
>> es Passiert schon ganz oben. gleich nach "TRUSTED_DOMAIN"
> 
> Ja, im DB Check.
> 
>>> MySQL PHP7-WEB support: enabled
>>> MySQL PHP7-CLI support: enabled
>>> MySQL support: nach OWNCLOUD_DB_TYPE: 1
> 
> Wieso OWNCLOUD_DB_TYPE? Typo von dir?
> 
> Hinter MySQL support müsste noch eine Ergebnis kommen.
> 
> Man müsste nun die Funktion check_installed_mysql schrittweise durchgehen,
> wie die bei dir abläuft.
> 


Mehr Informationen über die Mailingliste Eisfair