Jarrodsz / dokku-edgedb

an edgedb plugin for dokku
MIT License
13 stars 0 forks source link

dokku edgedb:upgrade nightly fails #8

Closed Jarrodsz closed 1 year ago

Jarrodsz commented 1 year ago

 !     Edgedb service nightly does not exist
root@ubuntu-s-1vcpu-2gb-amd-fra1-01:~# dokku edgedb:upgrade training nightly
=====> Upgrading training to edgedb/edgedb:2.11
=====> Stopping training
=====> Pausing container
       Container paused
       Removing container
=====> Starting container
       Waiting for container to be ready
       Linking edgedb instance
[2023-03-15T11:11:52Z WARN  edgedb::version_check] Newer version of edgedb tool exists 2.3.1+ef99779 (current 2.2.6+b869667)
Trusting unknown server certificate: SHA1:___XXX___
/.config/edgedb/credentials/training.json exists! Overwrite? (type `Yes`)
edgedb error: EOF```
IgnisDa commented 1 year ago

I can reproduce it. The problem is that the command does not seem to be non-interactive, so there is no easy way to accept the prompt. I will ask in the Edgedb Discord if it is possible to do it via an environment variable.

IgnisDa commented 1 year ago

@Jarrodsz I pushed a fix. Could you update the plugin and try again?

Jarrodsz commented 1 year ago

I tried installing the plugin after removing it just to be sure. Dokku plugin:update edgedb seemed to not do anything.

It still lists 1.26.0 as the version, not sure if this is correct. edgedb 1.26.0 enabled dokku edgedb service plugin

IgnisDa commented 1 year ago

I meant uninstall the plugin and install it again.

Jarrodsz commented 1 year ago

Ah right yes I did that. Uninstall and re-install seems to work.