"could not connect to or start Tor that met requirements" when building on MacOS (arm) #697

Open
opened 2023-07-28 13:51:32 +00:00 by mykter · 1 comment

Hi, I've just followed the building for MacOS instructions, and end up with an app that runs, but can't connect to Tor.

The bits that jump out from the logs are:

flutter: StartCwtch( cwtchdir: /Users/mykter/Library/Application Support/Cwtch/dev, torPath:  )
...
2023/07/28 14:29:46 tor/torProvider.go [INFO] tor version:
2023/07/28 14:29:46 cwtch-autobindings/lib.go [ERR ] Error connecting to Tor replacing with ErrorACN: could not connect to or start Tor that met requirements (min Tor version 0.3.5.x)

I also receive these warnings when building:

$ flutter build macos --no-tree-shake-icons

2023-07-28 14:35:40.960 xcodebuild[26070:340374] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008112-000638D21A45401E }
{ platform:macOS, arch:x86_64, id:00008112-000638D21A45401E }
/Users/mykter/dev/src/git.openprivacy.ca/cwtch.im/cwtch-ui/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'ReachabilitySwift' from project 'Pods')

I've tried both fetch-tor-macos.sh and installing Tor Browser and copying it over.

The tor executable works:

./macos/Tor/tor --version
Tor version 0.4.7.13 (git-7c1601fb6edd780f).
Tor is running on Darwin with Libevent 2.1.12-stable, OpenSSL 1.1.1u, Zlib 1.2.11, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
Tor compiled with clang version 14.0.4

flutter doctor output (I'm just missing the Android deps, which I assume don't matter here):

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-arm64, locale en-GB)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.72.2)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 2 categories.

Incidentally I could then no longer quit Cwtch in the normal manner, and had to force kill it. Trying to quit it normally it hangs for a bit, then an endless series of messages starts to appear:

Attempt:11 waiting for isolate vm-isolate to check in
Attempt:11 waiting for isolate CwtchFfi._checkAppbusEvents to check in
Attempt:12 waiting for isolate vm-isolate to check in
Attempt:12 waiting for isolate CwtchFfi._checkAppbusEvents to check in
...
Hi, I've just followed the building for MacOS instructions, and end up with an app that runs, but can't connect to Tor. The bits that jump out from the logs are: ``` flutter: StartCwtch( cwtchdir: /Users/mykter/Library/Application Support/Cwtch/dev, torPath: ) ... 2023/07/28 14:29:46 tor/torProvider.go [INFO] tor version: 2023/07/28 14:29:46 cwtch-autobindings/lib.go [ERR ] Error connecting to Tor replacing with ErrorACN: could not connect to or start Tor that met requirements (min Tor version 0.3.5.x) ``` I also receive these warnings when building: ``` $ flutter build macos --no-tree-shake-icons 2023-07-28 14:35:40.960 xcodebuild[26070:340374] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled) --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00008112-000638D21A45401E } { platform:macOS, arch:x86_64, id:00008112-000638D21A45401E } /Users/mykter/dev/src/git.openprivacy.ca/cwtch.im/cwtch-ui/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'ReachabilitySwift' from project 'Pods') ``` I've tried both `fetch-tor-macos.sh` and installing Tor Browser and copying it over. The `tor` executable works: ``` ./macos/Tor/tor --version Tor version 0.4.7.13 (git-7c1601fb6edd780f). Tor is running on Darwin with Libevent 2.1.12-stable, OpenSSL 1.1.1u, Zlib 1.2.11, Liblzma N/A, Libzstd N/A and Unknown N/A as libc. Tor compiled with clang version 14.0.4 ``` `flutter doctor` output (I'm just missing the Android deps, which I assume don't matter here): ``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-arm64, locale en-GB) [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use `flutter config --android-sdk` to update to that location. [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [!] Android Studio (not installed) [✓] VS Code (version 1.72.2) [✓] Connected device (2 available) [✓] Network resources ! Doctor found issues in 2 categories. ``` Incidentally I could then no longer quit Cwtch in the normal manner, and had to force kill it. Trying to quit it normally it hangs for a bit, then an endless series of messages starts to appear: ``` Attempt:11 waiting for isolate vm-isolate to check in Attempt:11 waiting for isolate CwtchFfi._checkAppbusEvents to check in Attempt:12 waiting for isolate vm-isolate to check in Attempt:12 waiting for isolate CwtchFfi._checkAppbusEvents to check in ... ```
Owner

Thanks for the report!

Error connecting to Tor replacing with ErrorACN: could not connect to or start Tor that met requirements (min Tor version 0.3.5.x)

Generally indicates that Tor cannot be found in the given PATH - is the tor executable in ./macos/Tor/ also in the PATH?

Incidentally I could then no longer quit Cwtch in the normal manner, and had to force kill it.

This is likely related to: #356

Thanks for the report! > Error connecting to Tor replacing with ErrorACN: could not connect to or start Tor that met requirements (min Tor version 0.3.5.x) Generally indicates that Tor cannot be found in the given `PATH` - is the tor executable in `./macos/Tor/` also in the `PATH`? > Incidentally I could then no longer quit Cwtch in the normal manner, and had to force kill it. This is likely related to: https://git.openprivacy.ca/cwtch.im/cwtch-ui/issues/356
sarah added this to the Stable Blockers project 2023-08-14 17:17:09 +00:00
sarah removed this from the Stable Blockers project 2023-08-14 17:18:50 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#697
No description provided.