Upgrading from 12.0-BETA to 12.0-BETA2

monotux

Cadet
Joined
Aug 30, 2019
Messages
6
Hi,

Yes, I know that it's unsupported, but I'm kinda stuck now since I can't seem to upgrade to a newer beta. It's my home NAS which I probably could migrate to FreeBSD or some Linux running OpenZFS but I kinda like my current setup.

Anyways, I can't update since I'm running into a permission error when trying. I then tried to upgrade from the terminal using freenas-update, and got some more information on why it failed. Here it goes:

Code:
freenas# /usr/local/bin/freenas-update -d -T TrueNAS-12.0-BETA -v update
[freenasOS.Configuration:606] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem'])
[urllib3.connectionpool:955] Starting new HTTPS connection (1): update-master.ixsystems.com:443
[urllib3.connectionpool:428] https://update-master.ixsystems.com:443 "GET /updates/ix_crl.pem HTTP/1.1" 200 1028
[freenasOS.Configuration:77] CheckFreeSpace(path=/tmp/tmptyb8pznx.pem, pool=None, required=1028)
[freenasOS.Configuration:745] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Update:1691] Could not open sequence file in cache directory /var/db/system/update: [Errno 2] No such file or directory: '/var/db/system/update/SEQUENCE'
[freenasOS.Configuration:606] TryGetNetworkFile(['https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-BETA/LATEST'])
[urllib3.connectionpool:955] Starting new HTTPS connection (1): update-master.ixsystems.com:443
[urllib3.connectionpool:428] https://update-master.ixsystems.com:443 "GET /TrueNAS/TrueNAS-12.0-BETA/LATEST HTTP/1.1" 200 1448
[freenasOS.Configuration:745] TryGetNetworkFile(['https://update-master.ixsystems.com/TrueNAS/TrueNAS-12.0-BETA/LATEST']):  Read 1448 bytes total
[freenasOS.Configuration:606] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem'])
[urllib3.connectionpool:955] Starting new HTTPS connection (1): update-master.ixsystems.com:443
[urllib3.connectionpool:428] https://update-master.ixsystems.com:443 "GET /updates/ix_crl.pem HTTP/1.1" 200 1028
[freenasOS.Configuration:77] CheckFreeSpace(path=/tmp/tmptbk13phm.pem, pool=None, required=1028)
[freenasOS.Configuration:745] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Configuration:606] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem'])
[urllib3.connectionpool:955] Starting new HTTPS connection (1): update-master.ixsystems.com:443
[urllib3.connectionpool:428] https://update-master.ixsystems.com:443 "GET /updates/ix_crl.pem HTTP/1.1" 200 1028
[freenasOS.Configuration:77] CheckFreeSpace(path=/tmp/tmpw3xge4x9.pem, pool=None, required=1028)
[freenasOS.Configuration:745] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Update:1691] Could not open sequence file in cache directory /var/db/system/update: [Errno 2] No such file or directory: '/var/db/system/update/SEQUENCE'
[freenasOS.Update:1009] Incomplete cache directory, will try continuing
[freenasOS.Update:1022] Going to try checking cached manifest /var/db/system/update/MANIFEST
[freenasOS.Update:1034] Going to try loading manifest file now
[freenasOS.Configuration:606] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem'])
[urllib3.connectionpool:955] Starting new HTTPS connection (1): update-master.ixsystems.com:443
[urllib3.connectionpool:428] https://update-master.ixsystems.com:443 "GET /updates/ix_crl.pem HTTP/1.1" 200 1028
[freenasOS.Configuration:77] CheckFreeSpace(path=/tmp/tmpwyygq8c_.pem, pool=None, required=1028)
[freenasOS.Configuration:745] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem']):  Read 1028 bytes total
[freenasOS.Update:1036] Loaded manifest file
[freenasOS.Update:1037] Cached manifest file has sequence 648384a1917c031745eaf3523e31d65c, latest_manfest has sequence 648384a1917c031745eaf3523e31d65c
[freenas-update:195] [Errno 13] Permission denied: './ValidateUpdate'
Traceback (most recent call last):
  File "/usr/local/bin/freenas-update", line 169, in DoDownload
    rv = Update.DownloadUpdate(train, cache_dir, pkg_type=pkg_type, ignore_space=ignore_space)
  File "/usr/local/lib/freenasOS/Update.py", line 1074, in DownloadUpdate
    latest_mani.RunValidationProgram(directory, kind=Manifest.VALIDATE_UPDATE)
  File "/usr/local/lib/freenasOS/Manifest.py", line 682, in RunValidationProgram
    subprocess.check_output(valid_script, preexec_fn=PreExecHook, stderr=subprocess.STDOUT)
  File "/usr/local/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/lib/python3.8/subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './ValidateUpdate'
Received exception during download phase, cannot update


And here's the file in question:

Code:
freenas# pwd
/var/db/system/update
freenas# ls -la
total 18
drwxr-xr-x   2 root  wheel     4 Aug 28 04:24 .
drwxr-xr-x  10 root  wheel    12 Aug 28 21:30 ..
-rw-r--r--   1 root  wheel  1448 Aug 28 04:24 MANIFEST
-r-xr-xr-x   1 root  wheel   185 Aug 28 04:24 ValidateUpdate
freenas# man getfacl
freenas# getfacl .
# file: .
# owner: root
# group: wheel
            owner@:rwxp--aARWcCos:-------:allow
            group@:r-x---a-R-c--s:-------:allow
         everyone@:r-x---a-R-c--s:-------:allow
freenas# getfacl MANIFEST
# file: MANIFEST
# owner: root
# group: wheel
            owner@:rw-p--aARWcCos:-------:allow
            group@:r-----a-R-c--s:-------:allow
         everyone@:r-----a-R-c--s:-------:allow
freenas# getfacl ValidateUpdate
# file: ValidateUpdate
# owner: root
# group: wheel
            owner@:r-x---aARWcCos:-------:allow
            group@:r-x---a-R-c--s:-------:allow
         everyone@:r-x---a-R-c--s:-------:allow
freenas#


Could anyone try to guess what is going on here? I've tried the proven classic `chmod 777 ValidateUpdate` but no difference. And I felt a bit dirty afterwards.
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
changing the system dataset to the boot volume seems to work for other people
 
Top