-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
hexo server
fails to update content after a while (3.0.0)
#1175
Comments
I have the same problem. |
I have updated to 3.1.1 and still get this issue. I tried switching node versions, removed the modules and did a clean install but it still fails to update the draft I'm working on. Any ideas? |
I catch the same problem these days. Several days ago, I build a docker image with hexo 3.0.1 and it can update contents.
On my Mac I tried hexo 3.0.1 3.1.0 3.1.1 and it doesn't work. |
@jamespan So do you think it's related to the OS? What was the docker image based on? |
@steckerhalter ubuntu 14.04. I am not really sure, but the hero-fs module related on fsevents, which is os x only |
@jamespan ok, I'm having the issue on Debian Linux btw. |
@steckerhalter I found a really weird situation. My hexo blog was in ~/Sites/blog, and it can't update content. But when I moved the directory to ~/, it can update content like it used to be. I don't know why this happens, maybe you can try. |
@jamespan I experimented a bit (renamed the folder etc.) and could make it update the content once over a longer period. Then it fell back to just update for like one minute or something. Quite weird. |
@steckerhalter
|
My hexo blog is just in
|
I tried |
Also, Here is details:
What i meet might be a different thing with others.Everytime I use emacs tramp(over ssh or scp) to edit&save files this occurs.But when I use vim on ssh to edit it everything is ok. But I checked sha1sum(when I use tramp),it works well.
|
I thought it's time to investigate this, so for me what happens is that Hexo detects the same sha hash even though the file has been changed. The code where this happens is here: https://github.com/hexojs/hexo/blob/master/lib/box/index.js#L216 Now I just need to find out why the file that obviously has been changed is returning the same hash in hexo. |
there is some transform in there (whatever that is for) and the problem seems to be that it's not executed at all in some cases: https://github.com/hexojs/hexo/blob/master/lib/box/shasum_stream.js#L16 |
so the hash is not updated... if I'm understanding this correctly |
I'm not able to find the solution. It's producing always the same SHA hash. I suppose the bug is somewhere in the nodejs stream interface. I still have no idea why _transform is not executed as it should |
The hash is just wrong. And then it always gets this same wrong hash no matter how the actual hash of the file is. |
The funny hash is |
@sergiolepore How about |
@Xuanwo sorry? |
@sergiolepore well, I mean we use an another hash tool, this change may resolve the problem, and I hope you can have a try. Sorry for my miss leading. |
@Xuanwo I still don't get it... Are you confusing me with @steckerhalter? 😕 |
@Xuanwo I think it's better now in the beta. I still saw some cases where it didn't update and that was mostly when the change was a small one and it didn't seem to get picked up, so there might be a new issue creeping up :) |
@sergiolepore yes .. 😭 |
this work for me.
when i use command
i know hexo maybe get update so i use command
and in localhost link i see my web is updated. |
When I work on a post or page after a few minutes a browser refresh does not update the content anymore. Any new changes I make to the file are not reflected and I need to kill the server and start it again to pick up the changes (which only works for a few minutes again)
The text was updated successfully, but these errors were encountered: