hexo deploy Error: spawn ENOMEM - github

When i execute hexo deploy , it always an error!I have tried to delete .deploy_git,but doesn‘t solve this problem.
Error info
[root#ecs hexo]# hexo deploy
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: spawn ENOMEM
at exports._errnoException (util.js:1022:11)
at ChildProcess.spawn (internal/child_process.js:313:11)
at Object.exports.spawn (child_process.js:385:9)
at spawn (/data/www/hexo/node_modules/.4.0.0#cross-spawn/index.js:17:18)
_config.yml
deploy:
type: git
repo: git#github.com:vincent927/vincent927.github.io.git
branch: master
version info
[root#ecs hexo]# hexo -v
hexo: 3.2.2
hexo-cli: 1.0.2
os: Linux 3.10.0-327.36.3.el7.x86_64 linux x64
http_parser: 2.7.0
node: 7.1.0
v8: 5.4.500.36
uv: 1.10.0
zlib: 1.2.8
ares: 1.10.1-DEV
modules: 51
openssl: 1.0.2j
icu: 58.1
unicode: 9.0
cldr: 30.0.2
tz: 2016g
How can i fix this problem?

Related

No yarnrc.yml even after following directions

This instruction:
`https://devcenter.heroku.com/articles/migrating-to-yarn-2
says to run yarn install and it will create a .yarnrc.yml file. It does not. yarn
install reports no errors and I can run yarn set version berry and I get:
Wed Jun 29 12:43:22 MDT 2022
➤ YN0000: Retrieving https://repo.yarnpkg.com/3.2.1/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-3.2.1.cjs
➤ YN0000: Done in 0s 327ms
I tried yarn set version 2 and then yarn install, but still no joy.
scottc in ~/Sites/vpermits.us on branch main > yarn set version 2
Wed Jun 29 12:44:52 MDT 2022
➤ YN0000: Retrieving https://repo.yarnpkg.com/2.4.3/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-2.4.3.cjs
➤ YN0000: Done in 0s 391ms
My build fails with this error message:
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
USE_YARN_CACHE=true
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Build failed
! The 'yarnrc.yml' file is not found
It looks like the 'yarnrc.yml' file is missing from this project. Please
make sure this file is checked into version control and made available to
Heroku.
To generate 'yarnrc.yml', make sure Yarn 2 is installed on your local
machine and set the version in your project directory with:
$ yarn set version berry
Read more at the Yarn docs: https://yarnpkg.com/getting-started/install#per-
project-install
https://devcenter.heroku.com/articles/nodejs-support
! Push rejected, failed to compile Node.js app.
! Push failed`
There is no yarnrc.yml (or .yarnrc.yml) in my directory.

yarn on wsl ubuntu 18.0 vscode not using lock file

Hi Trying to run a yarn install on project on WSL Ubuntu 18.04 using vscode. But yarn seems to not be using the yarn lockfile and I get errors about the wrong node engine when running yarn install....
cd-ing to the project directory and running sudo yarn install
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
error juice#7.0.0: The engine "node" is incompatible with this module. Expected version ">=10.0.0". Got "8.10.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
it looks like its just using yarn from the usr install and not the local project directory what am I doing wrong?

ChromeDriver only supports Chrome version 89

Using Azure DevOps, somehow the pipeline just stop working and I can't get the test done when I run ng lint && ng e2e && ng test --watch=false. This it's working when running local.
[16:43:25] I/launcher - Running 1 instances of WebDriver
[16:43:25] I/direct - Using ChromeDriver directly...
[16:43:27] E/launcher - session not created: This version of ChromeDriver only supports Chrome version 89
Current browser version is 88.0.4298.0 with binary path D:\a\1\s\node_modules\puppeteer\.local-chromium\win64-818858\chrome-win\chrome.exe
(Driver info: chromedriver=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389#{#294}),platform=Windows NT 10.0.17763 x86_64)
[16:43:27] E/launcher - SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 89
Current browser version is 88.0.4298.0 with binary path D:\a\1\s\node_modules\puppeteer\.local-chromium\win64-818858\chrome-win\chrome.exe
(Driver info: chromedriver=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389#{#294}),platform=Windows NT 10.0.17763 x86_64)
at Object.checkLegacyResponse (D:\a\1\s\node_modules\selenium-webdriver\lib\error.js:546:15)
at parseHttpResponse (D:\a\1\s\node_modules\selenium-webdriver\lib\http.js:509:13)
at D:\a\1\s\node_modules\selenium-webdriver\lib\http.js:441:30
at processTicksAndRejections (internal/process/task_queues.js:93:5)
From: Task: WebDriver.createSession()
at Function.createSession (D:\a\1\s\node_modules\selenium-webdriver\lib\webdriver.js:769:24)
at Function.createSession (D:\a\1\s\node_modules\selenium-webdriver\chrome.js:761:15)
at Direct.getNewDriver (D:\a\1\s\node_modules\protractor\built\driverProviders\direct.js:77:33)
at Runner.createBrowser (D:\a\1\s\node_modules\protractor\built\runner.js:195:43)
at D:\a\1\s\node_modules\protractor\built\runner.js:339:29
at _fulfilled (D:\a\1\s\node_modules\protractor\node_modules\q\q.js:834:54)
at D:\a\1\s\node_modules\protractor\node_modules\q\q.js:863:30
at Promise.promise.promiseDispatch (D:\a\1\s\node_modules\protractor\node_modules\q\q.js:796:13)
at D:\a\1\s\node_modules\protractor\node_modules\q\q.js:556:49
at runSingle (D:\a\1\s\node_modules\protractor\node_modules\q\q.js:137:13)
[16:43:27] E/launcher - Process exited with error code 199
##[error]Cmd.exe exited with code '1'.
This is how I set the pipeline task
puppeteer
cd node_modules/puppeteer
npm install
npm install webdriver-manager#latest
> puppeteer#5.5.0 install D:\a\1\s\node_modules\puppeteer
> node install.js
Chromium is already in D:\a\1\s\node_modules\puppeteer\.local-chromium\win64-818858; skipping download.
> puppeteer#5.5.0 prepare D:\a\1\s\node_modules\puppeteer
> node typescript-if-required.js
added 848 packages from 915 contributors and audited 860 packages in 43.745s
96 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Finishing: npm install puppeteer
ng test
ng lint && ng e2e && ng test --watch=false
According the doc: Microsoft Windows Server 2019 Datacenter and Ubuntu 20.04.2 LTS. We find there is only ChromeDriver 88.0.4324.96 on our hosted agent.
So we have two suggestions:
We noticed that the test is working well on your local machine, so we can try to install a self-agent in your local machine and use the new agent to try again.
We can add a bash task and use the below the script to install latest version of the ChromeDriver first.
npm install chromedriver --chromedriver_cdnurl=https://chromedriver.storage.googleapis.com/89.0.4389.23/chromedriver_win32.zip
since you are using javascript
yarn add chromedriver --chromedriver-force-download
or
npm install --save-dev chromedriver --chromedriver-force-download
https://github.com/giggio/node-chromedriver/issues/311

Unauthorized configuration value when ionic config

I follow this link:
http://docs.ionic.io/docs/io-config
but got "Unauthorized configuration value"
ionic config set x 1
Unauthorized configuration value
litingjun#litingjun-All-Series:~/IonicProjects/DuangWiFiApp$ ionic config build
An uncaught exception occurred and has been reported to Ionic
Unexpected end of input (CLI v1.6.4)
Your system information:
Cordova CLI: 5.1.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS
Node Version: v0.12.7
Where is the problem? thanks.

Error on Redmine "plugin redmine_git_hosting" : undefined symbol: libssh2_session_init_ex

I get an error when installing the plugin "redmine_git_hosting":
/opt/bitnami/ruby/bin/.ruby.bin: symbol lookup error: /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/rugged-0.21.4/lib/rugged/rugged.so: undefined symbol: libssh2_session_init_ex
Redmine 3.0.0.stable
Environment:
Redmine version 3.0.0.stable
Ruby version 2.0.0-p598 (2014-11-13) [x86_64-linux]
Rails version 4.2.0
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Cvs 1.12.13
Git 1.9.5
Filesystem
Redmine plugins:
redmine_bootstrap_kit 0.2.1
redmine_git_hosting 1.0.2
Bitnami installation
As Bitnami override some internal paths needed to build native Ruby
extension you must compile libgit2 yourself before installing Redmine
Git Hosting.
http://jbox-web.github.io/redmine_git_hosting/guide/bitnami-installation/