canonical / ubuntu-desktop-installer

Ubuntu Desktop Installer
GNU General Public License v3.0
536 stars 94 forks source link

Installer fails to create log file #2342

Closed d-loose closed 9 months ago

d-loose commented 12 months ago

What happened?

When running the installer in the live session, it fails to create the log file:

ERROR installer: Logging to /var/log/installer failed (Cannot create link)
...
flutter: error while writing to logging file.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PathAccessException: Cannot open file, path = '/var/log/installer.6935' (OS Error: Permission denied, errno = 13)
#0      _checkForErrorResponse (dart:io/common.dart:55)
#1      _File.open.<anonymous closure> (dart:io/file_impl.dart:381)
<asynchronous suspension>

What was expected?

It should be able to create a log file under /var/log/installer and write to it.

Steps to reproduce

  1. Run the installer from the live session in the latest ISO.
  2. /var/log/installer contains only telemetry and the subiquity log files.

(Close the installer and run it from a terminal to see the error message posted above.)

Additional context

No response