Comments (16)
docker run 吧,如果是 x86 就用默认的镜像。如果是 M CPU,就选 ARM 的镜像。如果是本地跑,那就下载源码自己编译 osx64 的产物。
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
from agileconfig.
好的,谢谢
from agileconfig.
2023-11-03 21:28:10 current dir path: /app/
2023-11-03 21:28:10 【FreeSql: Master Database】Next recovery time:11/03/2023 21:28:12
2023-11-03 21:28:10 Unhandled exception. System.TypeInitializationException: The type initializer for 'AgileConfig.Server.Service.JwtService' threw an exception.
2023-11-03 21:28:10 ---> System.TypeInitializationException: The type initializer for 'AgileConfig.Server.Data.Freesql.FreeSQL' threw an exception.
2023-11-03 21:28:10 ---> System.Exception: FreeSql: The FreeSql: Master Database status is unavailable and cannot be used until the background checker is restored. FreeSql: Connection string error, or check project properties > Build > Target Platform: x86 | x64, Or use FreeSql.Provider.SqliteCore accessing arm platform
2023-11-03 21:28:10 ---> System.Exception: FreeSql: The FreeSql: Master Database status is unavailable and cannot be used until the background checker is restored. FreeSql: Connection string error, or check project properties > Build > Target Platform: x86 | x64, Or use FreeSql.Provider.SqliteCore accessing arm platform
2023-11-03 21:28:10 ---> System.Exception: FreeSql: Connection string error, or check project properties > Build > Target Platform: x86 | x64, Or use FreeSql.Provider.SqliteCore accessing arm platform
2023-11-03 21:28:10 --- End of inner exception stack trace ---
2023-11-03 21:28:10 at FreeSql.Internal.ObjectPool.ObjectPool1.GetFree(Boolean checkAvailable) 2023-11-03 21:28:10 at FreeSql.Internal.ObjectPool.ObjectPool
1.Get(Nullable1 timeout) 2023-11-03 21:28:10 at FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms) 2023-11-03 21:28:10 --- End of inner exception stack trace --- 2023-11-03 21:28:10 at FreeSql.Internal.CommonProvider.AdoProvider.LoggerException(IObjectPool
1 pool, PrepareCommandResult pc, Exception ex, DateTime dt, StringBuilder logtxt, Boolean isThrowException)
2023-11-03 21:28:10 at FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms)
2023-11-03 21:28:10 at FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(String cmdText, Object parms)
2023-11-03 21:28:10 at AgileConfig.Server.Data.Freesql.EnsureTables.ExistTable(IFreeSql instance) in /src/AgileConfig.Server.Data.Freesql/EnsureTables.cs:line 52
2023-11-03 21:28:10 at AgileConfig.Server.Data.Freesql.EnsureTables.Ensure(IFreeSql instance) in /src/AgileConfig.Server.Data.Freesql/EnsureTables.cs:line 63
2023-11-03 21:28:10 at AgileConfig.Server.Data.Freesql.FreeSQL..cctor() in /src/AgileConfig.Server.Data.Freesql/FreeSQL.cs:line 20
2023-11-03 21:28:10 --- End of inner exception stack trace ---
2023-11-03 21:28:10 at AgileConfig.Server.Data.Freesql.FreeSQL.get_Instance() in /src/AgileConfig.Server.Data.Freesql/FreeSQL.cs:line 23
2023-11-03 21:28:10 at AgileConfig.Server.Service.JwtService..cctor() in /src/AgileConfig.Server.Service/JwtService.cs:line 20
2023-11-03 21:28:10 --- End of inner exception stack trace ---
2023-11-03 21:28:10 at AgileConfig.Server.Service.JwtService..ctor()
2023-11-03 21:28:10 at AgileConfig.Server.Apisite.Startup.ConfigureServices(IServiceCollection services) in /src/AgileConfig.Server.Apisite/Startup.cs:line 50
2023-11-03 21:28:10 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) 2023-11-03 21:28:10 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) 2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection) 2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder
1.<>c__DisplayClass15_0.g__RunPipeline|0(IServiceCollection services)
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.b__0(IServiceCollection services)
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
2023-11-03 21:28:10 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
2023-11-03 21:28:10 at AgileConfig.Server.Apisite.Program.Main(String[] args) in /src/AgileConfig.Server.Apisite/Program.cs:line 33
这是什么错误呢?
from agileconfig.
你是用docker跑的还是怎么跑的?你苹果是x86还是arm?
from agileconfig.
苹果电脑M2芯片 用docker跑的Arm64
from agileconfig.
在Linux也跑了一下Arm64的镜像
parallels@ubuntu-linux-22-04-02-desktop:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0775cb656990 kklldog/agile_config:arm64 "dotnet AgileConfig.…" 15 minutes ago Exited (133) 7 seconds ago agile_config
from agileconfig.
没M系列的mac,不能测试。。。
from agileconfig.
好吧,那Linux也不能部署吗?是部署Arm64的镜像吧?
from agileconfig.
虚拟机
from agileconfig.
好吧,那Linux也不能部署吗?是部署Arm64的镜像吧?
linux x64肯定没问题,大部分玩家都是这个架构。 ARM 的话,我在树莓派 3b 上测试过没问题,其他设备我就没测试过了。不过 理论上 .NET6 跨所有平台,应该是没问题的。
from agileconfig.
没M系列的mac,不能测试。。。
好吧,那Linux也不能部署吗?是部署Arm64的镜像吧?
linux x64肯定没问题,大部分玩家都是这个架构。 ARM 的话,我在树莓派 3b 上测试过没问题,其他设备我就没测试过了。不过 理论上 .NET6 跨所有平台,应该是没问题的。
我晚上回去试试,谢谢你了
from agileconfig.
好吧,那Linux也不能部署吗?是部署Arm64的镜像吧?
linux x64肯定没问题,大部分玩家都是这个架构。 ARM 的话,我在树莓派 3b 上测试过没问题,其他设备我就没测试过了。不过 理论上 .NET6 跨所有平台,应该是没问题的。
您好,请问您在树莓派上部署是下源码编译的还是有现有arm的镜像的?
from agileconfig.
好吧,那Linux也不能部署吗?是部署Arm64的镜像吧?
linux x64肯定没问题,大部分玩家都是这个架构。 ARM 的话,我在树莓派 3b 上测试过没问题,其他设备我就没测试过了。不过 理论上 .NET6 跨所有平台,应该是没问题的。
您好,请问您在树莓派上部署是下源码编译的还是有现有arm的镜像的?
下载 ARM 的就可以,3B 测试过
from agileconfig.
好吧,那Linux也不能部署吗?是部署Arm64的镜像吧?
linux x64肯定没问题,大部分玩家都是这个架构。 ARM 的话,我在树莓派 3b 上测试过没问题,其他设备我就没测试过了。不过 理论上 .NET6 跨所有平台,应该是没问题的。
您好,请问您在树莓派上部署是下源码编译的还是有现有arm的镜像的?
下载 ARM 的就可以,3B 测试过
请问有相关的连接吗,我这试了很多的镜像都不行,都说平台不支持,我的是4b,树莓派的debian系统
from agileconfig.
kklldog/agile_config:arm32
kklldog/agile_config:arm64
from agileconfig.
kklldog/agile_config:arm32 kklldog/agile_config:arm64
好的,谢谢,我试试
from agileconfig.
Related Issues (20)
- agileconfig在导入数据时,如果对应的value为空字符串报错 HOT 13
- [性能] 是否考虑支持 .Net8 AOT ? HOT 3
- 日志能否接入 Seq 或者 Exceptionless ? HOT 5
- 是否有考虑过导入/导出数据的时候,把备注也加进去 HOT 1
- 已解决删了
- 如何关闭Trace 日志 HOT 5
- async 不需要await 的场景下是否可以直接返回 Task 结果?减少async 编译器压力呢? HOT 1
- .Net 7和8中怎么配置使用 HOT 6
- System.IdentityModel.Tokens.Jwt 7.0.3 漏洞问题 HOT 2
- pgsql ssl连接异常 HOT 1
- AgileConfig 配置整合化一 HOT 1
- 缓存问题 HOT 4
- IDiscoveryService 服务发现客户端怎么实时获取刷新的通知 HOT 2
- 非容器对象中如何独立单次获得配置引用 HOT 4
- 升级.net6 之后,,agileconfig onreload 事件会每30秒触发一次,,导致大量无效日志 HOT 2
- 在服务页面能不能添加一个客户端的版本号呢 HOT 3
- agileconfig client instance 转 ConfigurationManager HOT 1
- 配置项的优先级 HOT 4
- 服务注册中的ServiceName可以自动默认为appId吗 HOT 2
- 注册的服务下线了不是实时更新的吗 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agileconfig.