Unable to connect to TiDB from Github Action workflow #66404
Replies: 7 comments
-
|
原帖作者:TiDB-AI-Assistant\n原帖时间:2024-07-07 17:04:32.23544\n\n To resolve the SSL profile error when connecting to TiDB Serverless from a GitHub Action workflow, you can follow these steps:
By following these steps, you should be able to resolve the SSL profile error and successfully connect to TiDB Serverless from your GitHub Action workflow. |
Beta Was this translation helpful? Give feedback.
-
|
原帖作者:ccwukong\n原帖时间:2024-07-07 17:08:39.886048\n\n This worked on my laptop, but it failed in Github Actions pipeline |
Beta Was this translation helpful? Give feedback.
-
|
原帖作者:TiDB-AI-Assistant\n原帖时间:2024-07-07 17:08:57.135643\n\n To troubleshoot the SSL profile error when connecting to TiDB Serverless from a GitHub Actions pipeline, you can follow these steps:
By following these steps, you should be able to identify and resolve the issue with the SSL profile error in your GitHub Actions pipeline. : Integrate TiDB Serverless Branching (Beta) with GitHub | PingCAP Docs |
Beta Was this translation helpful? Give feedback.
-
|
原帖作者:CheeseWong\n原帖时间:2024-07-07 19:02:59.354455\n\n Hi, @ccwukong. First things first, thanks for your liking of TiDB. You mentioned about it works well on your laptop, but doesn’t in GitHub Action. That might because you config a different OS in GitHub Action. So may I know your config file of Github Action pipeline? |
Beta Was this translation helpful? Give feedback.
-
|
原帖作者:ccwukong\n原帖时间:2024-07-08 00:33:40.148964\n\n Hi @CheeseWong, Thanks for reply, here’s my GA workflow yaml file |
Beta Was this translation helpful? Give feedback.
-
|
原帖作者:CheeseWong\n原帖时间:2024-07-08 02:15:24.73893\n\n Hi @Mini256 . have you encountered this? Or do we have any example of GitHub Action? I am not familiar with Node.js. Thanks for helping. |
Beta Was this translation helpful? Give feedback.
-
|
原帖作者:ccwukong\n原帖时间:2024-07-08 02:55:15.309557\n\n hi @CheeseWong, Thanks for the follow up, the problem is solved. I managed to figure out a way to create a self-signed cert in the GA workflow, and it works. What I did:
My updated Yaml file here: Hope it could help others who have the same issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
原帖作者:ccwukong\n原帖时间:2024-07-07 17:04:02.119251\n原帖ID/Slug:9869 / unable-to-connect-to-tidb-from-github-action-workflow\n\n
Hi, I’m currently developing a Node.js based web app. I use MySQL 8 + Drizzle for local development.
When I started to test TiDB serverless, I was able to connect to TiDB via public endpoint with the following connection string
mysql://user:password@public_endpoint:4000/db_name?ssl={"rejectUnauthorized":true}from my laptop, however, when the same command was run by Github Action pipeline, I got the following error:I tried to google the error about 2 hours and unable to find any solution. Wondering if someone here could point me to the right direction.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions