NCP Backingup issues

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

NextcloudPi version v1.35.0
Operating system and version (eg, Ubuntu 20.04): Raspbian GNU/Linux 10 (buster)
Apache or nginx version : Server version: Apache/2.4.38 (Raspbian)
PHP version (eg, 7.4): 7.3.27-1~deb10u1

The issue you are facing:

I installed PiHole on the same RPi as my NCP is installed on.
I now have no access to NCP WUI
The only way I can access my ncp instance is via SSH on my local network.
I am happy to demolish the whole thing and start fresh instance.
Need to backup.

Trying to backup NCP to an external HD
My DataDir is also on (separate) external HD
Here is what returns from NCP

Running nc-backup
Error reading data directory. Is NextCloud running and configured?

Also the system info shows that

MariaDB service down; 
Nextcloud check error; 
NAT loopback no

Is this the first time you’ve seen this error? (Y/N): Y - never backed up before…

Steps to replicate it:

  1. ncp-config
  2. nc-backup
  3. set the target directory on external HD(to store the backup)
  4. select start
  5. the above error message appears

The output of your Nextcloud log in Admin > Logging:

Not sure where to get these logs??

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    1 => '192.168.1.94',
    11 => '31.127.159.21',
    2 => 'xxxxxxx.xxxx.xxx',
    3 => 'xxxxx.xxxxx.xxx',
    12 => 'xxxxx.xxxx.xxxx',
    20 => 'https://xxxxx.xxxx.xxxx',
    13 => 'xxxxx.xxxx.xx',
  ),
  'datadirectory' => '/media/segate-external-1T/ncdata',
  'dbtype' => 'mysql',
  'version' => '19.0.2.2',
  'overwrite.cli.url' => 'https://sherab.ddns.net/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'installed' => true,
  'instanceid' => 'ochvelgsn5v1',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  ),
  'tempdirectory' => '/media/segate-external-1T/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'xxxxxxxxxxxxx',
  'mail_domain' => 'xxxxxxxx',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',

At the moment PasteBin thinks the logs i pasted are questionable and will not allow you to see them.
Paste bin for few of the /var/log/apache2/ log files
error.log
other_vhosts_access.log
nc-access.log

Here’s 10 line of error.log

[Fri Apr 02 00:00:01.978227 2021] [ssl:warn] [pid 819:tid 3069407760] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Apr 02 00:00:01.979728 2021] [mpm_event:notice] [pid 819:tid 3069407760] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Apr 02 00:00:01.979772 2021] [core:notice] [pid 819:tid 3069407760] AH00094: Command line: '/usr/sbin/apache2'
[Fri Apr 02 15:25:30.703525 2021] [mpm_event:notice] [pid 819:tid 3069407760] AH00491: caught SIGTERM, shutting down
[Fri Apr 02 16:52:37.895962 2021] [ssl:warn] [pid 613:tid 3069973008] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Apr 02 16:52:37.941509 2021] [ssl:warn] [pid 776:tid 3069973008] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Apr 02 16:52:37.947247 2021] [mpm_event:notice] [pid 776:tid 3069973008] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Apr 02 16:52:37.947355 2021] [core:notice] [pid 776:tid 3069973008] AH00094: Command line: '/usr/sbin/apache2'
 

This seems to have broken your install.
I dont know pihole, so maybe ask their forum, or provide more info on what steps you took or script you used?

I don’t have PiHole installed yet, but plan to do so some time in the future. Therefore, I have done some minimal research. As far as I know, there is some interference and if I’m not mistaken, it is recommendable to use docker to install PiHole and set up a reverse proxy as both uses the same port.
Not sure that helps