# Upgrade to 0.18 Failure - unsupported key derivation algorithm

**URL:** <https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445>\
**Category:** Support\
**Created:** [November 17, 2024, 10:24am UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445 "2024-11-17T10:24:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![owenluke1971](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@owenluke1971](https://kopia.discourse.group/u/owenluke1971)\
**Post date:** [November 17, 2024, 10:24am UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445/1 "2024-11-17T10:24:07Z")

</div>

Hi…

I have just updated my main client and host machines to kopia 0.18. But the client can’t reconnect now and I get the following error.

Connect Error: INTERNAL: internal server error: connect error: error opening repository: error connecting to API server: error opening content cache: unable to derive cache encryption key from password: unsupported key derivation algorithm: , supported algorithms [pbkdf2-sha256-600000 scrypt-65536-8-1].

I can log in to the Web UI on the host and if I check the repository with kopia repository status is appears to be OK.

Can anyone help and tell me what I have got wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![owenluke1971](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@owenluke1971](https://kopia.discourse.group/u/owenluke1971)\
**Post date:** [November 17, 2024, 12:02pm UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445/2 "2024-11-17T12:02:54Z")

</div>

if it helps any playing with the command line on the client I can connect to the server with the command -

```auto
kopia repository connect server --url https://<address>:51515 \
  --server-cert-fingerprint

```

This is happening on both my linux and windows machines.

---

<div class="post-metadata">

**Author:** ![Fritter3906](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Fritter3906](https://kopia.discourse.group/u/Fritter3906)\
**Post date:** [November 17, 2024, 5:10pm UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445/3 "2024-11-17T17:10:55Z")

</div>

Hy,  
I also can’t login from my mac with actual version,  
I tested following configurations:  
linux server 0.18. with Linux Client 0.18 no problem  
linux server 0.18. with Mac Client 0.18 problem with the connection (see [owenluke1971] )  
linux server 0.18. with Mac Client 0.17 problem with the connection  
linux server 0.17. with Linux Client 0.18

`WARN unable to send notification	{"err":"unhandled session request","errVerbose":"unhandled session request\ngithub.com/kopia/kopia/repo.errorFromSessionResponse\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:660\ngithub.com/kopia/kopia/repo.unhandledSessionResponse\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:666\ngithub.com/kopia/kopia/repo.(*grpcInnerSession).SendNotification\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:496\ngithub.com/kopia/kopia/repo.(*grpcRepositoryClient).SendNotification.func1\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:473\ngithub.com/kopia/kopia/repo.inSessionWithoutRetry[...]\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:606\ngithub.com/kopia/kopia/repo.maybeRetry[...]\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:572\ngithub.com/kopia/kopia/repo.(*grpcRepositoryClient).SendNotification\n\t/home/runner/work/kopia/kopia/repo/grpc_repository_client.go:472\ngithub.com/kopia/kopia/notification.Send\n\t/home/runner/work/kopia/kopia/notification/notification_send.go:118\ngithub.com/kopia/kopia/cli.(*commandSnapshotCreate).run\n\t/home/runner/work/kopia/kopia/cli/command_snapshot_create.go:153\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.func1.1\n\t/home/runner/work/kopia/kopia/cli/app.go:496\ngithub.com/kopia/kopia/repo.WriteSession\n\t/home/runner/work/kopia/kopia/repo/repository.go:413\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.func1\n\t/home/runner/work/kopia/kopia/cli/app.go:492\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.func2\n\t/home/runner/work/kopia/kopia/cli/app.go:579\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.(*App).baseActionWithContext.func3.1.1\n\t/home/runner/work/kopia/kopia/cli/app.go:564\ngithub.com/kopia/kopia/cli.(*profileFlags).withProfiling\n\t/home/runner/work/kopia/kopia/cli/profile.go:45\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.(*App).baseActionWithContext.func3.1\n\t/home/runner/work/kopia/kopia/cli/app.go:559\ngithub.com/kopia/kopia/cli.(*App).runAppWithContext.func1\n\t/home/runner/work/kopia/kopia/cli/app.go:530\ngithub.com/kopia/kopia/cli.(*App).runAppWithContext\n\t/home/runner/work/kopia/kopia/cli/app.go:531\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.(*App).baseActionWithContext.func3\n\t/home/runner/work/kopia/kopia/cli/app.go:558\ngithub.com/alecthomas/kingpin/v2.(*actionMixin).applyActions\n\t/home/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/actions.go:28\ngithub.com/alecthomas/kingpin/v2.(*Application).applyActions\n\t/home/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/app.go:568\ngithub.com/alecthomas/kingpin/v2.(*Application).execute\n\t/home/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/app.go:398\ngithub.com/alecthomas/kingpin/v2.(*Application).Parse\n\t/home/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/app.go:230\nmain.main\n\t/home/runner/work/kopia/kopia/main.go:77\nruntime.main\n\t/opt/hostedtoolcache/go/1.22.7/x64/src/runtime/proc.go:271\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.22.7/x64/src/runtime/asm_amd64.s:1695"}`

linux server 0.17. with Mac Client 0.18 no problem

I cannot test the Windows client at the moment

After with conclusion, I run the Server under 0.17

Thanks

---

<div class="post-metadata">

**Author:** ![owenluke1971](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@owenluke1971](https://kopia.discourse.group/u/owenluke1971)\
**Post date:** [November 17, 2024, 5:48pm UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445/4 "2024-11-17T17:48:13Z")

</div>

It looks like the problem has been found a fix is being tested

[https://github.com/kopia/kopia/pull/4255](https://github.com/kopia/kopia/pull/4255)

That is quicker than I have seen for many paid for solutions! And even with this level of ‘service’ I think this is great software.

---

<div class="post-metadata">

**Author:** ![jkowalski](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/jkowalski/32/3_2.png) [@jkowalski](https://kopia.discourse.group/u/jkowalski)\
**Post date:** [November 17, 2024, 7:06pm UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445/5 "2024-11-17T19:06:35Z")

</div>

You can now try v0.18.1 which fixes the issue:

> **[Release v0.18.1 · kopia/kopia](https://github.com/kopia/kopia/releases/tag/v0.18.1)**
>
> Kopia v0.18.1
> Kopia v0.18.1 is a hot fix release which fixes compatibility with repository server clients which were connected using previous versions.
> See #4255
> Release notes for v0.18:
> There are...

---

<div class="post-metadata">

**Author:** ![Fritter3906](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Fritter3906](https://kopia.discourse.group/u/Fritter3906)\
**Post date:** [November 18, 2024, 2:55pm UTC](https://kopia.discourse.group/t/upgrade-to-0-18-failure-unsupported-key-derivation-algorithm/3445/6 "2024-11-18T14:55:32Z")

</div>

Hy,  
what does this mean?

```auto
DEBUG Creating cache directory '/Users/user/Library/Caches/kopia/a1462049df33b75c' with max size 5242880000
DEBUG finished initial cache scan	{"cache":"cache-storage","duration":"108.208µs","totalRetainedSize":0,"tooRecentBytes":0,"tooRecentCount":0,"maxSizeBytes":5242880000,"limitBytes":0,"inUsePercent":0}
DEBUG establishing new GRPC streaming session (purpose=)
DEBUG GRPC stream read loop terminated with rpc error: code = PermissionDenied desc = access denied for user@mac
DEBUG finished closing active requests
ERROR failed to open repository: unable to establish session for purpose=: error establishing session: unable to initialize session: rpc error: code = PermissionDenied desc = access denied for user@mac: EOF
ERROR error connecting to API server: unable to establish session for purpose=: error establishing session: unable to initialize session: rpc error: code = PermissionDenied desc = access denied for user@mac: EOF

```

under 0.17.0 I don’t have authentication issues, only 0.18.1

kopia server runs 0.18.1 und the mac also run under 0.18.1  
if i downgrade the server to 0.17.0 this message doesn’t appear, but

```auto
WARN unable to send notification	{"err":"EOF: EOF","errVerbose":"EOF\nEOF\ngithub.com/kopia/kopia/repo.errorFromSessionResponse\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:658\ngithub.com/kopia/kopia/repo.unhandledSessionResponse\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:666\ngithub.com/kopia/kopia/repo.(*grpcInnerSession).SendNotification\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:496\ngithub.com/kopia/kopia/repo.(*grpcRepositoryClient).SendNotification.func1\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:473\ngithub.com/kopia/kopia/repo.inSessionWithoutRetry[...]\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:606\ngithub.com/kopia/kopia/repo.maybeRetry[...]\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:572\ngithub.com/kopia/kopia/repo.(*grpcRepositoryClient).SendNotification\n\t/Users/runner/work/kopia/kopia/repo/grpc_repository_client.go:472\ngithub.com/kopia/kopia/notification.Send\n\t/Users/runner/work/kopia/kopia/notification/notification_send.go:118\ngithub.com/kopia/kopia/cli.(*commandSnapshotCreate).run\n\t/Users/runner/work/kopia/kopia/cli/command_snapshot_create.go:153\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.func1.1\n\t/Users/runner/work/kopia/kopia/cli/app.go:496\ngithub.com/kopia/kopia/repo.WriteSession\n\t/Users/runner/work/kopia/kopia/repo/repository.go:413\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.func1\n\t/Users/runner/work/kopia/kopia/cli/app.go:492\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.func2\n\t/Users/runner/work/kopia/kopia/cli/app.go:579\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.(*App).baseActionWithContext.func3.1.1\n\t/Users/runner/work/kopia/kopia/cli/app.go:564\ngithub.com/kopia/kopia/cli.(*profileFlags).withProfiling\n\t/Users/runner/work/kopia/kopia/cli/profile.go:45\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.(*App).baseActionWithContext.func3.1\n\t/Users/runner/work/kopia/kopia/cli/app.go:559\ngithub.com/kopia/kopia/cli.(*App).runAppWithContext.func1\n\t/Users/runner/work/kopia/kopia/cli/app.go:530\ngithub.com/kopia/kopia/cli.(*App).runAppWithContext\n\t/Users/runner/work/kopia/kopia/cli/app.go:531\ngithub.com/kopia/kopia/cli.(*App).repositoryWriterAction.(*App).maybeRepositoryAction.(*App).baseActionWithContext.func3\n\t/Users/runner/work/kopia/kopia/cli/app.go:558\ngithub.com/alecthomas/kingpin/v2.(*actionMixin).applyActions\n\t/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/actions.go:28\ngithub.com/alecthomas/kingpin/v2.(*Application).applyActions\n\t/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/app.go:568\ngithub.com/alecthomas/kingpin/v2.(*Application).execute\n\t/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/app.go:398\ngithub.com/alecthomas/kingpin/v2.(*Application).Parse\n\t/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin/v2@v2.4.0/app.go:230\nmain.main\n\t/Users/runner/work/kopia/kopia/main.go:77\nruntime.main\n\t/Users/runner/hostedtoolcache/go/1.22.7/arm64/src/runtime/proc.go:271\nruntime.goexit\n\t/Users/runner/hostedtoolcache/go/1.22.7/arm64/src/runtime/asm_arm64.s:1222"}
ERROR flush error: error waiting for async writes: rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: PROTOCOL_ERROR: EOF

```
