Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,docker运行问题 #31

Closed
underlaw opened this issue Feb 5, 2023 · 27 comments
Closed

大佬,docker运行问题 #31

underlaw opened this issue Feb 5, 2023 · 27 comments

Comments

@underlaw
Copy link

underlaw commented Feb 5, 2023

image

用的openwrt里的docker,api调用17个权限,出错的不少。最后自己停止了

@hongyonghan
Copy link
Owner

是不是你账户的权限问题,这些api的权限都开放了嘛?然后再检查一下添加账户的时候选择了是否为登录调用方式?当调用错误过多就自动停止了,这是我的一个账户的情况。
上次调用统计: 21 | 21 | 0

下次调用时间: 02/05/2023 12:09:20

今日调用统计: 603 | 603 | 0

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

都按教程开放了哦,也是登录方式调用的。有时候全行,有时候又出错。好像随机一样

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image
手动编辑下,保存,刚运行又全调用到了

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image
现在正确 错误对半开吧

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image
用的子账号,继承过来的权限

@hongyonghan
Copy link
Owner

稍等,我开一个账号,你去测试一下,看在我部署的账号上是否可以运行成功。

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image
这次也只调用到了一部分

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

稍等,我开一个账号,你去测试一下,看在我部署的账号上是否可以运行成功。

等你

@hongyonghan
Copy link
Owner

好了,我用我自己的服务器搭建了一个服务,地址和密码放在readme主页上了,你放你的账号到上面然后测试一下吧。看看是不是你的网络问题还是账号的问题。

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

可我不知道你的网站地址哦

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

https://e5.sundayrx.net/ 这个不行

@hongyonghan
Copy link
Owner

不不不,就是github这个项目的readme文件的部署步骤下面

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

收到

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

不不不,就是github这个项目的readme文件的部署步骤下面

image

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

stdout: [40m[1m[33mwarn[39m[22m[49m: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
stdout: Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
stdout: [40m[1m[33mwarn[39m[22m[49m: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
stdout: No XML encryptor configured. Key {109aee77-7ae2-4e9f-bd02-17cbbefea808} may be persisted to storage in unencrypted form.
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Now listening on: http://[::]:1066
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Application started. Press Ctrl+C to shut down.
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Hosting environment: Production
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Content root path: /app
stdout: [41m[30mfail[39m[22m[49m: Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery[7]
stdout: An exception was thrown while deserializing the token.
stdout: Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted.
stdout: ---> System.Security.Cryptography.CryptographicException: The key {1ff46abf-a560-4fd6-9822-cd0279be93cd} was not found in the key ring.
stdout: at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
stdout: at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked)
stdout: at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
stdout: at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
stdout: --- End of inner exception stack trace ---
stdout: at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
stdout: at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Application is shutting down...
stdout: [40m[1m[33mwarn[39m[22m[49m: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
stdout: Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Now listening on: http://[::]:1066
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Application started. Press Ctrl+C to shut down.
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Hosting environment: Production
stdout: [40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
stdout: Content root path: /app
stdout: [41m[30mfail[39m[22m[49m: Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery[7]
stdout: An exception was thrown while deserializing the token.
stdout: Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted.
stdout: ---> System.Security.Cryptography.CryptographicException: The key {1ff46abf-a560-4fd6-9822-cd0279be93cd} was not found in the key ring.
stdout: at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
stdout: at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked)
stdout: at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
stdout: at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
stdout: --- End of inner exception stack trace ---
stdout: at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
stdout: at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)

这是窗口log

@hongyonghan
Copy link
Owner

@hongyonghan
Copy link
Owner

我这可以访问啊

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023 via email

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

用管理员账号运行的情况如下

image
权限应该没问题,用桌面版如上图
image

docker运行主账号,也是很怪异的。如图
image

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image

子账号就会出现,出错多了暂停。是不是因为只授权了17个的原因了

@underlaw
Copy link
Author

underlaw commented Feb 5, 2023

image
别外这docker调用api的数量是随机的吗。 主账号没出错,但这每次个数都不一样

@hongyonghan
Copy link
Owner

调用随机的,我也有子账号,子账号也没有问题。你看看主账号给子账号的权限是不是管理员权限啊?一般是管理员权限就没问题啊

@underlaw
Copy link
Author

underlaw commented Feb 6, 2023

调用随机的,我也有子账号,子账号也没有问题。你看看主账号给子账号的权限是不是管理员权限啊?一般是管理员权限就没问题啊

那主账号是正常的了,是否就是将子账号设为管理员,请指教下

@underlaw
Copy link
Author

underlaw commented Feb 6, 2023

调用随机的,我也有子账号,子账号也没有问题。你看看主账号给子账号的权限是不是管理员权限啊?一般是管理员权限就没问题啊

image
设这个就可以吗

@hongyonghan
Copy link
Owner

也可以。你试试啊

@underlaw
Copy link
Author

underlaw commented Feb 6, 2023

也可以。你试试啊

image
折腾好了,在注册应用里面有个“组”,把这子账号加进“应用程序”中的“组”里,就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants