subiquity getting confused by ntfsresize? (seems to restart after hitting 'Please make a test run using both the -n and -s options before real resizing!')

Bug #2065622 reported by Carl Booler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned
ubuntu-desktop-provision
Incomplete
Undecided
Unassigned

Bug Description

Trying to install Ubuntu 24.04 LTS on my iMac 2017, Retina 5K, 27 inch (Apple Inc. iMac18,3).

I am able to boot into the "Try Ubuntu", however the installer would either freeze, crash or show "Something went wrong" window.

No logs show in the installer UI.

Here are the logs when I run it from terminal:

```
ubuntu@ubuntu:~$ ubuntu-desktop-bootstrap
Gtk-Message: 19:49:11.845: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:49:11.846: Failed to load module "canberra-gtk-module"

(ubuntu_bootstrap:347150): Gtk-WARNING **: 19:49:11.858: /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so: undefined symbol: ibus_input_context_set_post_process_key_event

(ubuntu_bootstrap:347150): Gtk-WARNING **: 19:49:11.858: Loading IM context type 'ibus' failed
flutter: INFO ubuntu_bootstrap: Logging to /var/log/installer/ubuntu_bootstrap.log
flutter: INFO flavor_provider: Using default flavor: UbuntuFlavor.ubuntu
flutter: INFO subiquity_server: Waiting server up to 90 seconds
flutter: ERROR subiquity_server: SocketException: Connection failed (OS Error: Connection refused, errno = 111), address = /run/subiquity/socket, port = 0
flutter: INFO subiquity_server: ApplicationState.CLOUD_INIT_WAIT
flutter: INFO subiquity_server: ApplicationState.CLOUD_INIT_WAIT
flutter: INFO subiquity_server: ApplicationState.WAITING
flutter: INFO subiquity_client: Opening socket to Endpoint(/run/subiquity/socket )
flutter: DEBUG desktop: Disabling automounting
flutter: DEBUG subiquity_client: POST http://localhost/meta/client_variant?variant=%22desktop%22
flutter: DEBUG telemetry: Writing report to /var/log/installer/telemetry
flutter: DEBUG subiquity_client: ==> setVariant(Variant.DESKTOP) null
flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, nonreportableError: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.347089, logSyslogId: subiquity_log.347089, eventSyslogId: subiquity_event.347089)
flutter: DEBUG subiquity_client: POST http://localhost/meta/mark_configured?endpoint_names=%5B%22mirror%22%2C%22proxy%22%2C%22ssh%22%2C%22snaplist%22%2C%22ubuntu_pro%22%5D
flutter: DEBUG subiquity_client: ==> markConfigured([mirror, proxy, ssh, snaplist, ubuntu_pro]) null
flutter: DEBUG desktop: Disabling screen blanking
flutter: DEBUG desktop: Disabling screensaver
flutter: DEBUG desktop: Inhibiting Gnome session
flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, nonreportableError: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.347089, logSyslogId: subiquity_log.347089, eventSyslogId: subiquity_event.347089)
flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, nonreportableError: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.347089, logSyslogId: subiquity_log.347089, eventSyslogId: subiquity_event.347089)
flutter: DEBUG subiquity_client: GET http://localhost/meta/interactive_sections
flutter: DEBUG subiquity_client: ==> getInteractiveSections() null
flutter: INFO locale: Loaded 75 languages
flutter: DEBUG subiquity_client: GET http://localhost/locale
flutter: DEBUG subiquity_client: ==> locale() "en_US.UTF-8"
flutter: INFO locale: Selected en_US as UI language
flutter: INFO subiquity_status: WAITING => null
flutter: INFO locale: Set en_US as system locale
flutter: DEBUG subiquity_client: POST http://localhost/locale
flutter: DEBUG subiquity_client: ==> setLocale(en_US.UTF-8) null
flutter: DEBUG subiquity_client: GET http://localhost/storage/has_rst
flutter: DEBUG subiquity_client: GET http://localhost/meta/status
flutter: ERROR ubuntu_bootstrap: Unhandled exception
 SocketException: SocketException: Connection failed (OS Error: Connection refused, errno = 111), address = /run/subiquity/socket, port = 0
#0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:721)
#1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1914)
#2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27)
#3 Socket._startConnect (dart:io-patch/socket_patch.dart:2138)
#4 Socket.startConnect (dart:io/socket.dart:805)
#5 SubiquityClient.open.<anonymous closure> (package:subiquity_client/src/client.dart:55)
#6 _ConnectionTarget.connect (dart:_http/http_impl.dart:2477)
#7 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2926)
#8 _HttpClient._getConnection (dart:_http/http_impl.dart:2931)
#9 _HttpClient._openUrl (dart:_http/http_impl.dart:2786)
#10 _HttpClient.openUrl (dart:_http/http_impl.dart:2623)
#11 SubiquityClient._openUrl (package:subiquity_client/src/client.dart:89)
<asynchronous suspension>
#12 SubiquityClient.getStatus (package:subiquity_client/src/client.dart:224)
<asynchronous suspension>
#13 logStreamProvider.<anonymous closure>.<anonymous closure> (package:ubuntu_provision/src/error/error_model.dart:24)
<asynchronous suspension>

```

In the above case I get "Something went wrong" window showing.

When it crashes I get a different log:
```
ubuntu@ubuntu:~$ ubuntu-desktop-bootstrap
Gtk-Message: 19:52:47.406: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:52:47.407: Failed to load module "canberra-gtk-module"

(ubuntu_bootstrap:374200): Gtk-WARNING **: 19:52:47.420: /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so: undefined symbol: ibus_input_context_set_post_process_key_event

(ubuntu_bootstrap:374200): Gtk-WARNING **: 19:52:47.420: Loading IM context type 'ibus' failed
flutter: INFO ubuntu_bootstrap: Logging to /var/log/installer/ubuntu_bootstrap.log
flutter: INFO flavor_provider: Using default flavor: UbuntuFlavor.ubuntu
flutter: INFO subiquity_server: Waiting server up to 90 seconds
flutter: INFO subiquity_server: ApplicationState.CLOUD_INIT_WAIT
flutter: INFO subiquity_server: ApplicationState.WAITING
flutter: INFO subiquity_client: Opening socket to Endpoint(/run/subiquity/socket )
flutter: DEBUG desktop: Disabling automounting
flutter: DEBUG subiquity_client: POST http://localhost/meta/client_variant?variant=%22desktop%22
flutter: DEBUG telemetry: Writing report to /var/log/installer/telemetry
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
ubuntu_bootstrap: ../../src/xcb_io.c:278: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)

```

Other things to note:
I am able to successfully start the installation on another machine
I am able to install Ubuntu 22.04.4 LTS on the iMac
I have tried with a couple of different working USB sticks.

tags: added: install mac
removed: imac
tags: added: ubuntu-desktop-bootstrap
tags: added: noble
Revision history for this message
fossfreedom (fossfreedom) wrote :

Thank you for your bug report. Could you add the logs from/var/log/installer after getting the problem?

Changed in ubuntu-desktop-provision:
status: New → Incomplete
Revision history for this message
Carl Booler (casual-ubuntu-bug-reporter) wrote :

First attachment: when the UI shows that there is an error.

Revision history for this message
Carl Booler (casual-ubuntu-bug-reporter) wrote :

Second attachment, the installer crashed.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the log, those are from the frontend though and just tell us that the backend crashed, could you also add the subiquity-debug.log from the same directory?

Revision history for this message
Carl Booler (casual-ubuntu-bug-reporter) wrote :

subiquity-debug.log keeps getting generated even if I don't do anything.

I attached a zip of the logs from that directory. I tried to limit it to just for when it crashes.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks. It's a bit weird indeed, it seems subiquity keeps restarting or something but the log doesn't tell why?

They include those mention though

2024-05-29 23:08:43,457 DEBUG probert.utils:50 You might resize at 41659891712 bytes or 41660 MB (freeing 384081 MB).
2024-05-29 23:08:43,457 DEBUG probert.utils:50 Please make a test run using both the -n and -s options before real resizing!
2024-05-29 23:08:43,457 DEBUG probert.utils:52 <empty stderr>

so maybe they get confused by the ntfsresize return?

summary: - iMac 2017 install fails Ubuntu 24.04 LTS
+ subiquity getting confused by ntfsresize? (seems to restart after
+ hitting 'Please make a test run using both the -n and -s options before
+ real resizing!')
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.