NextcloudPi after installation USB Configuration

NextcloudPi V62.2

new image -> Start -> USB Configuration
nc-automount (green)
nc-format-USB (green)

Move data to USB:

[ nc-automount ]
automount enabled

[ nc-format-USB ]
/dev/sda: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/sda: 8 bytes were erased at offset 0x1d1bf0ffe00 (gpt): 45 46 49 20 50 41 52 54
/dev/sda: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
WARNING: failed to open /dev/btrfs-control, skipping device registration: No such file or directory
Drive sda formatted successfuly and labeled myCloudDrive

[ nc-datadir ]
/media/USBdrive does not exist

Is this a bug or I do something so wrong???
Thanks

Can you share the output of

sudo ncp-report

and

lsblk -f

sudo ncp-report:


<–! Paste this in GitHub report -->

NextCloudPi diagnostics

NextCloudPi version  v0.62.2
NextCloudPi image    NextCloudPi_10-02-18
distribution         Raspbian GNU/Linux 9 \n \l
automount            yes
USB devices          sda
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      2.1G/29G
rootfs usage         2.1G/29G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    14.0.1.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               4min

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "1": "192.168.178.122"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "14.0.1.1",
        "overwrite.cli.url": "http:\/\/localhost\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https"
    }
}

HTTPd logs

[Wed Oct 03 06:47:02.299579 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  ini_s                                                                                                             et(): A session is active. You cannot change the session module's ini settings a                                                                                                             t this time in /var/www/ncp-web/index.php on line 41\nPHP message: PHP Warning:                                                                                                               ini_set(): A session is active. You cannot change the session module's ini sett                                                                                                             ings at this time in /var/www/ncp-web/index.php on line 43\nPHP message: PHP War                                                                                                             ning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /                                                                                                             var/www/ncp-web/L10N.php on line 145\nPHP message: PHP Warning:  fopen(ncp-web.c                                                                                                             fg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.p                                                                                                             hp on line 145\nPHP message: NACHO auto\n - auto\nPHP message: NACHO en\n - auto                                                                                                             \nPHP message: NACHO de\n - auto\nPHP message: NACHO es\n - auto\nPHP message: N                                                                                                             ACHO zh\n - auto\n'
[Wed Oct 03 06:47:03.430184 2018] [proxy_fcgi:error] [pid 871:tid 1708213280] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  touch                                                                                                             (): Utime failed: Permission denied in /var/www/ncp-web/ncp-output.php on line 8                                                                                                             1\n'
[Wed Oct 03 06:47:07.878573 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:47:19.670622 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:47:23.668819 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:47:57.081526 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:47:59.097577 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:08.448349 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  ini_s                                                                                                             et(): A session is active. You cannot change the session module's ini settings a                                                                                                             t this time in /var/www/ncp-web/index.php on line 41\nPHP message: PHP Warning:                                                                                                               ini_set(): A session is active. You cannot change the session module's ini sett                                                                                                             ings at this time in /var/www/ncp-web/index.php on line 43\nPHP message: PHP War                                                                                                             ning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /                                                                                                             var/www/ncp-web/L10N.php on line 145\nPHP message: PHP Warning:  fopen(ncp-web.c                                                                                                             fg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.p                                                                                                             hp on line 145\nPHP message: NACHO auto\n - auto\nPHP message: NACHO en\n - auto                                                                                                             \nPHP message: NACHO de\n - auto\nPHP message: NACHO es\n - auto\nPHP message: N                                                                                                             ACHO zh\n - auto\n'
[Wed Oct 03 06:49:09.563338 2018] [proxy_fcgi:error] [pid 871:tid 1716614176] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  touch                                                                                                             (): Utime failed: Permission denied in /var/www/ncp-web/ncp-output.php on line 8                                                                                                             1\n'
[Wed Oct 03 06:49:13.971835 2018] [proxy_fcgi:error] [pid 871:tid 1708213280] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:16.273467 2018] [proxy_fcgi:error] [pid 871:tid 1708213280] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:16.340457 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  ini_s                                                                                                             et(): A session is active. You cannot change the session module's ini settings a                                                                                                             t this time in /var/www/ncp-web/index.php on line 41\nPHP message: PHP Warning:                                                                                                               ini_set(): A session is active. You cannot change the session module's ini sett                                                                                                             ings at this time in /var/www/ncp-web/index.php on line 43\nPHP message: PHP War                                                                                                             ning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /                                                                                                             var/www/ncp-web/L10N.php on line 145\nPHP message: PHP Warning:  fopen(ncp-web.c                                                                                                             fg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.p                                                                                                             hp on line 145\nPHP message: NACHO auto\n - auto\nPHP message: NACHO en\n - auto                                                                                                             \nPHP message: NACHO de\n - auto\nPHP message: NACHO es\n - auto\nPHP message: N                                                                                                             ACHO zh\n - auto\n'
[Wed Oct 03 06:49:17.300135 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  touch                                                                                                             (): Utime failed: Permission denied in /var/www/ncp-web/ncp-output.php on line 8                                                                                                             1\n'
[Wed Oct 03 06:49:21.196162 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:23.421344 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:27.216484 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  ini_s                                                                                                             et(): A session is active. You cannot change the session module's ini settings a                                                                                                             t this time in /var/www/ncp-web/wizard/index.php on line 21\nPHP message: PHP Wa                                                                                                             rning:  ini_set(): A session is active. You cannot change the session module's i                                                                                                             ni settings at this time in /var/www/ncp-web/wizard/index.php on line 23\n'
[Wed Oct 03 06:49:28.392806 2018] [proxy_fcgi:error] [pid 871:tid 1683010592] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  touch                                                                                                             (): Utime failed: Permission denied in /var/www/ncp-web/ncp-output.php on line 8                                                                                                             1\n'
[Wed Oct 03 06:49:37.706371 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:43.132379 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'
[Wed Oct 03 06:49:47.902577 2018] [proxy_fcgi:error] [pid 871:tid 1691411488] [c                                                                                                             lient 192.168.178.54:52160] AH01071: Got error 'PHP message: PHP Warning:  fopen                                                                                                             (ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-                                                                                                             web/L10N.php on line 145\n'

Database logs

2018-10-03  4:46:38 1954333488 [Note] /usr/sbin/mysqld: Shutdown complete

2018-10-03  6:47:20 1995579376 [Note] InnoDB: Using mutexes to ref count buffer                                                                                                              pool pages
2018-10-03  6:47:20 1995579376 [Note] InnoDB: The InnoDB memory heap is disabled
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Mutexes and rw_locks use GCC atomi                                                                                                             c builtins
2018-10-03  6:47:20 1995579376 [Note] InnoDB: GCC builtin __atomic_thread_fence(                                                                                                             ) is used for memory barrier
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Compressed tables use zlib 1.2.8
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Using Linux native AIO
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Using generic crc32 instructions
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Initializing buffer pool, size = 1                                                                                                             28.0M
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Completed initialization of buffer                                                                                                              pool
2018-10-03  6:47:20 1995579376 [Note] InnoDB: Highest supported file format is B                                                                                                             arracuda.
2018-10-03  6:47:22 1995579376 [Note] InnoDB: 128 rollback segment(s) are active                                                                                                             .
2018-10-03  6:47:22 1995579376 [Note] InnoDB: Waiting for purge to start
2018-10-03  6:47:22 1995579376 [Note] InnoDB:  Percona XtraDB (http://www.percon                                                                                                             a.com) 5.6.35-80.0 started; log sequence number 3495113
2018-10-03  6:47:31 1417671472 [Note] InnoDB: Dumping buffer pool(s) not yet sta                                                                                                             rted
2018-10-03  6:47:31 1995579376 [Note] Plugin 'FEEDBACK' is disabled.
2018-10-03  6:47:31 1995579376 [Note] Server socket created on IP: '127.0.0.1'.
2018-10-03  6:47:31 1995579376 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port                                                                                                             : 3306  Raspbian 9.0

Nextcloud logs

{"reqId":"6MBqeXepbvdKlFetHA20","level":3,"time":"2018-10-02T01:30:02+00:00","re                                                                                                             moteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Excepti                                                                                                             on":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/var\/www\                                                                                                             /nextcloud\/lib\/base.php","line":660,"function":"checkInstalled","class":"OC","                                                                                                             type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":1068                                                                                                             ,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/next                                                                                                             cloud\/cron.php","line":41,"args":["\/var\/www\/nextcloud\/lib\/base.php"],"func                                                                                                             tion":"require_once"}],"File":"\/var\/www\/nextcloud\/lib\/base.php","Line":277,                                                                                                             "CustomMessage":"--"},"userAgent":"--","version":""}


lsblk -f


NAME FSTYPE LABEL UUID MOUNTPOINT
sda
-sda1 btrfs myCloudDrive 187db4fc-b42c-49d3-aca2-155c5d8e89bb mmcblk0 |-mmcblk0p1 vfat boot 3725-1C05 /boot-mmcblk0p2 ext4 rootfs fd695ef5-f047-44bd-b159-2a78c53af20a /


thanks.

1 Like

Solved! extern usb; manually mounted to the nextcloud.

I can confirm the problem

Generating a new image

Thanks for reporting

Hello,

Can you post the solution? I am having similar issues.

Thanks

Same problem here after clean installation on rpi and 2 hours of trying to find login passwords…
My usb is not visible.
Two years, the problem exists and no solution has emerged?

Same here. Anyone with a solution on this?

Ok I just moved to the media dir then created the file by typing:
sudo mkdir USBdrive
Then tried again on next cloud and it worked.