The project I'm working on uses Yarn and I am new to it but having some teething issues. The project runs but the js does not.
I installed Node.js (v16.9.0) and Yarn globally.
I pulled the repo and from the command I navigate to the project path and did yarn install;
which runs fine.
Yarn (v2.4.0-git.20210112.hash-8eba2920)
Here are the list of yarn commands I can use
➤ YN0000: build:css 'yarn postcss assets/css/site.css -o wwwroot/css/site.css'
➤ YN0000: build:js 'node build.js'
➤ YN0000: build 'yarn run-p build:css build:js'
➤ YN0000: publish:css 'yarn cross-env NODE_ENV=production yarn postcss assets/css/site.css -o wwwroot/css/site.css'
➤ YN0000: publish:js 'yarn cross-env NODE_ENV=production node build.js'
➤ YN0000: publish 'yarn cross-env NODE_ENV=production yarn run-p publish:css publish:js'
➤ YN0000: stackup '../../scripts/dev/start_mssql_container.sh && dotnet watch run'
➤ YN0000: watch 'yarn npm-watch'
➤ YN0000: Done in 0s 3ms
When I try to do a yarn build it give me the following. Is it an issue with the node setup? or is it a yarn issue?
I've tried to search for this issue but my best guess so far is the esbuild is not right but not sure how to fix.
> .yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
32 │ let resolveDir = args.path.match(/(.+\/)/)[1];
╵ ^
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:31:12: note: This error came from the "onLoad" callback registered here
31 │ build.onLoad({ filter: /.*/, namespace: "pnp" }, async args => {
╵ ~~~~~~
at setup (C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:31:13)
at handlePlugins (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:659:7)
> .yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
32 │ let resolveDir = args.path.match(/(.+\/)/)[1];
╵ ^
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:31:12: note: This error came from the "onLoad" callback registered here
31 │ build.onLoad({ filter: /.*/, namespace: "pnp" }, async args => {
╵ ~~~~~~
at setup (C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:31:13)
at handlePlugins (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:659:7)
> .yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
32 │ let resolveDir = args.path.match(/(.+\/)/)[1];
╵ ^
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:31:12: note: This error came from the "onLoad" callback registered here
31 │ build.onLoad({ filter: /.*/, namespace: "pnp" }, async args => {
╵ ~~~~~~
at setup (C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:31:13)
at handlePlugins (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:659:7)
> .yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
32 │ let resolveDir = args.path.match(/(.+\/)/)[1];
╵ ^
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:31:12: note: This error came from the "onLoad" callback registered here
31 │ build.onLoad({ filter: /.*/, namespace: "pnp" }, async args => {
╵ ~~~~~~
at setup (C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:31:13)
at handlePlugins (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:659:7)
> .yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
32 │ let resolveDir = args.path.match(/(.+\/)/)[1];
╵ ^
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:31:12: note: This error came from the "onLoad" callback registered here
31 │ build.onLoad({ filter: /.*/, namespace: "pnp" }, async args => {
╵ ~~~~~~
at setup (C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:31:13)
at handlePlugins (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:659:7)
5 errors
Error: Build failed with 5 errors:
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
.yarn/$$virtual/esbuild-plugin-pnp-virtual-b0ebe0e05a/0/cache/esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip/node_modules/esbuild-plugin-pnp/index.js:32:50: error: [pnp-plugin] Cannot read properties of null (reading '1')
at failureErrorWithLog (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:1160:15)
at buildResponseToResult (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:896:32)
at C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:991:20
at C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:542:9
at handleIncomingPacket (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:631:9)
at Socket.readFromStdout (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:509:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10) {
errors: [
{
detail: TypeError: Cannot read properties of null (reading '1')
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
at handleRequest (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:577:36)
at handleIncomingPacket (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:624:7)
at Socket.readFromStdout (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:509:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:199:23),
location: [Object],
notes: [Array],
text: "[pnp-plugin] Cannot read properties of null (reading '1')"
},
{
detail: TypeError: Cannot read properties of null (reading '1')
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
at handleRequest (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:577:36)
at handleIncomingPacket (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:624:7)
at Socket.readFromStdout (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:509:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:199:23),
location: [Object],
notes: [Array],
text: "[pnp-plugin] Cannot read properties of null (reading '1')"
},
{
detail: TypeError: Cannot read properties of null (reading '1')
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
at handleRequest (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:577:36)
at handleIncomingPacket (C:\Development\Project\src\Fixie.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:624:7)
at Socket.readFromStdout (C:\Development\Fixie\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:509:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:199:23),
location: [Object],
notes: [Array],
text: "[pnp-plugin] Cannot read properties of null (reading '1')"
},
{
detail: TypeError: Cannot read properties of null (reading '1')
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
at handleRequest (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:577:36)
at handleIncomingPacket (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:624:7)
at Socket.readFromStdout (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:509:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:199:23),
location: [Object],
notes: [Array],
text: "[pnp-plugin] Cannot read properties of null (reading '1')"
},
{
detail: TypeError: Cannot read properties of null (reading '1')
at C:\Development\Project\src\Project.Web\.yarn\$$virtual\esbuild-plugin-pnp-virtual-b0ebe0e05a\0\cache\esbuild-plugin-pnp-npm-0.3.0-c8f5fdc52d-b80ab17bea.zip\node_modules\esbuild-plugin-pnp\index.js:32:51
at callback (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:744:34)
at handleRequest (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:577:36)
at handleIncomingPacket (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:624:7)
at Socket.readFromStdout (C:\Development\Project\src\Project.Web\.yarn\unplugged\esbuild-npm-0.8.57-7fe43e451a\node_modules\esbuild\lib\main.js:509:7)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:199:23),
location: [Object],
notes: [Array],
text: "[pnp-plugin] Cannot read properties of null (reading '1')"
}
],
warnings: []
}
Update I have now resolved this.
After the yarn install do the following commands,
yarn add #yarnpkg/esbuild-plugin-pnp
then inside build.js replace line 2 with
const pnpPlugin = require('esbuild-plugin-pnp');
then do yarn add esbuild -D
then yarn build should work.
Related
I have error on my host, that is 100% related with PostgreSQL version.
PostgreSQL version: 8.4.20
This is my error:
{ error: relation "pg_range" does not exist
at Parser.parseErrorMessage (/home/freiqdsy/nodevenv/public_html/agents.freightmasters.az/10/lib/node_modules/pg-protocol/dist/parser.js:287:98)
at Parser.handlePacket (/home/freiqdsy/nodevenv/public_html/agents.freightmasters.az/10/lib/node_modules/pg-protocol/dist/parser.js:126:29)
at Parser.parse (/home/freiqdsy/nodevenv/public_html/agents.freightmasters.az/10/lib/node_modules/pg-protocol/dist/parser.js:39:38)
at Socket.stream.on (/home/freiqdsy/nodevenv/public_html/agents.freightmasters.az/10/lib/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
length: 100,
name: 'error',
severity: 'ERROR',
code: '42P01',
detail: undefined,
hint: undefined,
position: '145',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'parse_relation.c',
line: '894',
routine: 'parserOpenTable' }
I found the information that this error is cause the PostgreSQL version is under 9.0. How can I fix this and make it work on my PostgreSQL version?
Here is the exact code that I am using
Thank you in advance!
I have a set of smart contracts that I have compiled and deployed to rinkeby test network. I now need to deploy the to a private goquorum blockchain that runs on the IBFT consensus. The blockchain was built with quorum-wizard. It starts when I run ./start.sh
when I'm in the root of my truffle project I run sudo truffle deploy --reset --network quorum
I get the following error.
> Everything is up to date, there is nothing to compile.
/root/dapp1/Dapp/node_modules/web3-core-helpers/src/errors.js:42
return new Error(message);
^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: Invalid JSON RPC response: ""
at Object.InvalidResponse (/root/dapp1/Dapp/node_modules/web3-core-helpers/src/errors.js:42:16)
at XMLHttpRequest.request.onreadystatechange (/root/dapp1/Dapp/node_modules/web3-providers-http/src/index.js:92:32)
at XMLHttpRequestEventTarget.dispatchEvent (/root/dapp1/Dapp/node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (/root/dapp1/Dapp/node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpRequestError (/root/dapp1/Dapp/node_modules/xhr2-cookies/xml-http-request.ts:379:8)
at ClientRequest.<anonymous> (/root/dapp1/Dapp/node_modules/xhr2-cookies/xml-http-request.ts:266:37)
at ClientRequest.emit (events.js:315:20)
at Socket.socketOnEnd (_http_client.js:493:9)
at Socket.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
at PollingBlockTracker._performSync (/root/dapp1/Dapp/node_modules/eth-block-tracker/src/polling.js:51:24)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
This is my truffle-config.js
const HDWalletProvider = require("#truffle/hdwallet-provider");
const mnemonic = "not my real mn emon ic words this is pl cfff was";
module.exports = {
networks: {
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/v3/2342342342344345344343434");
},
network_id: '*',
timeoutBlocks: 100000,
networkCheckTimeout:2000000
},
// https://www.trufflesuite.com/docs/truffle/distributed-ledger-support/working-with-quorum
quorum: {
provider: function() {
return new HDWalletProvider(mnemonic, "http://127.0.0.1:21000/");
},
network_id: '*',
type: "quorum",
timeoutBlocks: 1000000,
networkCheckTimeout:20000000
}
},
compilers: {
solc: {
version: "0.5.0",
settings: {
optimizer: {
enabled: true, // Default: false
runs: 1000 // Default: 200
},
evmVersion: "homestead" // Default: "byzantium"
}
}
}
};
I am using
Node v14.16.1
Ubuntu 18.04 (64 Bit)
Quorum 21.1.0
Web3.js v1.3.5
Truffle v5.3.4 (core: 5.3.4)
solidity v0.5.0
I'm trying to use ftp-deploy to of course deploy some files to a ftp-server. My file looks like this:
deploy.js
var FtpDeploy = require("ftp-deploy");
var ftpDeploy = new FtpDeploy();
var config = {
user: "myusername",
password: "mypassword",
host: "myipaddress",
port: 21,
localRoot: __dirname + "/",
remoteRoot: "/public_html/",
include: ["index.html", "index.css", "assets/*"],
deleteRoot: true
};
ftpDeploy
.deploy(config)
.then(res => console.log("Deployed successfully!"))
.catch(err => console.log(err));
When I run yarn deploy I get the following error:
Connected to: myipaddress
Connected: Server message: --------- Welcome to Pure-FTPd [privsep] [TLS] ----------
You are user number 2 of 50 allowed.
Local time is now 08:43. Server port: 21.This is a private system - No anonymous login
IPv6 connections are also welcome on this server.
You will be disconnected after 15 minutes of inactivity.
Failed undefined
TypeError: Cannot read property 'reduce' of undefined
at canIncludePath (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/lib.js:53:31)
at handleItem (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/lib.js:79:17)
at Array.reduce (<anonymous>)
at parseLocal (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/lib.js:102:23)
at handleItem (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/lib.js:68:23)
at Array.reduce (<anonymous>)
at Object.parseLocal (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/lib.js:102:23)
at FtpDeployer.checkLocalAndUpload (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/ftp-deploy.js:86:27)
at lib.checkIncludes.then.then.then.then.config (/Users/dean/Desktop/website/node_modules/ftp-deploy/src/ftp-deploy.j
s:109:34)
at tryCatcher (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/re
lease/promise.js:512:31) at Promise._settlePromise (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/promi
se.js:569:18)
at Promise._settlePromise0 (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/prom
ise.js:614:10) at Promise._settlePromises (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/dean/Desktop/website/node_modules/ftp-deploy/node_modules/bluebird/js/release/
async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
✨ Done in 0.54s.
deans-imac:website dean$
Is this something I'm doing wrong or an error in their package?
Glancing at the at the source for ftp-deploy it looks like exclude might be a required config item. It appears they are calling reduce on it without testing it it exists. I would try adding an empty exclude: [] to the config and see if that helps.
var config = {
user: "myusername",
password: "mypassword",
host: "myipaddress",
port: 21,
localRoot: __dirname + "/",
remoteRoot: "/public_html/",
include: ["index.html", "index.css", "assets/*"],
exclude: [], // <-- add this
deleteRoot: true
};
I am doing a angular exercise where i have to do a e2e test, when I run the protractor protractor.conf.js i have the following errors:
[launcher] Running 1 instances of WebDriver
(node:3032) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:108
var template = new Error(this.message);
^
SessionNotCreatedError: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"6904.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=59.0.3071.86)
(Driver info: chromedriver=2.19.346078 (6f1f0cde889532d48ce8242342d0b84f94b114a1),platform=Windows NT 10.0 x86_64)
at new bot.Error (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:108:18)
at Object.bot.response.checkResponse (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\response.js:109:9)
at C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:160:24
at promise.ControlFlow.runInFrame_ (C:/Users/Aurora/AppData/Roaming/npm/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:1857:20)
at wrappedCtr.notify (C:/Users/Aurora/AppData/Roaming/npm/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:2448:25)
at promise.Promise.notify_ (C:/Users/Aurora/AppData/Roaming/npm/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:564:12)
at Array.forEach (native)
at promise.Promise.notifyAll_ (C:/Users/Aurora/AppData/Roaming/npm/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/../webdriver/promise.js:553:15)
at goog.async.run.processWorkQueue (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\goog\async\run.js:130:15)
at <anonymous>
From: Task: WebDriver.createSession()
at Function.webdriver.WebDriver.acquireSession_ (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:157:22)
at Function.webdriver.WebDriver.createSession (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:131:30)
at new Driver (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\chrome.js:810:36)
at DirectDriverProvider.getNewDriver (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\lib\driverProviders\direct.js:68:16)
at Runner.createBrowser (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\lib\runner.js:182:37)
at C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\lib\runner.js:263:21
at _fulfilled (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:797:54)
at self.promiseDispatch.done (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:826:30)
at Promise.promise.promiseDispatch (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:759:13)
at C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:525:49
[launcher] Process exited with error code 1
Can anybody help me to figure out what's wrong?
I attach the file protractor.conf.js and the file that contain all the e2e tests that I execute on the application:
exports.config = {
allScriptsTimeout: 11000,
specs: [
'e2e/*.js'
],
capabilities: {
'browserName': 'chrome'
},
baseUrl: 'http://localhost:3001/',
framework: 'jasmine',
directConnect: true,
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};
'use strict';
describe('conFusion App E2E Testing', function() {
//Introduce the tests into this file
it('should automatically redirect to / when location hash/fragment is empty', function() {
browser.get('index.html');
expect(browser.getLocationAbsUrl()).toMatch("/");
});
//Set up a simple test for the index file to check if the page title is set correctly
describe('index', function() {
beforeEach(function() {
browser.get('index.html#/');
});
it('should have a title', function() {
expect(browser.getTitle()).
toEqual('Ristorante Con Fusion');
});
});
//We will navigate to the first menu item, and test a few properties there
describe('menu 0 item', function() {
beforeEach(function() {
browser.get('index.html#/menu/0');
});
it('should have a name', function() {
var name = element(by.binding('dish.name'));
expect(name.getText()).
toEqual('Uthapizza Hot $4.99');
});
it('should show the number of comments as', function() {
expect(element.all(by.repeater('comment in dish.comments'))
.count()).toEqual(7);
});
it('should show the first comment author as', function() {
element(by.model('critiria')).sendKeys('author');
expect(element.all(by.repeater('comment in dish.comments'))
.count()).toEqual(7);
var author = element.all(by.repeater('comment in dish.comments'))
.first().element(by.binding('comment.author'));
expect(author.getText()).toContain('25 Cent');
});
});
});
For a reason below, I've added Chromedriver Web Version 2.19 again and installed
Chrome version 44, I always get an error:
C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:172 callback(new Error(message)); ^ Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:55368 at ClientRequest.
<anonymous> (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\http\index.js:172:16) at emitOne (events.js:115:13) at ClientRequest.emit (events.js:210:7) at Socket.socketErrorListener (_http_client.js:399:9) at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7) at emitErrorNT (internal/streams/destroy.js:62:8) at _combinedTickCallback (internal/process/next_tick.js:102:11) at process._tickCallback (internal/process/next_tick.js:161:9) From: Task: WebDriver.createSession() at
Function.webdriver.WebDriver.acquireSession_ (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:157:22) at Function.webdriver.WebDriver.createSession (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:131:30)
at new Driver (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\chrome.js:810:36) at DirectDriverProvider.getNewDriver (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\lib\driverProviders\direct.js:68:16)
at Runner.createBrowser (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\lib\runner.js:182:37) at C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\lib\runner.js:263:21 at _fulfilled (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:797:54)
at self.promiseDispatch.done (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:826:30) at Promise.promise.promiseDispatch (C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:759:13) at C:\Users\Aurora\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:525:49
[launcher] Process exited with error code 1
You are using:
Chromedriver version 2.19
Chrome version 59
These two are not compatible - you need ChromeDriver 2.30 to work with Chrome 59:
Latest Release: ChromeDriver 2.30
Supports Chrome v58-60
Update your ChromeDriver. Typically done via:
webdriver-manager update
Sequelize isn't able to create its meta table for some reason:
$ sequelize db:migrate
Sequelize [Node: 6.10.2, CLI: 2.7.0, ORM: 3.30.4]
Loaded configuration file "config\config.json".
Using environment "development".
{ SequelizeDatabaseError: ER_CANT_CREATE_TABLE: Can't create table 'SequelizeMeta' (errno: 30)
at Query.formatError (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\dialects\mysql\query.js:175:14)
at Query._callback (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\dialects\mysql\query.js:49:21)
at Query.Sequence.end (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\sequences\Sequence.js:86:24)
at Query.ErrorPacket (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\sequences\Query.js:88:8)
at Protocol._parsePacket (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:280:23)
at Parser.write (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Parser.js:75:12)
at Protocol.write (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket.<anonymous> (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\Connection.js:103:28)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:551:20)
name: 'SequelizeDatabaseError',
message: 'ER_CANT_CREATE_TABLE: Can\'t create table \'SequelizeMeta\' (errno: 30)',
parent:
{ Error: ER_CANT_CREATE_TABLE: Can't create table 'SequelizeMeta' (errno: 30)
at Query.Sequence._packetToError (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\sequences\Sequence.js:52:14)
at Query.ErrorPacket (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\sequences\Query.js:77:18)
at Protocol._parsePacket (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:280:23)
at Parser.write (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Parser.js:75:12)
at Protocol.write (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket.<anonymous> (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\Connection.js:103:28)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:551:20)
--------------------
at Protocol._enqueue (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:141:48)
at Connection.query (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\Connection.js:208:25)
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\dialects\mysql\query.js:40:21
at Promise._execute (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\debuggability.js:300:9)
at Promise._resolveFromExecutor (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:483:18)
at new Promise (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:79:10)
at Query.run (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\dialects\mysql\query.js:39:17)
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\sequelize.js:849:20
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\retry-as-promised\index.js:40:21
at Promise._execute (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\debuggability.js:300:9)
at Promise._resolveFromExecutor (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:483:18)
at new Promise (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:79:10)
at retryAsPromised (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\retry-as-promised\index.js:30:10)
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\sequelize.js:848:12
at tryCatcher (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\async.js:17:14)
code: 'ER_CANT_CREATE_TABLE',
errno: 1005,
sqlState: 'HY000',
index: 0,
sql: 'CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`name` VARCHAR(255) NOT NULL UNIQUE , UNIQUE `SequelizeMeta_name_unique` (`name`), PRIMARY KEY (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci;' },
original:
{ Error: ER_CANT_CREATE_TABLE: Can't create table 'SequelizeMeta' (errno: 30)
at Query.Sequence._packetToError (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\sequences\Sequence.js:52:14)
at Query.ErrorPacket (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\sequences\Query.js:77:18)
at Protocol._parsePacket (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:280:23)
at Parser.write (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Parser.js:75:12)
at Protocol.write (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket.<anonymous> (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\Connection.js:103:28)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:551:20)
--------------------
at Protocol._enqueue (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\protocol\Protocol.js:141:48)
at Connection.query (c:\Users\shi\AppData\Roaming\npm\node_modules\mysql\lib\Connection.js:208:25)
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\dialects\mysql\query.js:40:21
at Promise._execute (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\debuggability.js:300:9)
at Promise._resolveFromExecutor (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:483:18)
at new Promise (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:79:10)
at Query.run (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\dialects\mysql\query.js:39:17)
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\sequelize.js:849:20
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\retry-as-promised\index.js:40:21
at Promise._execute (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\debuggability.js:300:9)
at Promise._resolveFromExecutor (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:483:18)
at new Promise (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:79:10)
at retryAsPromised (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\retry-as-promised\index.js:30:10)
at c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\lib\sequelize.js:848:12
at tryCatcher (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (c:\Users\shi\AppData\Roaming\npm\node_modules\sequelize\node_modules\bluebird\js\release\async.js:17:14)
code: 'ER_CANT_CREATE_TABLE',
errno: 1005,
sqlState: 'HY000',
index: 0,
sql: 'CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`name` VARCHAR(255) NOT NULL UNIQUE , UNIQUE `SequelizeMeta_name_unique` (`name`), PRIMARY KEY (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci;' },
sql: 'CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`name` VARCHAR(255) NOT NULL UNIQUE , UNIQUE `SequelizeMeta_name_unique` (`name`), PRIMARY KEY (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci;' }
Even if I use the SQL command directly it still doesn't work:
mysql> CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`name` VARCHAR(255) NOT NULL UNIQUE , UNIQUE `SequelizeMeta_name_unique` (`name`), PRIMARY KEY (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci;
1005 - Can't create table 'SequelizeMeta' (errno: 30)
Any ideas what could cause it?
errno: 30 is linux speak for read only file system. Obviously this cannot be fixed by changing anything in sequelize :)
You have to correct file system permissions, or it's equally likely that the file system is corrupted and the OS has switched off writing to prevent further damage.