hectorqin / reader

阅读3服务器版,桌面端,iOS可用。后端 Kotlin + Spring Boot + Vert.x + Coroutine ;前端 Vue.js + Element。麻烦点点star,关注一下公众号【假装大佬】❗️ Demo服务器由于未备案已被关停,建议自行搭建
GNU General Public License v3.0
8.43k stars 5.24k forks source link

3.1版本docker-compose模式部署打开报错 #401

Closed lyalexzz closed 1 year ago

lyalexzz commented 1 year ago

"io.vertx.core.json.DecodeException: Failed to decode:No content to map due to end-of-input\n at [Source: (String)\"\"; line: 1, column: 0]"

jiaogege123 commented 1 year ago

解决了吗,我也报错

lyalexzz commented 1 year ago

jiaogege123 @.***>于2023年6月27日 周二21:49写道:

解决了吗,我也报错

— Reply to this email directly, view it on GitHub https://github.com/hectorqin/reader/issues/401#issuecomment-1609548949, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJ7CXLCEBR2WVUB2G337STXNLQF5ANCNFSM6AAAAAAZT3XI2A . You are receiving this because you authored the thread.Message ID: @.***>

我降级到3.04就可以了 3.1一直不行

jiaogege123 commented 1 year ago

我的也是,我的物理机装ubuntu就没事,我的云服装ubuntu加阅读就这样,不知道那个步骤的问题  

3433761908 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年6月27日(星期二) 晚上9:51 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [hectorqin/reader] 3.1版本docker-compose模式部署打开报错 (Issue #401)

jiaogege123 @.***>于2023年6月27日 周二21:49写道:

> 解决了吗,我也报错 > > — > Reply to this email directly, view it on GitHub > <" rel="noopener" target="_self">https://github.com/hectorqin/reader/issues/401#issuecomment-1609548949&gt;;, > or unsubscribe > <" rel="noopener" target="_self">https://github.com/notifications/unsubscribe-auth/AQJ7CXLCEBR2WVUB2G337STXNLQF5ANCNFSM6AAAAAAZT3XI2A&gt;; > . > You are receiving this because you authored the thread.Message ID: > @.***> > 我降级到3.04就可以了 3.1一直不行

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

hectorqin commented 1 year ago

贴一下详细日志吧

OyeNeko commented 1 year ago

[] [scheduling-1] 14:54:00.001 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [] [scheduling-1] 14:59:00.001 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [175d3a89] [DefaultDispatcher-worker-2] 15:00:00.004 INFO YueduApi - 开始检查书架书籍更新 [175d3a89] [DefaultDispatcher-worker-2] 15:00:00.004 INFO Ext - Read file from storage name: [data, default, bookshelf] path: /storage/data/default/bookshelf.json [175d3a89] [DefaultDispatcher-worker-2] 15:00:00.007 INFO Ext - Read file from storage name: [data, users] path: /storage/data/users.json [175d3a89] [DefaultDispatcher-worker-2] 15:00:00.013 INFO Ext - Read file from storage name: [data, adminpwd, bookshelf] path: /storage/data/adminpwd/bookshelf.json [175d3a89] [DefaultDispatcher-worker-2] 15:00:00.013 INFO YueduApi - 书架书籍更新检查结束 [175d3a89] [scheduling-1] 15:04:00.001 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [175d3a89] [scheduling-1] 15:09:00.000 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [60e95773] [DefaultDispatcher-worker-2] 15:10:00.004 INFO YueduApi - 开始检查书架书籍更新 [60e95773] [DefaultDispatcher-worker-2] 15:10:00.004 INFO Ext - Read file from storage name: [data, default, bookshelf] path: /storage/data/default/bookshelf.json [60e95773] [DefaultDispatcher-worker-2] 15:10:00.004 INFO Ext - Read file from storage name: [data, users] path: /storage/data/users.json [60e95773] [DefaultDispatcher-worker-2] 15:10:00.011 INFO Ext - Read file from storage name: [data, adminpwd, bookshelf] path: /storage/data/adminpwd/bookshelf.json [60e95773] [DefaultDispatcher-worker-2] 15:10:00.011 INFO YueduApi - 书架书籍更新检查结束 [60e95773] [scheduling-1] 15:14:00.000 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [60e95773] [scheduling-1] 15:19:00.000 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [33d0834f] [DefaultDispatcher-worker-2] 15:20:00.001 INFO YueduApi - 开始检查书架书籍更新 [33d0834f] [DefaultDispatcher-worker-2] 15:20:00.002 INFO Ext - Read file from storage name: [data, default, bookshelf] path: /storage/data/default/bookshelf.json [33d0834f] [DefaultDispatcher-worker-2] 15:20:00.002 INFO Ext - Read file from storage name: [data, users] path: /storage/data/users.json [33d0834f] [DefaultDispatcher-worker-2] 15:20:00.003 INFO Ext - Read file from storage name: [data, adminpwd, bookshelf] path: /storage/data/adminpwd/bookshelf.json [33d0834f] [DefaultDispatcher-worker-2] 15:20:00.004 INFO YueduApi - 书架书籍更新检查结束 [33d0834f] [scheduling-1] 15:24:00.000 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [33d0834f] [scheduling-1] 15:29:00.001 INFO Ext - Read file from storage name: [data, license] path: /storage/data/license.key [b391d69c] [DefaultDispatcher-worker-2] 15:30:00.001 INFO YueduApi - 开始检查书架书籍更新 [b391d69c] [DefaultDispatcher-worker-2] 15:30:00.001 INFO Ext - Read file from storage name: [data, default, bookshelf] path: /storage/data/default/bookshelf.json [b391d69c] [DefaultDispatcher-worker-2] 15:30:00.001 INFO Ext - Read file from storage name: [data, users] path: /storage/data/users.json [b391d69c] [DefaultDispatcher-worker-2] 15:30:00.003 INFO Ext - Read file from storage name: [data, adminpwd, bookshelf] path: /storage/data/adminpwd/bookshelf.json [b391d69c] [DefaultDispatcher-worker-2] 15:30:00.003 INFO YueduApi - 书架书籍更新检查结束 [94d61610] [vert.x-eventloop-thread-0] 15:31:08.143 INFO RestVerticle - POST http://reader.007.com/reader3/saveBookSources?accessToken=adminpwd:233a2d7fe14a6af13fda66d1358375dd&v=1688455865570 [94d61610] [DefaultDispatcher-worker-2] 15:31:08.508 INFO Ext - Read file from storage name: [data, users] path: /storage/data/users.json [94d61610] [DefaultDispatcher-worker-2] 15:31:08.704 INFO Ext - Read file from storage name: [data, adminpwd, bookSource] path: /storage/data/adminpwd/bookSource.json [94d61610] [DefaultDispatcher-worker-2] 15:31:08.705 INFO Ext - Read file from storage name: [data, default, bookSource] path: /storage/data/default/bookSource.json [94d61610] [DefaultDispatcher-worker-2] 15:31:08.706 ERROR Ext - 解析内容出错: io.vertx.core.json.DecodeException: Failed to decode:No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0] 内容:

[94d61610] [DefaultDispatcher-worker-2] 15:31:08.706 ERROR YueduApi - onHandlerError: io.vertx.core.json.DecodeException: Failed to decode:No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0] at io.vertx.core.json.jackson.JacksonCodec.fromParser(JacksonCodec.java:97) at io.vertx.core.json.jackson.JacksonCodec.fromString(JacksonCodec.java:57) at io.vertx.core.json.JsonArray.fromJson(JsonArray.java:845) at io.vertx.core.json.JsonArray.(JsonArray.java:54) at com.htmake.reader.utils.ExtKt.asJsonArray(Ext.kt:494) at com.htmake.reader.api.controller.BookSourceController.getUserBookSourceJson(BookSourceController.kt:85) at com.htmake.reader.api.controller.BookSourceController.saveBookSources(BookSourceController.kt:164) at com.htmake.reader.api.YueduApi$initRouter$8.invokeSuspend(YueduApi.kt:212) at com.htmake.reader.api.YueduApi$initRouter$8.invoke(YueduApi.kt) at com.htmake.reader.api.YueduApi$initRouter$8.invoke(YueduApi.kt) at com.htmake.reader.verticle.RestVerticle$coroutineHandler$1$2.invokeSuspend(RestVerticle.kt:163) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input at [Source: (String)""; line: 1, column: 0] at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4145) at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3971) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2276) at io.vertx.core.json.jackson.JacksonCodec.fromParser(JacksonCodec.java:95) ... 16 common frames omitted [94d61610] [DefaultDispatcher-worker-2] 15:31:08.713 INFO LoggerHandlerImpl - 172.19.0.1 - - [Tue, 4 Jul 2023 07:31:08 GMT] "POST /reader3/saveBookSources?accessToken=adminpwd:233a2d7fe14a6af13fda66d1358375dd&v=1688455865570 HTTP/1.1" 200 171 "https://reader.007.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" [94d61610] [vert.x-eventloop-thread-0] 15:31:08.718 INFO RestVerticle - 客户端已断开链接,终止运行

hectorqin commented 1 year ago

看一下 /storage/data/default/bookSource.json 这个文件的内容。注意路径

OyeNeko commented 1 year ago

/storage/data/default,这个路径下的bookSource.json是空的

OyeNeko commented 1 year ago

root@6c434ec12688:/storage/data/adminpwd# cat bookGroup.json [{"groupId":-1,"groupName":"全部","order":-10,"show":true},{"groupId":-2,"groupName":"本地","order":-9,"show":true},{"groupId":-3,"groupName":"音频","order":-8,"show":true},{"groupId":-4,"groupName":"未分组","order":-7,"show":true},{"groupId":-5,"groupName":"更新错误","order":-6,"show":true}]

OyeNeko commented 1 year ago

大佬请教一下,https://legado.pages.dev/sy-yc.json是不是这个挂了,导致默认源配置不上

hectorqin commented 1 year ago

是的,bookSource.json 是空的,导致出错

hectorqin commented 1 year ago

已更新脚本使用的书源地址