Skip to content

Bug: SyncService erroringΒ #813

@pierrelasse

Description

@pierrelasse

Reproduction steps

  1. Open Sync tab

Actual result

  1. Open Sync tab
  2. See "Not connected to relay, remote connections will work" and errors in console

Expected result

  1. Connecting to the relay idk

Grayjay Version

12

Which OS version are you using?

Linux 6.18.1-arch1-2

Are you using flatpak?

  • Check this if you installed flatpak version for Linux. If unsure, leave blank.

Are you using a VPN?

Tested with and without

Other info

Lmk if more info is needed.
ping relay.grayjay.app and telnet relay.grayjay.app 9000 work.
curl inside flatpak sandbox:

sh-5.2$ curl -v relay.grayjay.app:9000
* Host relay.grayjay.app:9000 was resolved.
* IPv6: 2a01:4ff:f0:3ffc::1
* IPv4: 178.156.173.80
*   Trying [2a01:4ff:f0:3ffc::1]:9000...
* Connected to relay.grayjay.app (2a01:4ff:f0:3ffc::1) port 9000
* using HTTP/1.x
> GET / HTTP/1.1
> Host: relay.grayjay.app:9000
> User-Agent: curl/8.15.0
> Accept: */*
>
* Request completely sent off
* Received HTTP/0.9 when not allowed
* closing connection #0
curl: (1) Received HTTP/0.9 when not allowed

Relevant log output

[2025-12-19 11:43:27.470] [ERROR] [SyncService] Relay session failed.
Exception: The operation was canceled.
Stack Trace:    at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at SyncShared.Utilities.ConnectToAddressAsync(IPAddress address, Int32 port, CancellationToken token) in /run/build/grayjay/SyncServer/SyncShared/Utilities.cs:line 177
at SyncShared.Utilities.OpenTcpSocketAsync(String host, Int32 port, CancellationToken cancellationToken) in /run/build/grayjay/SyncServer/SyncShared/Utilities.cs:line 143
at SyncClient.SyncService.<StartRelayLoop>b__47_0() in /run/build/grayjay/SyncServer/SyncClient/SyncService.cs:line 224
[2025-12-19 11:43:47.601] [ERROR] [SyncService] Relay session failed.
Exception: The operation was canceled.
Stack Trace:    at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at SyncShared.Utilities.ConnectToAddressAsync(IPAddress address, Int32 port, CancellationToken token) in /run/build/grayjay/SyncServer/SyncShared/Utilities.cs:line 177
at SyncShared.Utilities.OpenTcpSocketAsync(String host, Int32 port, CancellationToken cancellationToken) in /run/build/grayjay/SyncServer/SyncShared/Utilities.cs:line 143
at SyncClient.SyncService.<StartRelayLoop>b__47_0() in /run/build/grayjay/SyncServer/SyncClient/SyncService.cs:line 224
[2025-12-19 11:43:50.685] [ERROR] [T] An exception occurred in the IPC
Exception: The operation was canceled.
Stack Trace:    at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.IO.Pipes.PipeStream.ReadAsyncCore(Memory`1 destination, CancellationToken cancellationToken)
at System.IO.Stream.ReadAtLeastAsyncCore(Memory`1 buffer, Int32 minimumBytes, Boolean throwOnEndOfStream, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at DotCef.DotCefProcess.<Start>b__28_3()
[2025-12-19 11:43:50.687] [ERROR] [SyncService] Unhandled exception in StartRelayLoop.
Exception: A task was canceled.
Stack Trace:    at SyncClient.SyncService.<StartRelayLoop>b__47_0() in /run/build/grayjay/SyncServer/SyncClient/SyncService.cs:line 358
Log flusher exited with exception: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Grayjay.Desktop.POC.Log.<.ctor>b__7_0()
[2025-12-19 11:43:50.689] [ERROR] [SyncService] Server socket had an unexpected error.
Exception: Operation canceled
Stack Trace:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Net.Sockets.Socket>.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at SyncClient.SyncService.<StartListener>b__42_0() in /run/build/grayjay/SyncServer/SyncClient/SyncService.cs:line 146

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions