[GH-ISSUE #6] github action 部署失败 #4

Closed
opened 2026-02-26 12:17:33 +03:00 by kerem · 15 comments
Owner

Originally created by @maimaiIn on GitHub (Dec 23, 2024).
Original GitHub issue: https://github.com/beilunyang/moemail/issues/6

请问这个是什么问题
image

fork后添加了这几个变量部署的
image

Originally created by @maimaiIn on GitHub (Dec 23, 2024). Original GitHub issue: https://github.com/beilunyang/moemail/issues/6 请问这个是什么问题 ![image](https://github.com/user-attachments/assets/b6710d26-06a2-4f39-a429-607f57d27b36) fork后添加了这几个变量部署的 ![image](https://github.com/user-attachments/assets/ef99e9fc-5c6c-42d9-af4e-80b7f2866727)
kerem closed this issue 2026-02-26 12:17:33 +03:00
Author
Owner

@beilunyang commented on GitHub (Dec 23, 2024):

请确认 CLOUDFLARE_API_TOKEN 设置是否正确,CLOUDFLARE_API_TOKEN 是否设置了正确权限

<!-- gh-comment-id:2558928263 --> @beilunyang commented on GitHub (Dec 23, 2024): 请确认 `CLOUDFLARE_API_TOKEN `设置是否正确,`CLOUDFLARE_API_TOKEN `是否设置了正确权限
Author
Owner

@maimaiIn commented on GitHub (Dec 23, 2024):

cf_token权限有这些
image

前几次我用了Global API Key部署也不通过

<!-- gh-comment-id:2558944285 --> @maimaiIn commented on GitHub (Dec 23, 2024): cf_token权限有这些 ![image](https://github.com/user-attachments/assets/43b65c98-ed56-4df9-ad04-8c512b27df01) 前几次我用了Global API Key部署也不通过
Author
Owner

@binceo commented on GitHub (Dec 23, 2024):

添加D1的编辑权限

<!-- gh-comment-id:2559126553 --> @binceo commented on GitHub (Dec 23, 2024): 添加D1的编辑权限
Author
Owner

@maimaiIn commented on GitHub (Dec 23, 2024):

在给token添加D1权限后又出现了新的错误
image
错误信息:
image

<!-- gh-comment-id:2559147361 --> @maimaiIn commented on GitHub (Dec 23, 2024): 在给token添加D1权限后又出现了新的错误 ![image](https://github.com/user-attachments/assets/6d4dd4ca-44d5-4d70-b89e-4057a93005ed) 错误信息: ![image](https://github.com/user-attachments/assets/a481a9a0-40ed-4e91-840e-5731ff6532c1)
Author
Owner

@binceo commented on GitHub (Dec 23, 2024):

去cloudflare的pages先创建一个pages,选择连接到Git,连接之后就可以了

<!-- gh-comment-id:2559152297 --> @binceo commented on GitHub (Dec 23, 2024): 去cloudflare的pages先创建一个pages,选择连接到Git,连接之后就可以了
Author
Owner

@maimaiIn commented on GitHub (Dec 23, 2024):

部署上了,但点击使用Github登录显示的这个
image
后台已经配置了
image
Homepage URL 配置的是自定义域名https://moemail.xxxxx.xyz
Authorization callback URL 配置的是 https://moemail.xxxxx.xyz/api/auth/callback/github

对了为什么我后台只有一个 page?没看到新增的workers

<!-- gh-comment-id:2559376355 --> @maimaiIn commented on GitHub (Dec 23, 2024): 部署上了,但点击使用Github登录显示的这个 ![image](https://github.com/user-attachments/assets/1df57cc0-43b4-42a2-a683-a10a10be45b5) 后台已经配置了 ![image](https://github.com/user-attachments/assets/cd075d1a-15b2-4395-bdf3-3d36c9a43443) *Homepage URL* 配置的是自定义域名https://moemail.xxxxx.xyz *Authorization callback URL* 配置的是 https://moemail.xxxxx.xyz/api/auth/callback/github 对了为什么我后台只有一个 page?没看到新增的workers
Author
Owner

@binceo commented on GitHub (Dec 23, 2024):

在Github上的Actions中重新部署一遍就好了

<!-- gh-comment-id:2559409028 --> @binceo commented on GitHub (Dec 23, 2024): 在Github上的Actions中重新部署一遍就好了
Author
Owner

@maimaiIn commented on GitHub (Dec 23, 2024):

重新部署后可以进行登陆,但验证后仍然
image
我的cf仍然只有page,我看action里面,每次worker任务都被跳过了(push 了两次tag都是这样 tag 号递增)
image

<!-- gh-comment-id:2559704798 --> @maimaiIn commented on GitHub (Dec 23, 2024): 重新部署后可以进行登陆,但验证后仍然 ![image](https://github.com/user-attachments/assets/18bb18fc-98fc-4845-a44a-4ec2adccbec3) 我的cf仍然只有page,我看action里面,每次worker任务都被跳过了(push 了两次tag都是这样 tag 号递增) ![image](https://github.com/user-attachments/assets/8d30c6ab-df78-484b-a0d7-e31c59828a95)
Author
Owner

@binceo commented on GitHub (Dec 23, 2024):

这里我也是直接跳过,所以不是这里的问题。至于你说的没有workers,那是不正常的,我cf上一共生成两个workers,分别是[email-receiver-worker]和[cleanup-worker],如果你的没有,可以考虑重新同步fork后再试试。不过图所示,可以登录但是返回error,很有可能是auth应用程序的问题,请检查id,密钥以及callback URL

<!-- gh-comment-id:2559761333 --> @binceo commented on GitHub (Dec 23, 2024): 这里我也是直接跳过,所以不是这里的问题。至于你说的没有workers,那是不正常的,我cf上一共生成两个workers,分别是[email-receiver-worker]和[cleanup-worker],如果你的没有,可以考虑重新同步fork后再试试。不过图所示,可以登录但是返回error,很有可能是auth应用程序的问题,请检查id,密钥以及callback URL
Author
Owner

@maimaiIn commented on GitHub (Dec 24, 2024):

同步后重新部署多了一个worker
image
github登陆仍然返回 Server error,浏览器控制台的报错GET https://moemail.xxxxx.xyz/api/auth/error?error=Configuration 500 (Internal Server Error)Understand this errorAI

<!-- gh-comment-id:2560566453 --> @maimaiIn commented on GitHub (Dec 24, 2024): 同步后重新部署多了一个worker ![image](https://github.com/user-attachments/assets/c471cf39-6cf6-4b99-ac20-85a615ab08c5) github登陆仍然返回 *Server error*,浏览器控制台的报错`GET https://moemail.xxxxx.xyz/api/auth/error?error=Configuration 500 (Internal Server Error)Understand this errorAI`
Author
Owner

@beilunyang commented on GitHub (Dec 24, 2024):

同步后重新部署多了一个worker image github登陆仍然返回 Server error,浏览器控制台的报错GET https://moemail.xxxxx.xyz/api/auth/error?error=Configuration 500 (Internal Server Error)Understand this errorAI

现在新增了手动触发action, 你手动触发action重新部署下,记得把所有选项都勾上。
image

<!-- gh-comment-id:2560662870 --> @beilunyang commented on GitHub (Dec 24, 2024): > 同步后重新部署多了一个worker ![image](https://private-user-images.githubusercontent.com/171226520/398302510-c471cf39-6cf6-4b99-ac20-85a615ab08c5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzUwMTczNTMsIm5iZiI6MTczNTAxNzA1MywicGF0aCI6Ii8xNzEyMjY1MjAvMzk4MzAyNTEwLWM0NzFjZjM5LTZjZjYtNGI5OS1hYzIwLTg1YTYxNWFiMDhjNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQxMjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MTIyNFQwNTEwNTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMzg4YTYxMTFiYzc4Y2I4YThjZmUyOTI4MzYzNjA4N2JiOTViOTQ3MzE5MGJjZjg2NzczN2E2YzE3N2I1MDkwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.PthBOSe5hbL0LQrbw_f0Dti2IugBF6UcS3eZcBnxRVM) github登陆仍然返回 _Server error_,浏览器控制台的报错`GET https://moemail.xxxxx.xyz/api/auth/error?error=Configuration 500 (Internal Server Error)Understand this errorAI` 现在新增了手动触发action, 你手动触发action重新部署下,记得把所有选项都勾上。 ![image](https://github.com/user-attachments/assets/e4099dee-e748-4958-af9f-7c13ce2c96bd)
Author
Owner

@maimaiIn commented on GitHub (Dec 24, 2024):

手动触发action后可以看到任务都跑了,点击github登陆 google安全报警
image
点击仍要访问,依然是 Server error

<!-- gh-comment-id:2560669923 --> @maimaiIn commented on GitHub (Dec 24, 2024): 手动触发action后可以看到任务都跑了,点击github登陆 google安全报警 ![image](https://github.com/user-attachments/assets/a2d85554-001d-4859-bb29-820ab325f6f2) 点击仍要访问,依然是 *Server error*
Author
Owner

@beilunyang commented on GitHub (Dec 24, 2024):

手动触发action后可以看到任务都跑了,点击github登陆 google安全报警 image 点击仍要访问,依然是 Server error

要不加下微信交流群吧,群里有很多群友已经部署成功,可以和他们一起交流下

<!-- gh-comment-id:2560703714 --> @beilunyang commented on GitHub (Dec 24, 2024): > 手动触发action后可以看到任务都跑了,点击github登陆 google安全报警 ![image](https://private-user-images.githubusercontent.com/171226520/398326483-a2d85554-001d-4859-bb29-820ab325f6f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzUwMjA3MDcsIm5iZiI6MTczNTAyMDQwNywicGF0aCI6Ii8xNzEyMjY1MjAvMzk4MzI2NDgzLWEyZDg1NTU0LTAwMWQtNDg1OS1iYjI5LTgyMGFiMzI1ZjZmMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQxMjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MTIyNFQwNjA2NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hZTAzMTlkZTdhNzJmNmExMzNmMjMyY2FlNGZkOGYzNzc3ZTYxMTRjNDUxMjU0YTI3YzJjZDYxODlmZWYxZjZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yDxOEamcv_J99l-73cOph-pWpRWGh0SL07O9cxNLjrc) 点击仍要访问,依然是 _Server error_ 要不加下微信交流群吧,群里有很多群友已经部署成功,可以和他们一起交流下
Author
Owner

@sundys commented on GitHub (Dec 25, 2024):

部署到这里错误,咋搞,检查了5个变量,及token权限确认没有问题.重试了多次都是这个地方错误

2024-12-25_114158

<!-- gh-comment-id:2561585839 --> @sundys commented on GitHub (Dec 25, 2024): 部署到这里错误,咋搞,检查了5个变量,及token权限确认没有问题.重试了多次都是这个地方错误 ![2024-12-25_114158](https://github.com/user-attachments/assets/d221a3a8-d185-419d-9c18-2cb80a90118b)
Author
Owner

@beilunyang commented on GitHub (Dec 25, 2024):

部署到这里错误,咋搞,检查了5个变量,及token权限确认没有问题.重试了多次都是这个地方错误

2024-12-25_114158

先去 cloudflare dashboard 新建一个 pages 项目,项目名为 moemail

<!-- gh-comment-id:2561620258 --> @beilunyang commented on GitHub (Dec 25, 2024): > 部署到这里错误,咋搞,检查了5个变量,及token权限确认没有问题.重试了多次都是这个地方错误 > > ![2024-12-25_114158](https://private-user-images.githubusercontent.com/3960445/398508546-d221a3a8-d185-419d-9c18-2cb80a90118b.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzUxMDQyMzAsIm5iZiI6MTczNTEwMzkzMCwicGF0aCI6Ii8zOTYwNDQ1LzM5ODUwODU0Ni1kMjIxYTNhOC1kMTg1LTQxOWQtOWMxOC0yY2I4MGE5MDExOGIuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMjVUMDUxODUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWFhNzA0YzY1MmVjMGVlMTVjYzFlYmY0MjZkZWU4MjY3ZGFkN2IxNjkxYTBmZDBhNWU5NWQzMTBmMjQ3YTdlZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.jM0OSfOguxHgYKWHkinxR6k1myeMLBb5NXPeNi5hEnk) 先去 cloudflare dashboard 新建一个 pages 项目,项目名为 moemail
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/moemail#4
No description provided.