Update to 11.3-U2 : [Errno 13] Permission denied: './ValidateUpdate'

popsulfr

Cadet
Joined
Apr 8, 2020
Messages
1
Hello while trying to update to 11.3-U2 I'm getting :

[Errno 13] Permission denied: './ValidateUpdate'

Code:
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 349, in run
    await self.future
  File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 388, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
    return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 965, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/update.py", line 572, in download
    get_handler=handler.get_handler,
  File "/usr/local/lib/freenasOS/Update.py", line 1066, 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.7/subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './ValidateUpdate'


This is the first time something like this ever happened to me while updating.

Code:
mount -v

freenas-boot/ROOT/11.3-U1 on / (zfs, local, noatime, nfsv4acls, fsid dce637fbdea4d90a)
devfs on /dev (devfs, local, multilabel, fsid 00ff007171000000)
tmpfs on /etc (tmpfs, local, fsid 01ff008787000000)
tmpfs on /mnt (tmpfs, local, fsid 02ff008787000000)
tmpfs on /var (tmpfs, local, fsid 03ff008787000000)
fdescfs on /dev/fd (fdescfs, fsid 05ff005959000000)
 

Attachments

  • dmesg.txt
    22.9 KB · Views: 332

multicast

Cadet
Joined
Jan 8, 2015
Messages
3
I have the exact same problem, I double checked and exec is enabled on my dataset. Any help would be awesome!
 

multicast

Cadet
Joined
Jan 8, 2015
Messages
3
Here is what is in my traceback:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 349, in run
await self.future
File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 388, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 965, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/update.py", line 586, in download
get_handler=handler.get_handler,
File "/usr/local/lib/freenasOS/Update.py", line 1066, 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.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './ValidateUpdate'
 

datasmurf

Cadet
Joined
Aug 3, 2020
Messages
1
Hello,

When I ran into a same issue I had to correctly set the system dataset to freenas-boot to continue with the update.

bye
 

LT_Horn

Cadet
Joined
Aug 19, 2020
Messages
1
I also had this same error, changing the system dataset to my boot volume allowed the upgrade to proceed.
 
Top