V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ila
V2EX  ›  问与答

joplin 翻车

  •  
  •   ila · 2021-09-21 17:23:37 +08:00 · 2884 次点击
    这是一个创建于 1195 天前的主题,其中的信息可能已经有所发展或是发生改变。

    昨天更新软件后,同步一直失败。

    27 条回复    2022-05-31 09:31:52 +08:00
    calano
        1
    calano  
       2021-09-21 17:59:28 +08:00 via Android
    应该是最近版本改了结构,多端软件都要更新才能用
    ila
        2
    ila  
    OP
       2021-09-21 18:29:38 +08:00 via Android
    @calano 你的更新 pc 端软件后,
    能够正常同步 webdav 的数据吗?

    现在因为不能正常同步,考虑迁移到其它笔记软件。
    还好是中秋,有时间。
    ila
        3
    ila  
    OP
       2021-09-21 19:04:11 +08:00 via Android
    自建的 webdv,android app 升级后还能同步成功。
    calano
        4
    calano  
       2021-09-21 20:02:15 +08:00 via Android
    @ila 可以,先是手机更新了,后来启动 pc 端报错,告知需要更新,正常更新就行,现在使用没有遇到同步问题
    ila
        5
    ila  
    OP
       2021-09-21 20:44:56 +08:00
    ```
    2021-09-21 20:41:50: "Database was open successfully"
    2021-09-21 20:41:50: "Checking for database schema update..."
    2021-09-21 20:41:50: "Current database version", "{"version":39,"table_fields_version":39}"
    2021-09-21 20:41:50: "Upgrading database from version 39"
    2021-09-21 20:41:50: "New version: 39. Previously recorded version: 39"
    2021-09-21 20:41:50: "KeychainService: checking if keychain supported"
    2021-09-21 20:41:50: "KeychainService: check was already done - skipping. Supported:", "1"
    2021-09-21 20:41:50: e2ee/utils: "Master password is not set - trying to get it from the active master key..."
    2021-09-21 20:41:50: handleSyncStartupOperation: "Processing operation:", "0"
    2021-09-21 20:41:50: App: "Client ID: 25a66838d06c4ec69925eb7837962d0d"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: "ResourceFetcher: Auto-add resources: Mode: always"
    2021-09-21 20:41:50: "ResourceFetcher: Auto-added resources: 0"
    2021-09-21 20:41:50: App: ""syncInfoCache" was changed - setting up encryption related code"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: App: ""syncInfoCache" was changed - setting up encryption related code"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: App: ""syncInfoCache" was changed - setting up encryption related code"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: "app.start: doing regular boot"
    2021-09-21 20:41:50: App: ""syncInfoCache" was changed - setting up encryption related code"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: App: ""syncInfoCache" was changed - setting up encryption related code"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: App: ""syncInfoCache" was changed - setting up encryption related code"
    2021-09-21 20:41:50: e2ee/utils: "Trying to load 0 master keys..."
    2021-09-21 20:41:50: e2ee/utils: "Loaded master keys: 0"
    2021-09-21 20:41:50: RevisionService: "RevisionService::runInBackground: Starting background service with revision collection interval 600000"
    2021-09-21 20:41:50: SpellCheckerServiceDriverNative: "Set effective language from "en-US" to "en-US""
    2021-09-21 20:41:51: "DecryptionWorker: cannot start because no master key is currently loaded."
    2021-09-21 20:41:51: "Preparing scheduled sync"
    2021-09-21 20:41:51: "Starting scheduled sync"
    2021-09-21 20:41:51: Synchronizer: "Sync: starting: Starting synchronisation to target 6... supportsAccurateTimestamp = false; supportsMultiPut = false [1632228111847]"
    2021-09-21 20:41:51: Synchronizer: "Indexing resources..."
    2021-09-21 20:41:51: "ResourceService::indexNoteResources: Start"
    2021-09-21 20:41:52: "ResourceService::indexNoteResources: Completed"
    2021-09-21 20:41:52: Synchronizer: "Sync target remote info:", "{"version_":3,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0}}"
    2021-09-21 20:41:52: Synchronizer: "Sync target is already setup - checking it..."
    2021-09-21 20:41:52: Synchronizer: "Sync target local info:", "{"version_":3,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0}}"
    2021-09-21 20:41:54: RevisionService: "RevisionService::maintenance: Starting..."
    2021-09-21 20:41:54: RevisionService: "RevisionService::maintenance: Service is enabled"
    2021-09-21 20:41:54: RevisionService: "RevisionService::collectRevisions: Created revisions for 0 notes"
    2021-09-21 20:41:54: RevisionService: "RevisionService::maintenance: Done in 121ms"
    2021-09-21 20:42:00: "SearchEngine: Updating FTS table..."
    2021-09-21 20:42:00: "SearchEngine: Updated FTS table in 3ms. Inserted: 0. Deleted: 0"
    2021-09-21 20:42:20: "ResourceService::indexNoteResources: Start"
    2021-09-21 20:42:20: "ResourceService::indexNoteResources: Completed"
    2021-09-21 20:42:20: "ResourceService::deleteOrphanResources:", "[]"
    2021-09-21 20:42:24: Synchronizer: "TaskQueue.stop: syncDownload: waiting for tasks to complete: 0"
    2021-09-21 20:42:24: Synchronizer: "TaskQueue.stop: syncDownload: Done, waited for 0"
    2021-09-21 20:42:24: Synchronizer: "Sync: cancelling"
    2021-09-21 20:42:33: "SearchEngine: Updating FTS table..."
    2021-09-21 20:42:33: "SearchEngine: Updated FTS table in 47ms. Inserted: 1. Deleted: 0"
    2021-09-21 20:42:36: PluginState: "FetchError: request to https://raw.githubusercontent.com/joplin/plugins/master/manifests.json failed, reason: getaddrinfo ENOENT raw.githubusercontent.com
    Code: ENOENT
    FetchError: request to https://raw.githubusercontent.com/joplin/plugins/master/manifests.json failed, reason: getaddrinfo ENOENT raw.githubusercontent.com
    at ClientRequest.<anonymous> (C:\Program Files\Joplin\resources\app.asar\node_modules\@joplin\lib\node_modules\node-fetch\index.js:133:11)
    at ClientRequest.emit (events.js:310:20)
    at ClientRequest.EventEmitter.emit (domain.js:482:12)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:310:20)
    at TLSSocket.EventEmitter.emit (domain.js:482:12)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    ```

    看 log 是同步完了,但是左下角的同步按钮一直是同步中状态。
    ila
        6
    ila  
    OP
       2021-09-21 20:45:41 +08:00
    哎。已经搭建了 wiznote 私有服务器,明天还是这样只能迁移到为知。
    bytesfold
        7
    bytesfold  
       2021-09-22 09:05:12 +08:00
    还是 OneNote 香。。
    janda
        8
    janda  
       2021-09-22 11:42:42 +08:00   ❤️ 1
    我的 cloudreve(ip)自建网盘、用上面的 webdav 一直同步失败!尤其是后面都连接不上( PC 端)、手机端就没问题了

    后来通过 raiDrive 通过 webdav 挂载成本地盘才行!

    joplin 选择 file system 同步、选择挂载的盘。。。。

    我现在只能这样解决问题,难道跟 webdav 是 ip 而不是域名导致的吗?

    后面忽略了 SSL 也是没用
    ila
        9
    ila  
    OP
       2021-09-22 11:57:42 +08:00 via Android
    要不你去提个 issue😂
    ila
        10
    ila  
    OP
       2021-09-22 15:37:45 +08:00
    @janda linux 下挂载了 webdav 目录后,同步时出现这个错误,你遇过吗

    ```
    最后错误: Error: Error: Error: EACCES: permission denied, open '/home/ila/148tank/joplin1/locks/sync_desktop_ba69a29ac15945b2aa379832b171843c.json'. Path: /home/ila/148tank/joplin1/locks/sync_desktop_ba69a29ac15945b2aa379832b171843c.json. Path: /home/ila/148tank/joplin1/locks/sync_desktop_ba69a29ac15945b2aa379832b171843c.json
    ```
    janda
        11
    janda  
       2021-09-22 15:55:42 +08:00
    @ila 你这是权限不足、linux 用什么挂载的? rclone 吗
    ila
        12
    ila  
    OP
       2021-09-22 16:22:15 +08:00 via Android
    @janda davfs2,加 sudo 是另一种报错,不加就是以上报错…
    janda
        13
    janda  
       2021-09-22 16:23:50 +08:00
    @ila 上面这个很明显是权限不足导致的问题

    davfs2 我没用过!

    你用 rclone 试试看行吗?
    ila
        14
    ila  
    OP
       2021-09-22 16:55:45 +08:00 via Android
    @janda 瞎了我 k 金眼,win11 可以用 http 的 webdav 同步。
    linux 用 file system 同步成功一次,居然丢失笔记😥
    ila
        15
    ila  
    OP
       2021-09-22 17:00:28 +08:00 via Android
    @ila 赶快用 win11 的文件覆盖 linux 的文件,找回笔记了。
    先挂载用了。
    这一天过的真浪费时间…
    janda
        16
    janda  
       2021-09-22 17:09:26 +08:00
    @ila 那你 win 下的 joplin 同步是 file system 么?还是直接用的 webdav !

    webdav 自建的吗?
    ila
        17
    ila  
    OP
       2021-09-22 17:18:30 +08:00
    @janda win 下同步成功的是 webdav,用 tank 自建的。
    ila
        18
    ila  
    OP
       2021-09-22 17:19:37 +08:00
    突然出现这种情况,也逼着自己把一些笔记整理后存入新建的 markdown 文件。
    janda
        19
    janda  
       2021-09-23 09:26:54 +08:00
    @ila win 下我用的 webdav 同步老是卡住!但是手机端没问题,ip 地址方式应该也没问题吧!下面忽略 ssl 验证就行
    ila
        20
    ila  
    OP
       2021-09-23 14:50:06 +08:00
    好像昨天更新了,win 虎烈 ssl 验证能同步了,就是需要 100s+
    ila
        21
    ila  
    OP
       2021-09-23 16:21:15 +08:00
    @janda 发现都是 105s 的同步耗时,作者不会设置 timeout=105s 吧....
    janda
        22
    janda  
       2021-09-24 09:11:46 +08:00
    @ila 不至于吧、新版本我没更新,等下看下!老哥 v 多少、我加下
    janda
        23
    janda  
       2021-09-24 09:12:00 +08:00
    @ila tg 吧、哈哈哈
    ila
        24
    ila  
    OP
       2021-09-28 16:54:31 +08:00
    @janda 怎么看自己的 tg 号是什么...
    janda
        25
    janda  
       2021-09-29 09:27:28 +08:00
    @ila 自定义、自己随便取一个就行
    ila
        26
    ila  
    OP
       2021-10-21 09:58:50 +08:00
    joplin 更新到 2.4.12.
    同步时间减短.

    每次同步耗时 21s.
    这么准吗....
    ila
        27
    ila  
    OP
       2022-05-31 09:31:52 +08:00
    应该算破案了.
    以前使用开源的 Golang 项目 tank 来做 webdav 服务,给 joplin 同步数据.
    时常 timeout.
    后来改成另一个开源项目 hacdias/webdav
    同步毫秒内,最长才 2 秒.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1309 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:25 · PVG 01:25 · LAX 09:25 · JFK 12:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.