-
Notifications
You must be signed in to change notification settings - Fork 859
Token can't be decoded: Illegal base64 character 5c #1686
Comments
@marktani please any ETA for this |
Any news on this? Due to regular prisma cluster downtimes, it would be nice to become idependent for alpha testing :) |
Hey @moritzmorgenroth, please upgrade to the latest version of the Prisma CLI, we improved the infrastructure of the public clusters and you should see a big difference 🙂 @rohanray, we're still looking into this, but there's no concrete timeline. |
@marktani I am getting similar issue following tutorial for Digital Ocean (Docker Machine) as well: |
Hi, I am encountered an interesting issue upgrading: this is what happens when i install from scratch
So far so good, but when I run:
Which I find very confusing. Have you renamed the prisma command in the 1.1.1 version? and why am i getting a different version through the update then through the install? @marktani Should I open another issue for this or am I misunderstanding somethings basic? To me, it looks like some kind of name collision on npm. |
@marktani I updated the prisma and tried to deploy on remote cluster. Now I am getting following error.
When I hit the depoly command I am getting following log on docker prisma container
|
@marktani I tried again today using updated prisma cli package. when I'm trying to do a
Am I missing something here? |
I managed to deploy prisma on remote EC2 instance (running ubuntu). There were couple of changes I had to do while following steps defined in - Digital Ocean(Docker Machine) tutorial in order to get it to working:
|
I also found if I used single quote marks for the key, I would the following error:
So I changed to double quotes ( |
Some time has passed. Has anyone found a solution to the issue without hardcoding secret in docker-compose? Only this problem stopping my production deployment. Or did someone configure the rancher service to work with keys in prisma? |
I'm also seeing this issue when deploying to Digital Ocean. |
I followed the @raeesaa 's advice and hardcoded the |
@mzygmunt, did you try to follow @maxdarque's advice? Using |
My test configuration on rancher instance:
~/.prisma/config.yml
And I'm getting error:
@joelseq My problem is that in my company (production environment) I can't manually modify the docker-compose file to use @raeesaa advice to temporarily fix the problem. |
@mzygmunt @marktani I did some research and reviewed the docker-compose.yml file issues. It looks like this is a known issue and they advise we use docker secrets |
I went about exploring this issue and the underlying issue is that in This is a workaround script (it is well documented) I used to get around this. This solution works with Here are the steps you need to follow:-
To validate, access the cluster server. In case of Then run (note that It should emit a clean properly formatted output like:-
|
@divyenduz thanks for this, sir. I'm getting
Here is the test repo export token named do-prisma on digitloceanRun Make sure its there: Get regions list:
Run: Find the running docker-machine container: Run Add prisma-database:
image: prismagraphql/prisma:1.7
env_file: .env.vars
restart: always Run
Create cluster entry and then add it to PrisBook:prisma-do-demo$ sed -e "s/\__DROPLET_IP_ADDRESS__/$(docker-machine ip prisma)/" cluster-template.yml
clusters:
digital-ocean-cluster:
host: 'http://206.189.7.98:4466' In clusters:
digital-ocean-cluster:
host: 'http://206.189.7.98:4466'
clusterSecret: mysecret123
local:
host: 'http://localhost:4466' Running
|
Hi @idkjs Thanks for reaching out. Can you please do the following:-
@marktani: Feedback, Thanks! |
@divyenduz Happy to make the changes once i figure out what is going on. Right now im getting an authentication error i'm working through. It looks something like this: $ prismadeploy
Authenticating ✔
Already signed in
ERROR: Not authorized. Please provide a proper 'Authorization' header
{
"data": {
"generateClusterToken": null
},
"errors": [
{
"message": "Not authorized. Pleaseprovide a proper 'Authorization' header",
"locations": [
{
"line": 3,
"column": 9
}
],
"path": [
"generateClusterToken"
],
"code": 403
}
],
"status": 200
} |
I'm closing this issue, as all problems should be resolved since Please create a new issue if you are still running into problems, or create a new topic in the Forum if you have further usage questions. |
Happens when following https://www.prismagraphql.com/docs/tutorials/cluster-deployment/local-(docker)-meemaesh3k
at this step:
The text was updated successfully, but these errors were encountered: