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

使用云效部署前端,node.js单元测试失败 #27

Open
Zynismus16 opened this issue Jun 2, 2023 · 2 comments
Open

使用云效部署前端,node.js单元测试失败 #27

Zynismus16 opened this issue Jun 2, 2023 · 2 comments

Comments

@Zynismus16
Copy link

以下是运行错误日志,看是缺了/root/workspace/seezoon-stack/package.json但是我不知道该怎么做

[10:34:51] npm info it worked if it ends with ok
[10:34:51] npm info using [email protected]
[10:34:51] npm info using [email protected]
[10:34:51] npm ERR! code ENOENT
[10:34:51] npm ERR! syscall open
[10:34:51] npm ERR! path /root/workspace/seezoon-stack/package.json
[10:34:51] npm ERR! errno -2
[10:34:51] npm ERR! enoent ENOENT: no such file or directory, open '/root/workspace/seezoon-stack/package.json'
[10:34:51] npm ERR! enoent This is related to npm not being able to find a file.
[10:34:51] npm ERR! enoent 
[10:34:51] npm timing npm Completed in 63ms
[10:34:51] 
[10:34:51] npm ERR! A complete log of this run can be found in:
[10:34:51] npm ERR!     /root/.npm/.npm_cache/_logs/2023-06-02T02_34_51_107Z-debug.log
[10:34:51] [INFO] 
[10:34:51] [INFO] 
[10:34:51] oss-cn-beijing-internal.aliyuncs.com
[10:34:51] oss-cn-beijing-internal.aliyuncs.com
[10:34:51] [INFO] prepare to upload report mochawesome-report
[10:34:51] [ERROR] occurred error: open mochawesome-report: no such file or directory
[10:34:51] [ERROR] BUILD ERROR
[10:34:51] [ERROR] 130490392
[10:34:51] [ERROR] 1
@Zynismus16
Copy link
Author

后端使用云效主机部署也运行失败
以下是日志

seezoon-admin-server is not running
JAVA_OPTS=-Xmx512m -Xms128m -XX:AutoBoxCacheMax=2000 -XX:+UseG1GC -verbose:gc -Xlog:gc*,safepoint:./logs/gc.log:time,uptime:filecount=1,filesize=10M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./logs/dump
*** Print Application Start Parameters ***
SERVER_OTPS=--server.port=8080 --server.tomcat.basedir=. --server.tomcat.connection-timeout=5s --server.tomcat.max-connections=2000 --server.tomcat.accept-count=200 --server.tomcat.threads.min-spare=10 --server.tomcat.threads.max=500 --server.shutdown=graceful --spring.lifecycle.timeout-per-shutdown-phase=10s --spring.config.additional-location=./conf/
seezoon-admin-server not running
]
[2023-06-02 11:51:30]Execution result code:[
]

@Zynismus16
Copy link
Author

直接运行java文件日志提示

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-06-02 11:53:55.347 ERROR 18059 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

好像是提示数据库配置问题,
我的数据库版本
mysql 8.0.24
数据库参数
数据库名;seezoon-stack
用户:seezoon-stack
密码:123456

配置文件参数

spring.datasource.url=jdbc:mysql://127.0.0.1:3306/seezoon-stack?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&connectTimeout=1000&rewriteBatchedStatements=true
spring.datasource.hikari.username=seezoon-stack
spring.datasource.hikari.password=123456

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

1 participant