tonnenpinguin
09/17/2025, 1:48 PMauthzed/spicedb:v1.45.4 in my local docker-compose setup without any issues.
For reference I attached the startup log output.
When my application is trying to establish a grpc connection with spicedb all I see is timeouts.
https://cdn.discordapp.com/attachments/844600078948630559/1417869914521206794/message.txt?ex=68ccb682&is=68cb6502&hm=365eecfb402485e6aa5a373a79a1d260b7b107885780f6034fefaad6bcc954fc&yetitwo
09/17/2025, 1:51 PMtonnenpinguin
09/17/2025, 1:52 PMjobs:
    build:
      steps:
        - uses: actions/checkout@v4
        - name: Install Native dependencies
          run: apt update && apt install -y build-essential curl
        - name: Install SpiceDB
          run: |
            curl -sS https://pkg.authzed.com/apt/gpg.key | gpg --dearmor --yes -o /etc/apt/keyrings/spicedb.gpg
            echo "deb [signed-by=/etc/apt/keyrings/spicedb.gpg] https://pkg.authzed.com/apt/ * *"  | tee /etc/apt/sources.list.d/authzed.list
            chmod 644 /etc/apt/sources.list.d/authzed.list
            apt update
            apt install spicedb
        - name: Start SpiceDB
          run: spicedb serve-testing &tonnenpinguin
09/17/2025, 1:55 PMyetitwo
09/17/2025, 1:57 PMyetitwo
09/17/2025, 1:58 PMtonnenpinguin
09/17/2025, 2:02 PM[warning] Received unexpected response when fetching SpiceDB schema diff: {:error, %GRPC.RPCError{status: 13, message: ":stream_error: :closed"}}
[error] My.App.Server #PID<0.638.0> received unexpected message in handle_info/2: {:gun_down, #PID<0.639.0>, :http2, :closed,
[#Reference<0.4109527196.2503213057.89019>]}yetitwo
09/17/2025, 2:05 PMtonnenpinguin
09/17/2025, 2:05 PMDiffSchemaRequest.
Basically when starting up our server fetches a diff against the currently deployed schema and then figures out based on that which relations need to be deleted before writing the new schema and which entities to sync after the new schema has been written.
This is the sequence:
with {:continue, state, diffs} <- diff_schema(state),
         {:continue, state} <- purge_relationships(state, diffs),
         {:continue, state} <- migrate(state),
         {:continue, state} <- sync_relationships(state, diffs) dotonnenpinguin
09/17/2025, 2:09 PMtonnenpinguin
09/17/2025, 2:18 PMyetitwo
09/17/2025, 2:19 PMtonnenpinguin
09/17/2025, 2:19 PMyetitwo
09/17/2025, 2:19 PMtonnenpinguin
09/17/2025, 2:37 PMspicedb serve-testing & command in the same step/shell as the test process everything works as expected (but I'd have to disable spicedb logs).
If I start the spicedb instance in the step before starting the tests I see the same issue I described again.yetitwo
09/17/2025, 2:37 PMyetitwo
09/17/2025, 2:38 PMtonnenpinguin
09/17/2025, 2:39 PMtonnenpinguin
09/17/2025, 2:40 PMyetitwo
09/17/2025, 2:40 PMyetitwo
09/17/2025, 2:42 PMyetitwo
09/17/2025, 2:43 PMyetitwo
09/17/2025, 2:43 PMyetitwo
09/17/2025, 2:43 PMyetitwo
09/17/2025, 2:50 PMyetitwo
09/17/2025, 2:51 PMtonnenpinguin
09/17/2025, 3:00 PMyetitwo
09/17/2025, 3:30 PMtonnenpinguin
09/17/2025, 4:04 PMJarvusInnovations/background-action@v1 and this time it worked with v1.45.4.
- name: Start SpiceDB
        uses: JarvusInnovations/background-action@v1
        with:
          run: spicedb serve-testing --http-enabled &
          wait-on: http-get://localhost:8443/healthztonnenpinguin
09/17/2025, 4:05 PMJoey
09/17/2025, 4:17 PMJoey
09/17/2025, 4:17 PMtonnenpinguin
09/18/2025, 8:45 AM- name: Start SpiceDB
        uses: actions/github-script@v8
        with:
          script: |
            const spawn = require('child_process').spawn;
            const spawnOpts = { detached: true, stdio: 'ignore' };
            const run = 'spicedb serve-testing &';
            const child = spawn('bash', ['--noprofile', '--norc', '-eo', 'pipefail', '-c', run], spawnOpts);
            console.log('SpiceDB started');yetitwo
09/18/2025, 3:13 PMyetitwo
09/18/2025, 3:13 PMyetitwo
09/18/2025, 3:24 PMtonnenpinguin
09/19/2025, 9:41 AMyetitwo
09/19/2025, 2:08 PMtonnenpinguin
09/19/2025, 3:53 PM--log-level=warn fixes the issue as well and I can go back to a plain shell command :tada
https://github.com/authzed/spicedb/issues/2573#issuecomment-3311738554