Hexo 배포(Deploy) 시 Internal Server Error Everything up-to-date 발생 시 해결법

🗓 ⏰ 소요시간 7 분

오늘도 잘되던 Hexo 에서 오류가 나네요. 이상하게 deploy 에서 서버 에러가 납니다. 정확히 말해서 git 에 push 할 때 Internal Server Error 가 나면서 Everything up-to-date 메시지가 납니다.

증상

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$ hexo d
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
[master f50d9ca] Site updated: 2017-01-12 17:11:17
7 files changed, 10 insertions(+), 10 deletions(-)
remote: Internal Server Error
Everything up-to-date
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: remote: Internal Server Error
Everything up-to-date

at ChildProcess.<anonymous> (/Users/handongho/Dev/hexo/myBlog/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:37:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:475:12)
FATAL remote: Internal Server Error
Everything up-to-date

Error: remote: Internal Server Error
Everything up-to-date

at ChildProcess.<anonymous> (/Users/handongho/Dev/hexo/myBlog/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:37:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:475:12)

해결 방법

브런치를 관리하는 부분은 사용자가 직접 하는 부분이 아니고 Hexo 명령어를 통해서 하는 부분이라서 정확한 원인을 알 수 없었습니다. 애꿎은 clean 과 generate 만 열심히 반복해도 동일한 증상이 나타났습니다.

정확한 원인과 해결책은 아니더라도 해결방법을 남겨놓습니다. 저의 경우는, generate 를 한번만 하지 않고 2번 이상 하고 난 후 deploy 하니까 정상 동작했습니다.

1
2
3
4
$ hexo clean
$ hexo g
$ hexo g
$ hexo d