jamebal / jmal-cloud-server

JmalCloud It's a private cloud storage project that makes it simple and secure to manage your files in the cloud. JmalCloud 是一款私有云存储网盘项目,能够简单安全管理您的云端文件
https://jmalcloud.github.io
MIT License
298 stars 76 forks source link

源码部署教程 #148

Open GithubGey opened 3 months ago

GithubGey commented 3 months ago

可以出一期或者文档的源码启动部署教程不

jamebal commented 3 months ago

不建议源码部署, 因为有各种各样的依赖, 很难跑起来

zaqai commented 2 months ago

不建议源码部署, 因为有各种各样的依赖, 很难跑起来

你好, 我是一名学生, 想二次开发, 新增或修改一些功能, 作为练手项目, 便于日后找工作. 运行时有些错误, 方便出一个源码启动教程或帮忙看看错误吗

jamebal commented 2 months ago

https://github.com/jamebal/jmal-cloud-view?tab=readme-ov-file#dev

GithubGey commented 2 months ago

https://github.com/jamebal/jmal-cloud-view?tab=readme-ov-file#dev

谢谢哈 我后端跑起来了,过俩天有空把前端跑起来 前端我的版本是 node v18.18.2,支持吧

jamebal commented 2 months ago

node 建议用v16, 用nvm切换一下版本就行

zaqai commented 2 months ago

可以帮我看一下什么问题吗? 数据库我直接连的docker compose运行起来的mongodb, 但好像还是少点东西

2024-08-13 17:28:54.336 |INFO  |cluster-ClusterId{value='66bb2755097e0519a3c72d34', description='null'}-xxx:37017 |SLF4JLogger.java:76 |org.mongodb.driver.cluster |Exception in monitor thread while connecting to server xxx:37017
com.mongodb.MongoSocketReadException: Prematurely reached end of stream
...
2024-08-13 17:28:54.445 |INFO  |main |SLF4JLogger.java:71 |org.mongodb.driver.cluster |No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=xxx:37017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Prematurely reached end of stream}}]}. Waiting for 30000 ms before timing out
...
2024-08-13 17:29:24.450 |WARN  |main |AbstractApplicationContext.java:632 |org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext |Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server
2024-08-13 17:29:24.466 |INFO  |main |ConditionEvaluationReportLogger.java:82 |org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLogger |

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Error creating bean with name 'webdavConfig' defined in file [F:\project\java_project\jmal-cloud-server\target\classes\com\jmal\clouddisk\webdav\WebdavConfig.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'myRealm' defined in file [F:\project\java_project\jmal-cloud-server\target\classes\com\jmal\clouddisk\webdav\MyRealm.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'fileService': Error creating bean with name 'fileServiceImpl': Unsatisfied dependency expressed through field 'videoProcessService': Error creating bean with name 'videoProcessService': Unsatisfied dependency expressed through field 'commonFileService': Error creating bean with name 'commonFileService': Unsatisfied dependency expressed through field 'luceneService': Error creating bean with name 'luceneService' defined in file [F:\project\java_project\jmal-cloud-server\target\classes\com\jmal\clouddisk\lucene\LuceneService.class]: Unsatisfied dependency expressed through constructor parameter 8: Error creating bean with name 'rebuildIndexTaskService': Invocation of init method failed
...
jamebal commented 2 months ago

测试下docker compose 中填写的 MONGODB_URI是否正确

zaqai commented 2 months ago

感谢,已经跑起来了