So I'm more and more puzzled on how to deploy a Pr...
# orm-help
v
So I'm more and more puzzled on how to deploy a Prisma instance as the docs are out of date or erroneous (both the DO, either manual or docker-machine are failing at one point or another, on Prisma 1.6)
l
Which version are you trying to deploy?
v
which version of what?
l
Prisma ... 1.6?
v
yes
l
I'm running 1.6 on DO and I used the docs. What problems are you having?
v
โ€œCannot create container for service prisma-db: Conflict. The container name /prisma-db is already in use by container XX. You have to remove (or rename) that container to be able to reuse that nameโ€
that's for the docker-machine one
l
I know next to nothing about docker (and try to keep it that way). I've had that error locally, though, and was always able to restart docker to get it to go away. I assume you tried that and the error persists?
v
the Docker app itself?
l
Yes
v
I'll try that
yeah no ๐Ÿ˜ž no matter if I kill local/remote docker-composer/docker-machine, restart Docker, I still get told the container is already in use
thanks tho ๐Ÿ™‚
l
Well "restart docker" isn't exactly great help. ๐Ÿ™‚ I suspect trouble shooting it as a Docker issue is the way to go
n
try to kill & remove containers (might incur data loss)
d
@veksen I second Nilanโ€™s statement, more precisely try
docker kill $(docker ps -aq) && docker rm $(docker ps -aq)
. Caution this permanently removes all containers from your system, so if you have more containers running you can selectively delete containers with
kill / rm
.
The output you receive in the warning should have a long ID attached. This is the offending container. The id can be used in
docker kill <id>
/
docker rm <id>
for said selective removal.
v
that works! thank you so much!
โค๏ธ 2
there seems to be a bug, the
~/.prisma/config.yml
never updated with the
digital-ocean-cluster
, and it auto-fed itself with the name
local
. I could deploy the cluster API, but the cluster itself would never deploy
d
Glad it works.
v
well - back to not working. same error, also did a clean start by killing and removing all containers (within docker-machine + docker). very puzzled
d
Did it just stop working, or did you do anything prior that lead to the container failing, like deploying new containers?
v
I mean, I started the tutorial again to make sure I got everything right, and it started failing when trying to enable cluster authentication, following the steps again (https://www.prisma.io/docs/tutorials/cluster-deployment/digital-ocean-(docker-machine)-texoo9aemu)
n
so you can run the same steps to get unblocked again ๐Ÿ™‚
v
I did run the same steps several times, I spent a full day on the tutorial.
n
with same steps I mean
docker kill xyz
and
docker rm xzy
๐Ÿ™‚ I am not sure at which specific step the tutorial it causes this issue
v
Alright what I'll do is... Kill any existing config/docker-machine + docker instances and start from a blank state, and log what goes wrong. I'll report back. Thanks for the follow-up
๐Ÿ‘ 1
n
any news @veksen? ๐Ÿ™‚
v
on it today ๐Ÿ™‚ needed a long weekend
n
same! ๐Ÿ˜„
v
alright so I have a full step-by-step repro of my attempt from a blank state: https://gist.github.com/veksen/c45b4e554bcd773ca64f44ea098b94c0
n
ok, interesting, thanks for providing that! note that anything surrounding
~/.prisma/config.yml
are unlikely to be changed again, as it is supposed to be not needed anymore: https://github.com/prismagraphql/prisma/issues/2356
it is however curious that you run into
ERROR: for prisma-db Cannot create container for service prisma-db: Conflict.
I have no explanation for this
v
the interesting/weird part is the cluster inside
~/.prisma/config.yml
is changed to
local
, but I feel like it's just a symptom from the error
n
that might be a proper bug, but as I mentioned due to the changes around
config.yml
it is not applicable anymore for recent versions
v
ya I'm aware.. I would rather switch to 1.8. I'd gladly ginnea pig a DO deployment for 1.8 - My docker experience is limited however
๐Ÿ‘ 1