>Public bug reported:
>
>
>(amd64)ubuntu@localhost:~$ system-image-cli -i
>Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/systemimage/helpers.py", line 253, in last_update_date
> timestamp = datetime.fromtimestamp(os.stat(LAST_UPDATE_FILE).st_mtime)
>FileNotFoundError: [Errno 2] No such file or directory:
>'/userdata/.last_update'
This can be an expected exception, because it's possible for
/userdata/.last_update to be missing. That case is handled, and the real
problem is here:
>During handling of the above exception, another exception occurred:
>
>Traceback (most recent call last):
> File "/usr/bin/system-image-cli", line 9, in <module>
> load_entry_point('system-image==3.0.1', 'console_scripts', 'system-image-cli')()
> File "/usr/lib/python3/dist-packages/systemimage/main.py", line 289, in main
> last_update=last_update_date(),
> File "/usr/lib/python3/dist-packages/systemimage/helpers.py", line 258, in last_update_date
> for path in config.ini_files)
> File "/usr/lib/python3/dist-packages/systemimage/helpers.py", line 258, in <genexpr>
> for path in config.ini_files)
> File "/usr/lib/python3.4/pathlib.py", line 1048, in stat
> return self._accessor.stat(self)
> File "/usr/lib/python3.4/pathlib.py", line 326, in wrapped
> return strfunc(str(pathobj), *args)
>FileNotFoundError: [Errno 2] No such file or directory: '/etc/system-image/config.d/00_default.ini'
What happened to /etc/system-image/config.d/00_default.ini? What this is
saying is that after system-image-cli started up, this config file (or its
directory) got lost or removed. That shouldn't ever happen.
On Sep 14, 2015, at 08:40 PM, Ben Howard wrote:
>Public bug reported: ubuntu@ localhost: ~$ system-image-cli -i python3/ dist-packages/ systemimage/ helpers. py", line 253, in last_update_date fromtimestamp( os.stat( LAST_UPDATE_ FILE).st_ mtime) .last_update'
>
>
>(amd64)
>Traceback (most recent call last):
> File "/usr/lib/
> timestamp = datetime.
>FileNotFoundError: [Errno 2] No such file or directory:
>'/userdata/
This can be an expected exception, because it's possible for .last_update to be missing. That case is handled, and the real
/userdata/
problem is here:
>During handling of the above exception, another exception occurred: system- image-cli" , line 9, in <module> point(' system- image== 3.0.1', 'console_scripts', 'system- image-cli' )() python3/ dist-packages/ systemimage/ main.py" , line 289, in main last_update_ date(), python3/ dist-packages/ systemimage/ helpers. py", line 258, in last_update_date python3/ dist-packages/ systemimage/ helpers. py", line 258, in <genexpr> python3. 4/pathlib. py", line 1048, in stat stat(self) python3. 4/pathlib. py", line 326, in wrapped str(pathobj) , *args) image/config. d/00_default. ini'
>
>Traceback (most recent call last):
> File "/usr/bin/
> load_entry_
> File "/usr/lib/
> last_update=
> File "/usr/lib/
> for path in config.ini_files)
> File "/usr/lib/
> for path in config.ini_files)
> File "/usr/lib/
> return self._accessor.
> File "/usr/lib/
> return strfunc(
>FileNotFoundError: [Errno 2] No such file or directory: '/etc/system-
What happened to /etc/system- image/config. d/00_default. ini? What this is
saying is that after system-image-cli started up, this config file (or its
directory) got lost or removed. That shouldn't ever happen.
Are you able to do some live debugging?