NextcloudPI on WD EX2 Ultra

ncp
#1

Hey !

I used this script to install Debian on wdex2 ultra.

http://anionix.ddns.net/WDMyCloud/WDMyCloud-Ex2-Ultra/Debian-linux_4.14.4/_info_EN.txt

the only change i’ve made is a partition stage becuse of low memory issue:

mkpart primary 0% 4048 MB \
mkpart primary 4048 MB 8096MB \
mkpart primary 8096MB 100% \

then i run these in ssh:

apt dist-upgrade
apt install curl
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash

but apache2 wont start …

i have private domain ( home.mydomain.com ) … with ports 80 443 open .

during install got this:

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-06-08 11:13:51 UTC; 28ms ago
  Process: 3405 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
  Process: 3412 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 30692 (code=exited, status=0/SUCCESS)

Jun 08 11:13:51 wdmc systemd[1]: Stopped The Apache HTTP Server.
Jun 08 11:13:51 wdmc systemd[1]: Starting The Apache HTTP Server...
Jun 08 11:13:51 wdmc apachectl[3412]: AH00112: Warning: DocumentRoot [/var/…xist
Jun 08 11:13:51 wdmc apachectl[3412]: Action 'start' failed.
Jun 08 11:13:51 wdmc apachectl[3412]: The Apache error log may have more in…ion.
Jun 08 11:13:51 wdmc systemd[1]: apache2.service: Control process exited, c…us=1
Jun 08 11:13:51 wdmc systemd[1]: Failed to start The Apache HTTP Server.
Jun 08 11:13:51 wdmc systemd[1]: apache2.service: Unit entered failed state.
Jun 08 11:13:51 wdmc systemd[1]: apache2.service: Failed with result 'exit-…de'.
Hint: Some lines were ellipsized, use -l to show in full.

looked at error log an found ( /var/log/apache2/error.log )

[Sat Jun 08 11:04:57.700420 2019] [mpm_event:notice] [pid 13539:tid 3069918352] AH00489: Apache/2.4.25 (Debian) configu$[Sat Jun 08 11:04:57.700716 2019] [core:notice] [pid 13539:tid 3069918352] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 08 11:10:27.298725 2019] [mpm_event:notice] [pid 13539:tid 3069918352] AH00491: caught SIGTERM, shutting down
[Sat Jun 08 11:10:27.503788 2019] [mpm_event:notice] [pid 30692:tid 3069897872] AH00489: Apache/2.4.25 (Debian) OpenSSL$[Sat Jun 08 11:10:27.503898 2019] [core:notice] [pid 30692:tid 3069897872] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 08 11:13:51.177959 2019] [mpm_event:notice] [pid 30692:tid 3069897872] AH00491: caught SIGTERM, shutting down
[Sat Jun 08 11:13:51.534207 2019] [ssl:warn] [pid 3415:tid 3069164688] AH01909: localhost:443:0 server certificate does$[Sat Jun 08 11:13:51.534518 2019] [ssl:error] [pid 3415:tid 3069164688] AH02217: ssl_stapling_init_cert: can't retrieve$[Sat Jun 08 11:13:51.534539 2019] [ssl:error] [pid 3415:tid 3069164688] AH02604: Unable to configure certificate localh$[Sat Jun 08 11:13:51.550843 2019] [unique_id:alert] [pid 3415:tid 3069164688] (EAI 2)Name or service not known: AH01564$AH00016: Configuration Failed

ncp-update throw this

root@wdmc:~# ncp-update
Downloading updates
Performing updates
sudo: unable to resolve host wdmc
An unhandled exception has been thrown:
RuntimeException: Could not get appdata folder in /var/www/nextcloud/lib/private/Files/AppData/AppData.php:86
Stack trace:
#0 /var/www/nextcloud/lib/private/Files/AppData/AppData.php(107): OC\Files\AppData\AppData->getAppDataFolder()
#1 /var/www/nextcloud/lib/private/Template/IconsCacher.php(78): OC\Files\AppData\AppData->getFolder('icons')
#2 [internal function]: OC\Template\IconsCacher->__construct(Object(OC\Log), Object(OC\Files\AppData\Factory), Object(OC\URLGenerator), Object(OC\AppFramework\Utility\TimeFactory))
#3 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(81): ReflectionClass->newInstanceArgs(Array)
#4 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#5 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Template\\Ico...')
#6 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Template\\Ico...')
#7 /var/www/nextcloud/lib/private/Server.php(980): OC\ServerContainer->query('OC\\Template\\Ico...')
#8 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#9 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('OC\\Template\\SCS...')
#10 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Template\\SCS...')
#11 /var/www/nextcloud/lib/private/Repair.php(148): OC\ServerContainer->query('OC\\Template\\SCS...')
#12 /var/www/nextcloud/core/register_command.php(143): OC\Repair::getRepairSteps()
#13 /var/www/nextcloud/lib/private/Console/Application.php(118): require_once('/var/www/nextcl...')
#14 /var/www/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#16 {main}
#2

log in debug mode

[    Sat Jun 08 17:52:44.247314 2019] [ssl:info] [pid 7381:tid 3069279376] AH01887: Init: Initializing (virtual) servers for SSL
    [Sat Jun 08 17:52:44.247432 2019] [ssl:info] [pid 7381:tid 3069279376] AH01914: Configuring server localhost:443 for SSL protocol
    [Sat Jun 08 17:52:44.247932 2019] [ssl:debug] [pid 7381:tid 3069279376] ssl_engine_init.c(413): AH01893: Configuring TLS extension handling
    [Sat Jun 08 17:52:44.247975 2019] [ssl:debug] [pid 7381:tid 3069279376] ssl_util_stapling.c(861): AH01960: OCSP stapling initialized
    [Sat Jun 08 17:52:44.248450 2019] [ssl:debug] [pid 7381:tid 3069279376] ssl_util_ssl.c(443): AH02412: [localhost:443] Cert does not match for name 'localhost' [subject: CN$[Sat Jun 08 17:52:44.248476 2019] [ssl:warn] [pid 7381:tid 3069279376] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Sat Jun 08 17:52:44.248490 2019] [ssl:info] [pid 7381:tid 3069279376] AH02568: Certificate and private key localhost:443:0 configured from /etc/ssl/certs/ssl-cert-snakeoi$[Sat Jun 08 17:52:44.248705 2019] [ssl:error] [pid 7381:tid 3069279376] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=wdmc / issuer: CN=$[Sat Jun 08 17:52:44.248724 2019] [ssl:error] [pid 7381:tid 3069279376] AH02604: Unable to configure certificate localhost:443:0 for stapling
    [Sat Jun 08 17:52:44.248746 2019] [ssl:info] [pid 7381:tid 3069279376] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2r
    [Sat Jun 08 17:52:44.248835 2019] [http2:debug] [pid 7381:tid 3069279376] mod_http2.c(112): AH03089: initializing post config dry run
    [Sat Jun 08 17:52:44.262889 2019] [unique_id:alert] [pid 7381:tid 3069279376] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "wdmc"
    AH00016: Configuration Failed