ImmichI
Immich8mo ago
Shrall

Mobile app cannot reach server

Hello there,
Thank you for your support.

I have a recent issue where mobile apps cannot reach server.
  • App is running on TrueNAS scale (1.7.42)
  • I had issues syncing for some time (aka happening before current version)
  • Both mobile apps and server run on same version (v1.132.3)
  • Using web app on mobile and desktop works fine
  • /api/server/ping returns expected { "res": "pong" } in browser (mobile and desktop)
  • Error is same between iOS and Android (Android was fresh install, so no cache)
App was working fine since install (2-3 months ago), and did not do any changes past updates via TrueNAS catalog.


Stacktrace
ApiException 400: Socket operation failed: GET /server/ping (Inner exception: ClientException with SocketException: Connection failed (OS Error: No route to host, errno = 65), address = 192.168.1.101, port = 30041, uri=http://192.168.1.101:30041/api/server/ping)

#0      IOClient.send (package:http/src/io_client.dart:154)
<asynchronous suspension>
#1      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
<asynchronous suspension>
#2      ApiClient.invokeAPI (package:openapi/api_client.dart:101)
<asynchronous suspension>
#3      ServerApi.pingServer (package:openapi/api/server_api.dart:492)
<asynchronous suspension>
#4      Future.timeout.<anonymous closure> (dart:async/future_impl.dart:1043)
<asynchronous suspension>
#5      ApiService._isEndpointAvailable (package:immich_mobile/services/api.service.dart:115)
<asynchronous suspension>
#6      ApiService.resolveEndpoint (package:immich_mobile/services/api.service.dart:100)
<asynchronous suspension>
#7      ApiService.resolveAndSetEndpoint (package:immich_mobile/services/api.service.dart:76)
<asynchronous suspension>
#8      AuthService.validateServerUrl (package:immich_mobile/services/auth.service.dart:57)
<asynchronous suspension>
#9      LoginForm.build.getServerAuthSettings (package:immich_mobile/widgets/forms/login/login_form.dart:104)
<asynchronous suspension>
Was this page helpful?