# prepare your os and install ansible
curl -s https://raw.githubusercontent.com/ReinerNippes/nextcloud/nextcloud-reloaded/prepare_system.sh | /bin/bash
# clone this repo
git clone --branch nextcloud-reloaded https://github.com/ReinerNippes/nextcloud
# change to nextcloud directory
cd nextcloud
# edit variables
vim inventory
# run the playbook
./nextcloud.yml
Naja, ganz so easy ist es dann doch nicht.
Was sind die Grundvoraussetzungen damt es es ĂŒberhaupt losgehen kann?
Mir genĂŒgt vorerst IPv4.
Bei mir:
vServer im Zugriff, Debian 10.5 (default) ist installiert, IPv4 und Subdomain ist vorhanden.
Was fehlt mich noch?
h ttps://github.com/ReinerNippes/nextcloud/tree/nextcloud-reloaded
Fehlermeldung im Browser aufgerufen:
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.
Hallo, wie löse ich das Problem?
Wo finde ich die richtige server log.?
Mein System ist ein Debian 10.5.
Alle Einstellungen default von Reiner_Nippes, nur die Domain wurde angepaĂt.
eine testinstallation auf einer aws ec2 mit debian-10-amd64-20200803-347 (ami-05c0d7f3fffb419c8) hat gerade zu folgendem output meines playbooks gefĂŒhrt:
TASK [check install status] ************************************************************************************************************************************************************************************************************************************************************************************************************************
Saturday 22 August 2020 13:36:15 +0000 (0:00:00.569) 0:05:28.707 *******
ok: [localhost]
TASK [We are ready] ********************************************************************************************************************************************************************************************************************************************************************************************************************************
Saturday 22 August 2020 13:36:16 +0000 (0:00:00.927) 0:05:29.635 *******
ok: [localhost] => changed=false
msg:
- Your Nextcloud 19.0.1.1 at https://**** is ready.
- 'Login with user: admin and password: L4eHUcLKTkLPCsjC6U9Dsc1M5lNv4aDx '
- 'Other secrets you''ll find in the directory ~/.nextcloud '
PLAY RECAP *****************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost : ok=110 changed=66 unreachable=0 failed=0 skipped=60 rescued=0 ignored=0
Saturday 22 August 2020 13:36:16 +0000 (0:00:00.023) 0:05:29.659 *******
===============================================================================
first setup nextcloud ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 52.14s
install nextcloud -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 36.30s
nextcloud : install additional packages ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 34.45s
apt install postgresql-11 with update ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 32.31s
install needed php packages ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 28.57s
set nextcloud domain config.php values ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 17.22s
php : apt dist-upgrade ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9.69s
tls-certificate : get certificates ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9.26s
download nextcloud archive ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 9.23s
nextcloud : backup jobs, upgrade apps and database tuning ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7.67s
os : install additional packages ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 5.44s
install fail2ban packages ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.27s
os : reload ufw ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 4.17s
os : install ufw ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 4.13s
redis : install additional packages --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.79s
webserver : install additional packages ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.40s
postgres : ensure all configured locales are present. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.89s
nextcloud : install apps -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.79s
webserver : add additional nginx repo ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.77s
add postgres repo key ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.68s
der schritt TASK [check install status] ist ein installationsprĂŒfungsschritt. ok: [localhost] bedeutet, dass unter der adresse url: https://{{ nextcloud_fqdn }}/status.php ein webserver korrekt antwortet. dann bekommst du die oben angezeigt glĂŒckwunschmeldung angezeigt. und kannst dich als admin mit dem password anmelden.
wenn nicht, steht da: "Upss. Something went wrong."
was stand denn bei dir auf dem bildschirm?
â wir schauen mal in /var/log/nginx/nextcloud.error.log oder so Ă€hnlich. das hĂ€ngt von der nginx config ab.
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.
systemctl status php7.4-fpm.service
â php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-08-22 16:40:05 CEST; 1min 20s ago
Docs: man:php-fpm7.4(8)
Process: 687 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
Main PID: 452 (php-fpm7.4)
Status: "Processes active: 0, idle: 20, Requests: 0, slow: 0, Traffic: 0req/sec"
Tasks: 21 (limit: 1056)
Memory: 88.0M
CGroup: /system.slice/php7.4-fpm.service
ââ452 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
ââ667 php-fpm: pool www
ââ668 php-fpm: pool www
ââ669 php-fpm: pool www
ââ670 php-fpm: pool www
ââ671 php-fpm: pool www
ââ672 php-fpm: pool www
ââ673 php-fpm: pool www
ââ674 php-fpm: pool www
ââ675 php-fpm: pool www
ââ676 php-fpm: pool www
ââ677 php-fpm: pool www
ââ678 php-fpm: pool www
ââ679 php-fpm: pool www
ââ680 php-fpm: pool www
ââ681 php-fpm: pool www
ââ682 php-fpm: pool www
ââ683 php-fpm: pool www
ââ684 php-fpm: pool www
ââ685 php-fpm: pool www
ââ686 php-fpm: pool www
Aug 22 16:39:54 debian10 systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Aug 22 16:40:05 debian10 systemd[1]: Started The PHP 7.4 FastCGI Process Manager.
im Browser Webadresse aufgerufen:
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.
Welche Protokolle / Ports mĂŒssen in der Firewall zwingend freigeschaltet sein?
Welche Protokolle / Ports mĂŒssen in der Firewall zwingend freigeschaltet sein?
Dazu gibt es jede menge Dokumentationen in Internet. Kleiner Warnhinweis. Wenn du falsche angaben machst bei der Firewall (UFW) sperrst du dich wohl möglich aus.
Das gleiche kann dir auch bei Fail2ban passieren.
Und wegen dein. [Internal Server Error]
Wenn du noch zugriff hast geh mal in de NC config
und Àndere kurzfristig die zwei zeilen in
âmemcache.localâ => â\OC\Memcache\APCuâ,
âmemcache.lockingâ => â\OC\Memcache\APCuâ,
das wĂ€re - glaube ich - auch keine gute idee. das playbook ist dafĂŒr geschrieben auf einer möglichst ânacktenâ linux installation einen kompletten stack fĂŒr nextcloud zu installieren. in dem fall inklusive docker. auf deiner synology ist aber vieles schon installiert und vieleicht anderes. (andere pfade, usw.) im schlimmsten fall geht danach nix mehr. wĂŒrde ich nicht testen wollen.
was man vielleicht machen könnte:
gibt es bei der synology die möglichkeit sich remote bei dem docker daemon anzumelden? dann könnte man vielleicht bei den docker_container: tasks den parameter docker_host hinzufĂŒgen. aber man mĂŒsste alle os related tasks ausbauen.