hexo: Problem with deployment on GitHub
Hello!
Please, help someone solve the following problem. Before install Windows 10 I have everything worked fine under Windows 8.1, but now, in Windows 10, I observe the following problem:
- perform command
hexo cleanβ everything is fine; - perform command
hexo generateβ everything is fine; - perform command
hexo deployβ I getting in response an error:
D:\Dev\GitHub\201507.github.io-hexo>hexo deploy
INFO Deploying: git
INFO Setting up Git deployment...
Initialized empty Git repository in D:/Dev/GitHub/201507.github.io-hexo/.deploy_git/.git/
[master (root-commit) bb9fe04] First commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 placeholder
INFO Clearing .deploy folder...
INFO Copying files from public folder...
warning: LF will be replaced by CRLF in 2015/07/30/hello-world/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2015/07/31/minos-error/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2015/08/01/dropbox-file-recovery/index.html.
The file will have its original line endings in your working directory.
...
warning: LF will be replaced by CRLF in webfonts/open-sans/main.css.
The file will have its original line endings in your working directory.
[master bfb9462] Site updated: 2015-09-13 23:02:45
65 files changed, 13324 insertions(+)
create mode 100644 2015/07/30/hello-world/index.html
create mode 100644 2015/07/31/minos-error/index.html
create mode 100644 2015/08/01/dropbox-file-recovery/index.html
create mode 100644 2015/08/08/adding-swiftype-search-to-hexo/index.html
create mode 100644 2015/08/12/kak-bystro-dobavit-udalit-rascladku-claviatury/index.html
create mode 100644 CNAME
create mode 100644 about/index.html
create mode 100644 archives/2015/07/index.html
create mode 100644 archives/2015/08/index.html
create mode 100644 archives/2015/index.html
create mode 100644 archives/index.html
create mode 100644 atom.xml
...
create mode 100644 webfonts/source-code-pro/fonts/mrl8jkM18OlOQN8JLgasD9V_2ngZ8dMf8fLgjYEouxg.woff2
create mode 100644 webfonts/source-code-pro/fonts/mrl8jkM18OlOQN8JLgasDy2Q8seG17bfDXYR_jUsrzg.woff2
create mode 100644 webfonts/source-code-pro/main.css
warning: LF will be replaced by CRLF in webfonts/source-code-pro/main.css.
The file will have its original line endings in your working directory.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
at ChildProcess.<anonymous> (D:\Dev\GitHub\201507.github.io-hexo\node_modules\hexo-util\lib\spawn.js:42:17)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
If I point in the configuration file to use SSH instead of HTTPS, I get this error:
...
The file will have its original line endings in your working directory.
On branch master
nothing to commit, working directory clean
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at ChildProcess.<anonymous> (D:\Dev\GitHub\201507.github.io-hexo\node_modules\hexo-util\lib\spawn.js:42:17)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
The contents of my package.json file:
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.1.1"
},
"dependencies": {
"hexo": "^3.1.1",
"hexo-deployer-git": "0.0.4",
"hexo-generator-archive": "^0.1.3",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.0.3",
"hexo-generator-index": "^0.1.3",
"hexo-generator-sitemap": "^1.0.1",
"hexo-generator-tag": "^0.1.2",
"hexo-renderer-ejs": "^0.1.0",
"hexo-renderer-marked": "^0.2.5",
"hexo-renderer-stylus": "^0.3.0",
"hexo-server": "^0.1.2",
"hexo-util": "^0.1.7"
}
}
hexo v command output:
hexo: 3.1.1
os: Windows_NT 6.3.9600 win32 x64
http_parser: 2.3
node: 0.12.7
v8: 3.28.71.19
uv: 1.6.1
zlib: 1.2.8
modules: 14
openssl: 1.0.1p
git --version
git version 2.5.2.windows.2
How to beat this issue? What other information I can provide to solve this problem?
My repo with all config files can be found here: https://github.com/201507/201507.github.io-hexo
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 32 (2 by maintainers)
@doesnta, yes, I solved my problem by starting to use SSH instead HTTPS. The following information has helped to solve a problem:
@younglaker, many thanks for your hint π
@doesnta, here are the steps I performed:
C:\Users\your-username\.ssh\C:\Users\your-username\.ssh\folder (github_rsa.pub,github_rsa)id_rsa.pub,id_rsassh -T git@github.comand follow the promptsIf you have difficulty, use the information in these pages:
I hope you can understand my text. I have explained better, but my level of English is poor.
In case it still happens to people, the way I work over it is opening Git Bash, cd to your site directory and run
hexo generate --deploythere inside Git Bash itself instead of using the Windows command-line. Seems to work consistently over a couple of PCs I use, even if itβs less convenient.I solve the problem by deleting GitHub password in
KeyChain Access. Then I execute the deploy commandhexo d -gin the terminal after that the terminal will ask me for the github username and password. And just input the new account info then you can do as usual.@younglaker my _config.xml
i also add the remote url in the git/config,useless~~~