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

Markdown 解析异常导致内核启动失败 #516

Closed
88250 opened this issue Nov 16, 2020 · 10 comments
Closed

Markdown 解析异常导致内核启动失败 #516

88250 opened this issue Nov 16, 2020 · 10 comments
Assignees
Labels
Milestone

Comments

@88250
Copy link
Member

88250 commented Nov 16, 2020

No description provided.

@88250 88250 added the Bug label Nov 16, 2020
@88250 88250 added this to the 0.4.7 milestone Nov 16, 2020
@88250 88250 self-assigned this Nov 16, 2020
@88250 88250 closed this as completed Nov 16, 2020
@Tokubara
Copy link

想问一下, 如果启动失败是不是就是一直转圈圈, 我升到0.4.7就出现了这个问题
image

@Tokubara
Copy link

于是又用0.4.6的.app替换了0.4.7, 但还是有同样的问题

@88250
Copy link
Member Author

88250 commented Nov 18, 2020

麻烦贴一下 ~/.siyuan/siyuan.log

@Tokubara
Copy link

过了一段时间, 我重启了几次软件以后又行了

@88250
Copy link
Member Author

88250 commented Nov 18, 2020

请帮忙继续留意,谢谢。

@Tokubara
Copy link

不过好景不长, 在我发现可以启动之后, 然后就用了一段时间, 发现我需要打开某个文件, 但那个文件, 是这样的状态:
image
就是啥也没有的状态. 然后我就发现, 所有的文件都是这个状态了, 都打不开.
然后我就删除了.app, 打开app发现白屏, 但没有404, 就是这样的:
image
不过浏览器是可以打开的, 有界面. 但是同样打不开任何文件, 就是第一张图那样. 创建新文件也是同样的情况.
.log是:

I 2020/11/18 20:29:26 main.go:102: 
  ____    _  __   __
 / ___|  (_) \ \ / /  _   _    __ _   _ __
 \___ \  | |  \ V /  | | | |  / _` | | '_ \
  ___) | | |   | |   | |_| | | (_| | | | | |
 |____/  |_|   |_|    \__,_|  \__,_| |_| |_|

I 2020/11/18 20:29:26 main.go:103: kernel [v0.4.7] is booting, runtime mode is [prod], working directory is [/Applications/SiYuan.app/Contents/Resources], temp directory is [/var/folders/hh/lnftkrwn1tv9b63ptnphj_gm0000gp/T/siyuan], read only [false]
I 2020/11/18 20:29:26 lang.go:63: initialized languages
D 2020/11/18 20:29:26 conf.go:124: initialized language [en_US] based on device locale
I 2020/11/18 20:29:26 conf.go:252: private key [-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA3ObGSf32mq/6KiQAoZ9JXpnwVCZWG7gmvdUfpdfZTvtmAdVH
956jMOt9WD5RRLcZUNvC5XjDPTWQ875QRIBf2HmRbkSXXC6YkSsLBrDFSCL686gq
LTcKZCO4PJzChlFpiNVXi2vUIfRxvoBFnPJm+WFGjXHRKfd9j12iAv8EyB8pnyi6
5iqRN4cCc5Fk+J+Gx9XwhvUU4MV0D...]
I 2020/11/18 20:29:26 conf.go:253: public key [ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDc5sZJ/faar/oqJAChn0lemfBUJlYbuCa91R+l19lO+2YB1Uf3nqMw631YPlFEtxlQ28LleMM9NZDzvlBEgF/YeZFuRJdcLpiRKwsGsMVIIvrzqCotNwpkI7g8nMKGUWmI1VeLa9Qh9HG+gEWc8mb5YUaNcdEp932PXaIC/wTIHymfKLrmKpE3hwJzkWT4n4bH1fCG9RTgxXQPOnPp4PVPkvK4z5tcHyOxaonL8s1Z0mfMvYFrMKaDC+Yxae+WOf5INH1/VSp3mjoUAI2vgUKWbF4kIGLTZfJ1Hv558ZJcI04DB4Ev6O4RtJz33s4/psl3k5aPipaOXxDUQlMo24OF
]
I 2020/11/18 20:29:26 conf.go:190: local serve path [http://127.0.0.1:6806]
I 2020/11/18 20:29:26 conf.go:194: initialized conf
I 2020/11/18 20:29:26 appearance.go:45: initialized appearance
I 2020/11/18 20:29:26 main.go:149: kernel HTTP server is booting [http://0.0.0.0:6806]
F 2020/11/18 20:29:26 main.go:151: boot kernel HTTP server failed: listen tcp 0.0.0.0:6806: bind: address already in use
I 2020/11/18 20:30:02 main.go:102: 
  ____    _  __   __
 / ___|  (_) \ \ / /  _   _    __ _   _ __
 \___ \  | |  \ V /  | | | |  / _` | | '_ \
  ___) | | |   | |   | |_| | | (_| | | | | |
 |____/  |_|   |_|    \__,_|  \__,_| |_| |_|

I 2020/11/18 20:30:02 main.go:103: kernel [v0.4.7] is booting, runtime mode is [prod], working directory is [/Applications/SiYuan.app/Contents/Resources], temp directory is [/var/folders/hh/lnftkrwn1tv9b63ptnphj_gm0000gp/T/siyuan], read only [false]
I 2020/11/18 20:30:02 lang.go:63: initialized languages
D 2020/11/18 20:30:02 conf.go:107: loaded conf [/Users/quebec/.siyuan/conf.json]
I 2020/11/18 20:30:02 conf.go:190: local serve path [http://127.0.0.1:6806]
I 2020/11/18 20:30:02 conf.go:194: initialized conf
I 2020/11/18 20:30:02 appearance.go:45: initialized appearance
I 2020/11/18 20:30:02 main.go:149: kernel HTTP server is booting [http://0.0.0.0:6806]
F 2020/11/18 20:30:02 main.go:151: boot kernel HTTP server failed: listen tcp 0.0.0.0:6806: bind: address already in use

@Tokubara
Copy link

创建文件的情况是, 的确会创建文件, 但是在界面中的file tree是看不到创建的文件的, finder可以看到.

@88250
Copy link
Member Author

88250 commented Nov 18, 2020

如果方便的话麻烦把笔记文件夹打个包发我邮箱 845765@qq.com,谢谢。

@Tokubara
Copy link

发现问题在于, 之前的什么操作导致6806端口没有释放, 用 kill -9 $(lsof -i:3000 -t)再重启软件就可以了.

@88250
Copy link
Member Author

88250 commented Nov 20, 2020

正常情况下 Electron UI 退出后内核会在 2s 左右自动退出,如果内核没有退出,可能是因为还有连接(比如网页端)在使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants