Not able to run queries using nodeJS using adodb - sql

I am trying to execute queries onto an .accdb file using node-adodb. i came across an error like this
{ Error: Spawn C:\WINDOWS\SysWOW64\cscript.exe error
at ChildProcess.child.on.exitCode (C:\Users\Sumukh Bharadwaj\Desktop\NodeJS\node_modules\node-adodb\lib\spawn.js:120:37)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:891:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
process:
{ code: -2146824582,
message: 'Provider cannot be found. It may not be properly installed.' },
exitCode: 0 }
I'm not able to proceed further from this.
Help!

You need a valid Access installation or an installation of the Access Database Engine to use ADO.
Since the error refers to SysWow64, you need to install the 32-bits variant of the Access Database Engine (or Access application).

Related

Can't Install Netlify cms plugin Gatsby

i tried to install netlifycms to my gatsby-config.js but its show error unreachable. how i can fix it?
my github repo https://github.com/muhammadizzuddin/portofolio/blob/main/gatsby-config.js
ERROR
There was a problem loading plugin "gatsby-plugin-netlify-cms". Perhaps you need to install its package?
Use --verbose to see actual error.
ERROR
Failed to resolve gatsby-plugin-netlify-cms unreachable
Error: unreachable
please help me.
ERROR
There was a problem loading plugin "gatsby-plugin-netlify-cms". Perhaps you need to install its package?
Use --verbose to see actual error.
ERROR
Failed to resolve gatsby-plugin-netlify-cms unreachable
Error: unreachable
- load.ts:144 resolvePlugin
[portofolio]/[gatsby]/src/bootstrap/load-plugins/load.ts:144:11
- index.js:37 resolveTheme
[portofolio]/[gatsby]/src/bootstrap/load-themes/index.js:37:29
- index.js:115
[portofolio]/[gatsby]/src/bootstrap/load-themes/index.js:115:30
- util.js:16 tryCatcher
[portofolio]/[bluebird]/js/release/util.js:16:23
- reduce.js:166 Object.gotValue
[portofolio]/[bluebird]/js/release/reduce.js:166:18
- reduce.js:155 Object.gotAccum
[portofolio]/[bluebird]/js/release/reduce.js:155:25
- util.js:16 Object.tryCatcher
[portofolio]/[bluebird]/js/release/util.js:16:23
- promise.js:547 Promise._settlePromiseFromHandler
[portofolio]/[bluebird]/js/release/promise.js:547:31
- promise.js:604 Promise._settlePromise
[portofolio]/[bluebird]/js/release/promise.js:604:18
- promise.js:649 Promise._settlePromise0
[portofolio]/[bluebird]/js/release/promise.js:649:10
- promise.js:729 Promise._settlePromises
[portofolio]/[bluebird]/js/release/promise.js:729:18
- async.js:93 _drainQueueStep
[portofolio]/[bluebird]/js/release/async.js:93:12
- async.js:86 _drainQueue
[portofolio]/[bluebird]/js/release/async.js:86:9
- async.js:102 Async._drainQueues
[portofolio]/[bluebird]/js/release/async.js:102:5
- async.js:15 Immediate.Async.drainQueues [as _onImmediate]
[portofolio]/[bluebird]/js/release/async.js:15:14
- timers.js:462 processImmediate
internal/timers.js:462:21
not finished open and validate gatsby-configs - 0.591s
The link is broken so I've assumed that the working one is https://github.com/muhammadizzuddin/my-blog.
You just need to add the gatsby-plugin-netlify-cms to your package.json by running
npm i gatsby-plugin-netlify-cms
This will update your package.json file and will notify Netlify which packages needs to be installed when deploying.

Unhandled rejection SequelizeConnectionError: Unknown database

This was my full error, I installed all the coorect dependencies but I couldnt figure out why I was still getting this same Error over and over again.
➜ Unsolved git:(main) ✗ node server.js
Unhandled rejection SequelizeConnectionError: Unknown database 'sequelize_library'
at /Users/usersname/Desktop/projects/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/userName/Desktop/projects//node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/Users/userName/Desktop/projects//node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:461:21)
Getting this erros with all the right depencies installed. What worked for me was
(All commands go in terminal)
going into my sql with /usr/local/mysql/bin/mysql -uroot -p
Entering my password then ran source schema.sql which held my create database code
I quit SQL
& ran node server.js

Azure Data Factory Automated publishing for continuous integration and delivery

I’m following the new CICD guide for ADF https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment-improvements
Looks like I'm missing files credential and managedVirtualNetwork. Do I need to set up authentication with the npm module and Azure packages?
Getting these errors:
LocalFileClientService: Unable to list files for: credential, error: Error: ENOENT: no such file or directory, scandir '/home/vsts/work/1/s/credential'
…
LocalFileClientService: Unable to list files for: managedVirtualNetwork, error: Error: ENOENT: no such file or directory, scandir '/home/vsts/work/1/s/managedVirtualNetwork'
…
ERROR === CmdApiApp: Failed to run resource validation. Error: {"stack":"TypeError: Cannot read property 'concept' of undefined\n at Function.<anonymous> (/home/vsts/work/1/s/downloads/main.js:1271:27040)\n at /home/vsts/work/1/s/downloads/main.js:16:2243\n at Object.next (/home/vsts/work/1/s/downloads/main.js:16:2348)\n at o (/home/vsts/work/1/s/downloads/main.js:16:1087)","message":"Cannot read property 'concept' of undefined"}
…
error code ELIFECYCLE
error errno 1
error # build: `node node_modules/#microsoft/azure-data-factory-utilities/lib/index "validate" "/home/vsts/work/1/s" "subscriptions/xxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.DataFactory/factories/xxxxxxxx”
error Exit status 1
error Failed at the # build script.
error This is probably not a problem with npm. There is likely additional logging output above.
##[error]Error: Npm failed with return code: 1
The missing credential and managedVirtualNetwork folders are not an issue. I am able to validate and export the ARM template even without having those folders.
I was able to reproduce the error with an incorrect ADF Resource ID. The leading / before 'subscriptions' is missing. Changing the Resource ID to /subscriptions/xxxxxxx/resourceGroups/xxxxxxx/providers/Microsoft.DataFactory/factories/xxxxxxxx should work.

CypressError: `cy.visit()` failed trying to load: https://dev-eccc.env.xxxx.com/ via Gitlab CI job

I have setup a Gitlab ci/cd job to execute all cypress integration tests. I found that all tests are getting fail due to home URL is getting failed to load by cy.visit().
On my local machine it is working fine.
below is the complete Error trace:
CypressError: `cy.visit()` failed trying to load:
https://dev-eccc.env.ihsmarkit.com/
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
> Error: getaddrinfo ENOTFOUND dev-eccc.env.ihsmarkit.com
Common situations why this would fail:
- you don't have internet access
- you forgot to run / boot your web server
- your web server isn't accessible
- you have weird network configuration settings on your computer
Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Facility Register`
at http://localhost:45271/__cypress/runner/cypress_runner.js:156433:23
at visitFailedByErr (http://localhost:45271/__cypress/runner/cypress_runner.js:155794:12)
at http://localhost:45271/__cypress/runner/cypress_runner.js:156432:11
at tryCatcher (http://localhost:45271/__cypress/runner/cypress_runner.js:10130:23)
at Promise._settlePromiseFromHandler (http://localhost:45271/__cypress/runner/cypress_runner.js:8065:31)
at Promise._settlePromise (http://localhost:45271/__cypress/runner/cypress_runner.js:8122:18)
at Promise._settlePromise0 (http://localhost:45271/__cypress/runner/cypress_runner.js:8167:10)
at Promise._settlePromises (http://localhost:45271/__cypress/runner/cypress_runner.js:8243:18)
at _drainQueueStep (http://localhost:45271/__cypress/runner/cypress_runner.js:4837:12)
at _drainQueue (http://localhost:45271/__cypress/runner/cypress_runner.js:4830:9)
at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues
(http://localhost:45271/__cypress/runner/cypress_runner.js:4846:5)
at Async.drainQueues (http://localhost:45271/__cypress/runner/cypress_runner.js:4716:14)
From Your Spec Code:
at Object.homepage_test (http://localhost:45271/__cypress/tests?p=cypress/integration/eccc-
app-ui-cypress/API/register_api.ts:71:8)
at Context.eval (http://localhost:45271/__cypress/tests?p=cypress/integration/eccc-app-ui-
cypress/API/register_api.ts:13:25)
From Node.js Internals:
Error: getaddrinfo ENOTFOUND dev-eccc.env.ihsmarkit.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)

Onlyoffice integrate into nextcloud. Error while downloading the document file to be converted

I had already looked around, but this couldn't solve my problem. I installed onlyoffice documents on another server.now i would like to use the addon in nextcloud. When I enter the serverip in Nextcloud, I get the following error:
Error while downloading the document file to be converted
in the nextcloud config i also have " 'onlyoffice' =>array (
verify_peer_off' => TRUE,
)
" added.
Called up via healthcheck I get a positive result.
here is an excerpt from the log of the converter:
[2019-08-29T16:29:49.962] [WARN] nodeJS - worker 11687 started.
[2019-08-29T16:29:49.963] [WARN] nodeJS - update cluster with 1 workers
[2019-08-29T16:40:12.293] [ERROR] nodeJS - error downloadFile:url=https://next.mydomain.xx/apps/onlyoffice/empty?doc=eyJ0eXAiOiJxyzv4oPYyTYdvdZNgMz$
Error: Parse Error
at TLSSocket.socketOnData (_http_client.js:454:20)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at TLSSocket.Readable.push (_stream_readable.js:208:10)
at TLSWrap.onread (net.js:601:20)
i am very happy to suggest solutions
The reason is that next.mydomain.xx cannot be validated by DocumentServer.
You can disable certificate verification in DS config
/etc/onlyoffice/documentserver/default.json by setting rejectUnauthorized to false. After that, you need to restart DS services: supervisorctl restart all
If that doesn't help, specify the version, OS and installation type of the DocumentServer.