Hello everyone, As in the instructions, I register...
# support
f
Hello everyone, As in the instructions, I registered on the rudderstack website, created Source and Destination, then obtained the workspace token, cloned git@github.com:rudderlabs/rudderstack-helm.git and edited only the service type parameter from loadbalancer to cluster ip in the values file, so that the already created ingress controller would create ingress and installed rudderstack with its workspace token I can’t understand why this error occurs, can you help me?
Copy code
INFO	gateway	gateway/gateway.go:1194	IP: 10.33.240.63 -- /v1/track -- Response: 401, Invalid Write Key
s
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
f
@ CC
q
@helpful-country-71305 can you check this
f
@helpful-country-71305 can you come in and help?
q
Hi @full-waiter-76117 Let me take a look at this today. Thank you for your patience
f
Hi @quiet-wolf-72320 yes, of course. This is the second time I’ve encountered this and I don’t understand why this error appears.
q
How did you solve it the first time? Did you set -
WORKSPACE_TOKEN=<your_workspace_token>
?
f
Yes the token is set when installing with the --set <token> command
q
Invalid Write Key
Says that the data plane and control plane integration might have some issues and the data plane is not able to identify the source created in the control plane. I will explore a bit more on this but can you check if workspace token is correct and you are hitting correct data plane?
f
Yes, the token is correct
Now I see that the events appear in s3, but the error is still there for some reason
@quiet-wolf-72320 Are there any updates?
q
@full-waiter-76117 This seems strange to me, if there is an invalid write key error then the events won't be captured and you won't see it in the destination. Can you check events tab of source and destination and observe if there is any error? I have requested some additional help from the Engg team. Will update you soon or a member of the team will contact you in this thread. Thank you for your patience.
f
@quiet-wolf-72320 There are no errors, the events are available.
f
@full-waiter-76117 Did any of the requests you have sent receive an
OK
from the server? Only if events are successfully ingested, they will be processed and uploaded to S3. Also, assuming the events are coming from a js source (some website), can you double check the instrumentation if the writeKey provided is correct or not.
f
@fresh-agent-5682 Received ok from the server, the events are loaded. Also checked the write key more than once
f
Great. So the invalid write key issue is gone? Let us know.
f
@fresh-agent-5682 No, it’s still the same.
@fresh-agent-5682 Can you give me an answer as to why this is the case?
f
I don't think I get the issue. To summarize, For some requests - server sent
OK
to the client - these events are uploaded to S3 - All good here For some requests - server sent
invalid write key
- this is because the write key is wrong. If the write key is right, you should receive
OK
. Are you saying the server is responding with
invalid write key
even if the write key is right? What client are you using?
f
@fresh-agent-5682 Yes, that’s right.
@fresh-agent-5682 cc
f
Server returning
invalid write key
for only some requests even though it is a valid write key sounds strange to me. Can you pls log the request either client side or capture the request on the server side (tcpdump) and find the write key in the header. Base64 decode it and see if it is right?
f
@fresh-agent-5682 I have another question, do I need a separate rudderstack for each environment?
f
You need one rudder-server per workspace.
f
@fresh-agent-5682 Do the accounts in rudderstack have to be different for each env too?
q
@full-waiter-76117 Yes. If you have multiple environments then you need to create separate accounts in each environment
f
@quiet-wolf-72320 It turns out you need different accounts and different rudderstack installed depending on the environment?
@fresh-agent-5682 @quiet-wolf-72320 I made 2 accounts for 2 env. Started 2 service rudderstack and again the same error 401. This is what ingress gives out
@fresh-agent-5682 @quiet-wolf-72320 сс. The problem still remains
m
Can you pls log the request either client side or capture the request on the server side (tcpdump) and find the write key in the header. Base64 decode it and see if it is right?
As @fresh-agent-5682 mentioned, did you verify the write key like this?