小编Jul*_*Csj的帖子

elasticbeanstalk部署Web环境/var/pids/web.pid失败:没有这样的文件或目录

我想在 AWS Beanstalk 上部署 JAVA 应用程序(基于 PlayFramework 1.x)。我正在使用基于 Corretto 8 的 Web 服务器环境,在 64 位 Amazon Linux 2/3.1.6 上运行。

我还在环境中添加了一个负载均衡器。在部署过程中,我的钩子运行良好(例如数据库模式演变),然后就到了启动 Web 服务器的时候了。

部署失败并出现以下错误:

[ERROR] update processes [web cfn-hup nginx healthd] pid symlinks failed with error Read pid source file /var/pids/web.pid failed with error:open /var/pids/web.pid: no such file or directory
[ERROR] An error occurred during execution of command [app-deploy] - [Track pids in healthd]. Stop running the command. Error: update processes [web cfn-hup nginx healthd] pid symlinks failed with error Read …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services amazon-elastic-beanstalk amazon-linux-2

5
推荐指数
1
解决办法
2093
查看次数

Grails无法实现Domain类

我正在使用Grails 3.1.4,我创建了一些域对象和编写的单元测试.测试在我的计算机上执行正常.

在我的电脑上测试

但是在其他开发者计算机和连续集成平台上,测试失败,例外:

java.lang.IllegalStateException: Either class [ ] is not a domain class or GORM has not been initialized correctly or has already been shutdown. If you are unit testing your entities using the mocking APIs
at org.grails.datastore.gorm.GormEnhancer.stateException(GormEnhancer.groovy:159)
at org.grails.datastore.gorm.GormEnhancer.findValidationApi(GormEnhancer.groovy:173)
at org.grails.datastore.gorm.GormValidateable$Trait$Helper.currentGormValidationApi(GormValidateable.groovy:120)
at org.grails.datastore.gorm.GormValidateable$Trait$Helper.validate(GormValidateable.groovy:87)
at com.cscinfo.platform.constraint.CascadeValidationConstraint.validateValue(CascadeValidationConstraint.groovy:43)
at com.cscinfo.platform.constraint.CascadeValidationConstraint.processValidateWithVetoing_closure1(CascadeValidationConstraint.groovy:29)
at groovy.lang.Closure.call(Closure.java:426)
at com.cscinfo.platform.constraint.CascadeValidationConstraint.processValidateWithVetoing(CascadeValidationConstraint.groovy:28)
at grails.validation.AbstractVetoingConstraint.validateWithVetoing(AbstractVetoingConstraint.java:33)
at grails.validation.ConstrainedProperty.validate(ConstrainedProperty.java:967)
at org.grails.validation.GrailsDomainClassValidator.validatePropertyWithConstraint(GrailsDomainClassValidator.java:211)
at org.grails.validation.GrailsDomainClassValidator.validate(GrailsDomainClassValidator.java:81)
at org.grails.datastore.gorm.GormValidationApi.doValidate(GormValidationApi.groovy:89)
at org.grails.datastore.gorm.GormValidationApi.validate(GormValidationApi.groovy:161)
at org.grails.datastore.gorm.GormValidateable$Trait$Helper.validate(GormValidateable.groovy:87)
at api.mails.MailSpec.Test la validation d'un mail incorrect 2(MailSpec.groovy:66)
Run Code Online (Sandbox Code Playgroud)

似乎GORM无法获取我的域对象.

我无法在我的计算机上重现该错误.任何帮助或文档将不胜感激.谢谢 !

grails grails-orm

1
推荐指数
1
解决办法
2562
查看次数