Hi,
I am running ncp on docker, NC15.0.5 and NCP 1.10.0, over a Rock64 (ARMBIAN 5.88 stable Ubuntu 18.04.2 LTS 4.4.180-rockchip64)
Warned by an automated email about a failed Letsencrypt renewal I was having a look, trying to re-apply the LE config manually from the NCP pannel on the web gave an error:
[ letsencrypt ]
/usr/local/bin/ncp/NETWORKING/letsencrypt.sh: line 57: /usr/bin/letsencrypt: No such file or directory
I then realized my ncp was outdated (I am running ncp 1.10.0) and decided to update just in case it fixed the issue, but with no luck, through the ncp-pannel in the web is strange becuase I see the options twice with the Apply button twice also:
Update NextCloudPi
Update NextCloudPi
If I press Apply it fails (red circle).
When trying ncp-udpate from the cli (either from inside the docker) or from outside the docker doing: docker exec -it nextcloudpi ncp-update
It fails either with a few errors:
$ docker exec -it nextcloudpi ncp-update
Downloading updates
Performing updates
file /usr/local/bin/ncp/CONFIG/nc-autoupdate-nc.sh
/usr/local/bin/ncp/UPDATES/nc-autoupdate-nc.sh not found
Cannot load Zend OPcache - it was already loaded
Config value squareSizes for app previewgenerator set to 32
Cannot load Zend OPcache - it was already loaded
Config value widthSizes for app previewgenerator set to 128 256 512
Cannot load Zend OPcache - it was already loaded
Config value heightSizes for app previewgenerator set to 128 256
Cannot load Zend OPcache - it was already loaded
System config value jpeg_quality set to string 60
file /usr/local/bin/ncp/SYSTEM/unattended-upgrades.sh
/usr/local/bin/ncp/UPDATES/unattended-upgrades.sh not found
--2019-06-10 13:42:49-- https://packages.sury.org/php/apt.gpg
Resolving packages.sury.org (packages.sury.org)... 104.31.94.169, 104.31.95.169, 2606:4700:30::681f:5ea9, ...
Connecting to packages.sury.org (packages.sury.org)|104.31.94.169|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1769 (1.7K) [application/octet-stream]
Saving to: '/etc/apt/trusted.gpg.d/php.gpg'
/etc/apt/trusted.gpg.d/php.g 100%[==============================================>] 1.73K --.-KB/s in 0s
2019-06-10 13:42:49 (4.32 MB/s) - '/etc/apt/trusted.gpg.d/php.gpg' saved [1769/1769]
file /usr/local/bin/ncp/CONFIG/nc-autoupdate-ncp.sh
/usr/local/bin/ncp/UPDATES/nc-autoupdate-ncp.sh not found
file /usr/local/bin/ncp/CONFIG/nc-notify-updates.sh
/usr/local/bin/ncp/UPDATES/nc-notify-updates.sh not found
file /usr/local/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh
/usr/local/bin/ncp/UPDATES/nc-update-nc-apps-auto.sh not found
Installing nc-backup
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release
Hit:5 https://packages.sury.org/php stretch InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
pigz is already the newest version (2.3.4-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up tzdata (2018i-0+deb9u1) ...
/var/lib/dpkg/info/tzdata.config: 337: /var/lib/dpkg/info/tzdata.config: cannot create /etc/timezone: Read-only file system
dpkg: error processing package tzdata (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of php7.2-cli:
php7.2-cli depends on tzdata; however:
Package tzdata is not configured yet.
dpkg: error processing package php7.2-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.2-fpm:
php7.2-fpm depends on php7.2-cli; however:
Package php7.2-cli is not configured yet.
php7.2-fpm depends on tzdata; however:
Package tzdata is not configured yet.
dpkg: error processing package php7.2-fpm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php-igbinary:
php-igbinary depends on phpapi-20180731 | phpapi-20170718 | phpapi-20160303 | phpapi-20151012 | phpapi-20131226; however:
Package phpapi-20180731 is not installed.
Package phpapi-20170718 is not installed.
Package php7.2-cli which provides phpapi-20170718 is not configured yet.
Package php7.2-fpm which provides phpapi-20170718 is not configured yet.
Package phpapi-20160303 is not installed.
Package phpapi-20151012 is not installed.
Package phpapi-20131226 is not installed.
dpkg: error processing package php-igbinary (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php-redis:
php-redis depends on php-igbinary; however:
Package php-igbinary is not configured yet.
php-redis depends on phpapi-20180731 | phpapi-20170718 | phpapi-20160303 | phpapi-20151012 | phpapi-20131226; however:
Package phpapi-20180731 is not installed.
Package phpapi-20170718 is not installed.
Package php7.2-cli which provides phpapi-20170718 is not configured yet.
Package php7.2-fpm which provides phpapi-20170718 is not configured yet.
Package phpapi-20160303 is not installed.
Package phpapi-20151012 is not installed.
Package phpapi-20131226 is not installed.
dpkg: error processing package php-redis (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.2:
php7.2 depends on libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi; however:
Package libapache2-mod-php7.2 is not installed.
Package php7.2-fpm is not configured yet.
Package php7.2-cgi is not installed.
dpkg: error processing package php7.2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
tzdata
php7.2-cli
php7.2-fpm
php-igbinary
php-redis
php7.2
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also when trying letsencrypt manually from inside the container I get following errors:
root@9e608cf7:/data/etc/letsencrypt# ./certbot-auto certonly --no-bootstrap --force-renew -d mydomain.com
Creating virtual environment...
Traceback (most recent call last):
File "<stdin>", line 27, in <module>
File "<stdin>", line 19, in create_venv
File "/usr/lib/python2.7/subprocess.py", line 181, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
root@9e608cf7:
I used it with --no-bootstrap because if not it tries to install a few new packages, what I guess makes no much sense being this a container…
So now I am stuck with no way of updating, no way of renewing my certificate and AFAIK with no official way of updating yet the ncp container without issues.
Any help will be much appreciated!
Thanks!