astonishing-lizard-78628
04/17/2022, 11:39 PMv0.19.4
(i.e. Flyte Console v0.52.1
, Flyte Admin v0.6.147
, etc). When I browse to Flyte Console, instead of getting a list of my projects I get:
Failed to fetch data
invalid wire type 4 at offset 1
Retry (button)
This looks like a gRPC binary incompatibility between the latest Flyte Console and Flyte Admin. Flyte team, could you take a look?astonishing-lizard-78628
04/17/2022, 11:43 PMdata:
server:
security:
secure: false
useAuth: false
allowCors: true
since we don't bother to login (for my company Flyte deployment). However, the error message really looks like a backwards-incompatible protobuf change.freezing-airport-6809
freezing-airport-6809
icy-agent-73298
04/18/2022, 4:59 AMastonishing-lizard-78628
04/18/2022, 5:06 AM/console
page. If I browse to /console
in Flyte Console, I get this error and the Flyte Admin logs do not show any SQL queries.freezing-airport-6809
astonishing-lizard-78628
04/18/2022, 5:08 AM/console/projects/avexampleworkflows/workflows?domain=dev
for me), everything works fine and I see the queries the workflows in my Flyte Admin logs.astonishing-lizard-78628
04/18/2022, 5:09 AMfreezing-airport-6809
<https://demo.mydomain.io/console>
and that works and returnsastonishing-lizard-78628
04/18/2022, 5:10 AM/console
page if I click the i
button in the upper right-hand corner I get:
UI Version: 0.52.0
Admin Version:
Google Analytics: Inactive
freezing-airport-6809
freezing-airport-6809
astonishing-lizard-78628
04/18/2022, 5:11 AM/console/projects/avexampleworkflows/workflows?domain=dev
I get 0.6.14
for the Admin Version. I guess indeed, some sort of issue querying to admin from /console.icy-agent-73298
04/18/2022, 5:13 AMicy-agent-73298
04/18/2022, 5:15 AMflytectl version
....
...
{
"App": "controlPlane",
"Build": "2c7c541",
"Version": "v0.6.147",
"BuildTime": "2022-04-18 04:40:28.1541366 +0000 UTC m=+0.160188001"
}%
Can you check using flytectl version command. I guess UI is clipping the last digiticy-agent-73298
04/18/2022, 5:19 AMicy-agent-73298
04/18/2022, 5:19 AM[2022-04-18T05:18:51.325Z] "GET /me HTTP/1.1" 501 - 0 98 1 1 "192.168.65.3" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36" "8eca0678-7043-4f5d-befe-8a11c2255b1a" "localhost" "10.1.3.54:8088"
[2022-04-18T05:18:51.327Z] "GET /api/v1/projects HTTP/1.1" 200 - 0 388 7 6 "192.168.65.3" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36" "0e1239f1-98c4-4729-a3df-2b336b946688" "localhost" "10.1.3.54:8088"
freezing-airport-6809
freezing-airport-6809
astonishing-lizard-78628
04/18/2022, 5:23 AMFA21110289:fabrik alex.bain$ flytectl version --admin.endpoint=avflyteadmin.scratch-alexbain.dev.l5.woven-planet.tech:443
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"error","msg":"failed to initialize token source provider. Err: failed to fetch auth metadata. Error: rpc error: code = Unimplemented desc = unknown service flyteidl.service.AuthMetadataService","ts":"2022-04-17T22:21:50-07:00"}
{"json":{},"level":"warning","msg":"Starting an unauthenticated client because: can't create authenticated channel without a TokenSourceProvider","ts":"2022-04-17T22:21:50-07:00"}
{"json":{},"level":"info","msg":"Initialized Admin client","ts":"2022-04-17T22:21:50-07:00"}
A new release of flytectl is available: 0.4.13 → v0.5.18
To upgrade, run: brew update && brew upgrade flytectl
<https://github.com/flyteorg/flytectl/releases/tag/v0.5.18>
{
"App": "flytectl",
"Build": "2827633",
"Version": "0.4.13",
"BuildTime": "2022-04-17 22:21:50.113876 -0700 PDT m=+0.017312024"
}{
"App": "controlPlane",
"Build": "2c7c541",
"Version": "v0.6.147",
"BuildTime": "2022-04-17 19:24:50.337211701 +0000 UTC m=+0.028893426"
}
astonishing-lizard-78628
04/18/2022, 5:23 AMcontrolPlane
there is "Version": "v0.6.147"
icy-agent-73298
04/18/2022, 5:24 AMflytectl get projects --admin.endpoint=<http://avflyteadmin.scratch-alexbain.dev|avflyteadmin.scratch-alexbain.dev>.l5.woven-planet.tech:443
icy-agent-73298
04/18/2022, 5:25 AMastonishing-lizard-78628
04/18/2022, 5:25 AM/console
. Great minds think alike 😉astonishing-lizard-78628
04/18/2022, 5:26 AM-------------------- -------------------- -------------
| ID | NAME | DESCRIPTION |
-------------------- -------------------- -------------
| avexampleworkflows | avexampleworkflows | hello |
-------------------- -------------------- -------------
1 rows
astonishing-lizard-78628
04/18/2022, 5:27 AM/api/v1/projects
before the query actually returnsastonishing-lizard-78628
04/18/2022, 5:28 AMicy-agent-73298
04/18/2022, 5:30 AMfreezing-airport-6809
cold-lighter-9610
04/18/2022, 3:45 PMastonishing-lizard-78628
04/18/2022, 4:51 PM/console/projects/avexampleworkflows/workflows?domain=dev
are working fine, only /console
is broken.cold-lighter-9610
04/18/2022, 5:05 PMicy-agent-73298
04/18/2022, 5:07 PM/api/v1/projects
api works on /console/projects/avexampleworkflows/workflows?domain=dev
and not on /console page ?astonishing-lizard-78628
04/18/2022, 5:40 PMflyteconsole
to bisect the source of the issue. I have the bug in v0.51.3
but not in v0.47.3
.astonishing-lizard-78628
04/18/2022, 6:16 PMv0.50.4
, but not in v0.48.0
. Lol it takes a while to build and deploy. I'll find the version where the issue was introduced.astonishing-lizard-78628
04/18/2022, 6:51 PMv0.50.4
but not in v0.50.2
which means the issue must have been introduced in v0.50.3
. I have a build going to confirm that. So the issue must be from https://github.com/flyteorg/flyteconsole/pull/368/files or (more likely) https://github.com/flyteorg/flyteconsole/pull/366/files.cold-lighter-9610
04/18/2022, 7:44 PMastonishing-lizard-78628
04/18/2022, 8:42 PMastonishing-lizard-78628
04/18/2022, 8:54 PMastonishing-lizard-78628
04/18/2022, 8:59 PMcold-lighter-9610
04/18/2022, 9:14 PMcold-lighter-9610
04/18/2022, 9:14 PMcold-lighter-9610
04/18/2022, 9:19 PMastonishing-lizard-78628
04/18/2022, 9:21 PMv0.50.0
(or v0.50.1
- I can't remember exactly which). But then it was fixed in v0.50.2
.
-- But then v0.50.3
is broken for me :(cold-lighter-9610
04/18/2022, 9:22 PMcold-lighter-9610
04/18/2022, 9:25 PMastonishing-lizard-78628
04/18/2022, 9:25 PMOr do you build console locally?^^^^ Right, I'm building locally
cold-lighter-9610
04/18/2022, 9:26 PMyarn start
or just yarn build
or yarn build:prod
?cold-lighter-9610
04/18/2022, 9:29 PMastonishing-lizard-78628
04/18/2022, 9:39 PMDockerfile
image to our test cluster, so the commands I run are just those from https://github.com/flyteorg/flyteconsole/blob/v0.50.3/Dockerfile. Looks like it runs index.js
at the end.cold-lighter-9610
04/18/2022, 9:41 PMastonishing-lizard-78628
04/18/2022, 9:43 PMNODE_ENV=production
... do you have the same?astonishing-lizard-78628
04/18/2022, 9:44 PMcold-lighter-9610
04/18/2022, 9:45 PMastonishing-lizard-78628
04/18/2022, 10:06 PMenv.BASE_URL
environment variable in index.js
. Our deployment yaml specifically sets this environment variable to /console
. I'm going to unset it...astonishing-lizard-78628
04/18/2022, 10:09 PMcold-lighter-9610
04/18/2022, 10:10 PMcold-lighter-9610
04/18/2022, 10:43 PMcold-lighter-9610
04/19/2022, 2:06 AMdifferent
domains. And during projects request from /console
the api is trying to read data from console.domain/api/v1/projects
and if he is on any other page than it properly uses admin.domain/api/v1/project
.refined-piano-85781
04/19/2022, 3:55 PMv0.42.0
to v0.54.0
).
I noticed that when accessing /console
, the ADMIN_API_URL
and ENABLE_GA
settings seem to be ignored. When accessing /console/projects/<project>/workflows
the settings are correct.
When inspecting the HTML source code for /console
, the window.env
is not populated with the env. variables. It makes me wonder if removing the assets
from here, causes /console
to render a static asset, thus bypassing the serverRenderer
, which injects the script that sets window.env
?
I hope this helps. I’m nevertheless interesting in hearing what the solution is 🙂.cold-lighter-9610
04/21/2022, 3:03 AMcold-lighter-9610
04/21/2022, 3:33 AMrefined-piano-85781
04/21/2022, 8:32 AM