electrum
electrum copied to clipboard
PermissionError: [Errno 1] Operation not permitted: '/home/petrkr/decrypted/electrum/29_recovery'
Crash Report
This crash report was reported through the automatic crash reporting system 🤖
Traceback
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/electrum/gui/qt/main_window.py", line 2539, in closeEvent
self.clean_up()
File "/usr/lib/python3.11/site-packages/electrum/gui/qt/main_window.py", line 2570, in clean_up
self.gui_object.close_window(self)
File "/usr/lib/python3.11/site-packages/electrum/gui/qt/__init__.py", line 427, in close_window
self.daemon.stop_wallet(window.wallet.storage.path)
File "/usr/lib/python3.11/site-packages/electrum/daemon.py", line 533, in stop_wallet
return fut.result()
^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3.11/site-packages/electrum/daemon.py", line 542, in _stop_wallet
await wallet.stop()
File "/usr/lib/python3.11/site-packages/electrum/wallet.py", line 463, in stop
self.save_db()
File "/usr/lib/python3.11/site-packages/electrum/wallet.py", line 397, in save_db
self.db.write(self.storage)
File "/usr/lib/python3.11/site-packages/electrum/wallet_db.py", line 1567, in write
self._write(storage)
File "/usr/lib/python3.11/site-packages/electrum/util.py", line 470, in <lambda>
return lambda *args, **kw_args: do_profile(args, kw_args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/electrum/util.py", line 465, in do_profile
o = func(*args, **kw_args)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/electrum/wallet_db.py", line 1577, in _write
storage.write(json_str)
File "/usr/lib/python3.11/site-packages/electrum/storage.py", line 99, in write
os_chmod(self.path, mode)
File "/usr/lib/python3.11/site-packages/electrum/util.py", line 1268, in os_chmod
os.chmod(path, mode)
PermissionError: [Errno 1] Operation not permitted: '/home/petrkr/decrypted/electrum/29_recovery'
PermissionError: [Errno 1] Operation not permitted: '/home/petrkr/decrypted/electrum/29_recovery'
Reporter
This issue was reported by 2 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 4.4.2 | 3.11.3 (main, Apr 5 2023, 15:52:25) [GCC 12.2.1 20230201] | Linux-6.3.1-arch1-1-x86_64-with-glibc2.37 | imported,standard | en_US | ℹ |
| 4.5.4 | 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] | Linux-5.15.0-101-generic-x86_64-with-glibc2.35 | 2fa | en_US | ℹ |
Additional Information
Attempting to open wallet backup.
Any context on why os.chmod would fail here?
Let's re-open if this happens again. Probably a local glitch
Good evening @accumulator,
I just received another crash report related to this issue. The crash occured on Electrum 4.5.4. I'm not sure which versions of Electrum include the fix but this is the first report from anything newer than 4.4.2 since you closed the issue.
Could you please check if this issue really is resolved? Here is the traceback that I just collected:
Traceback (most recent call last):
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/gui/qt/main_window.py", line 2508, in closeEvent
self.clean_up()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/gui/qt/main_window.py", line 2539, in clean_up
self.gui_object.close_window(self)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/gui/qt/__init__.py", line 485, in close_window
self.daemon.stop_wallet(window.wallet.storage.path)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/daemon.py", line 552, in stop_wallet
return fut.result()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/daemon.py", line 561, in _stop_wallet
await wallet.stop()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/wallet.py", line 544, in stop
self.save_db()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/wallet.py", line 479, in save_db
self.db.write()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/json_db.py", line 48, in wrapper
return func(self, *args, **kwargs)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/json_db.py", line 396, in write
self.write_and_force_consolidation()
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/json_db.py", line 48, in wrapper
return func(self, *args, **kwargs)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/util.py", line 482, in do_profile
o = func(*args, **kw_args)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/json_db.py", line 420, in write_and_force_consolidation
self.storage.write(json_str)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/storage.py", line 105, in write
os_chmod(self.path, mode)
File "/tmp/.mount_electr41pOFS/usr/lib/python3.10/site-packages/electrum/util.py", line 1117, in os_chmod
os.chmod(path, mode)
PermissionError: [Errno 1] Operation not permitted: '/mnt/nfs/PassFlash/Electrum/Wallet Backup/202008200509/default_wallet.backup'
PermissionError: [Errno 1] Operation not permitted: '/mnt/nfs/PassFlash/Electrum/Wallet Backup/202008200509/default_wallet.backup'
~ With robotic wishes
See #8997