qemu: Unsupported syscall: 4090 - qemu

guys
sudo chroot . ./qemu-mipsn32-static bin/boa
qemu: Unsupported syscall: 4090
qemu: Unsupported syscall: 4090
qemu: Unsupported syscall: 4004
qemu: Unsupported syscall: 4001
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Got this 'boa' from a firmware which is running on a router within RTL8196D chip.
What should I do to make this work?Thanks

System call number 4090 is mips_mmap and its not always implemented.
change it to mmap instead

Related

Error connecting to remote mysql through google cloud

After I run a command regarding the database, I get this:
{ SequelizeConnectionError: connect ETIMEDOUT ip:5432
at connection.connect.err (/Users/me/Documents/PetHotel/backend-sql/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:128:24)
at Connection.connectingErrorHandler (/Users/me/Documents/PetHotel/backend-sql/node_modules/pg/lib/client.js:140:14)
at Connection.emit (events.js:182:13)
at Socket.reportStreamError (/Users/me/Documents/PetHotel/backend-sql/node_modules/pg/lib/connection.js:71:10)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
name: 'SequelizeConnectionError',
parent:
{ Error: connect ETIMEDOUT ip:5432
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1121:14)
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: 'ip',
port: 5432 },
original:
{ Error: connect ETIMEDOUT ip:5432
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1121:14)
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: 'ip',
port: 5432 } }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! app-backend# db:reset:development: `cross-env MIGRATION_ENV=development node ./migrations/reset`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the app-backend# db:reset:development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Is it something regarding google I wonder? I do have set 0.0.0.0/0 as authorised ip
From the error, it seems your app is not able to connect to CloudSQL instance possibly due to network restriction.
Opening instance to 0.0.0.0/0 is not a good idea.
Google suggest different ways yo connect to CloudSQL Instance here. One particular method is sql-proxy.
Hope these guides helps you to establish connection between your app and cloudsql.

Failed to download Chromium Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download

I am trying to install polymer-cli version 3 in my Windows and I am getting the error mentioned in this question. Searching around I reach that it is a problem with kind of PDF Generator from NPM dependencies. Sincerely, it doesn't make sense to me but I still try follow the recommendation mentioned in https://github.com/webpro/reveal-md/issues/191.
Bellow, the full error:
C:\dev\polymer2\sample>npm install -g polymer-cli#next --no-optional
C:\Users\my-user\AppData\Roaming\npm\polymer -> C:\Users\my-user\AppData\Roaming\npm\node_modules\polymer-cli\bin\poly
mer.js
> puppeteer#1.3.0 install C:\Users\my-user\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\puppeteer
> node install.js
ERROR: Failed to download Chromium r549031! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: getaddrinfo ENOTFOUND storage.googleapis.com storage.googleapis.com:443
at errnoException (dns.js:50:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'storage.googleapis.com',
host: 'storage.googleapis.com',
port: 443 }
npm WARN rollback Rolling back debug#3.1.0 failed (this is probably harmless): EPERM: operation not permitted, scandir '
C:\Users\my-user\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\puppeteer\node_modules\https-proxy-agent\nod
e_modules'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.3 (node_modules\polymer-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.3: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: puppeteer#1.3.0 (node_modules\polymer-cli\node_modules\puppeteer):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: puppeteer#1.3.0 install: `node install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ polymer-cli#1.7.0-pre.17
updated 1 package in 15.762s
C:\dev\polymer2\sample>polymer --version
1.7.0-pre.17

polyserve cannot serve the app

Node v8.11
NPM v5.6
Whenever I try to call polymer serve an error occurs telling that server failed to start and no available ports, which is wrong! most of the ports are available.
$ polymer serve
ERROR: Server failed to start: Error: No available ports. Ports tried: [8081,8000,8001,8003,8031,2000,2001,2020,2109,2222,2310,3000,3001,3030,3210,3333,4000,4001,4040,4321,4502,4503,4567,5000,5001,5050,5432,6000,6001,6060,6666,6543,7000,7070,7774,7777,8765,8777,8888,9000,9001,9080,9090,9876,9877,9999,49221,55001]
at /Users/nabed/.config/yarn/global/node_modules/polyserve/lib/start_server.js:380:15
at Generator.next (<anonymous>)
at fulfilled (/Users/nabed/.config/yarn/global/node_modules/polyserve/lib/start_server.js:17:58)
at <anonymous>
error: cli runtime exception: Error: Error: No available ports. Ports tried: [8081,8000,8001,8003,8031,2000,2001,2020,2109,2222,2310,3000,3001,3030,3210,3333,4000,4001,4040,4321,4502,4503,4567,5000,5001,5050,5432,6000,6001,6060,6666,6543,7000,7070,7774,7777,8765,8777,8888,9000,9001,9080,9090,9876,9877,9999,49221,55001]
error: Error: Error: No available ports. Ports tried: [8081,8000,8001,8003,8031,2000,2001,2020,2109,2222,2310,3000,3001,3030,3210,3333,4000,4001,4040,4321,4502,4503,4567,5000,5001,5050,5432,6000,6001,6060,6666,6543,7000,7070,7774,7777,8765,8777,8888,9000,9001,9080,9090,9876,9877,9999,49221,55001]
at /Users/nabed/.config/yarn/global/node_modules/polyserve/lib/start_server.js:91:19
at Generator.throw (<anonymous>)
at rejected (/Users/nabed/.config/yarn/global/node_modules/polyserve/lib/start_server.js:18:65)
at <anonymous>
here is a --verbose err log text http://freetexthost.com/2sjgr45yx5
I am on mac, I installed node via package installer form there website
As #synk said on the comment:
polymer serve --hostname 0.0.0.0 or replace 0.0.0.0 with an IP
that is available on the machine

Polymer2.0 - polymer testing is failing with error

When I try to test polymer elements and run polymer test command, I am getting below error
Installing and starting Selenium server for local browsers
----------
selenium-standalone installation starting
----------
---
selenium install:
from: https://selenium-release.storage.googleapis.com/3.0/selenium-server-standa
lone-3.0.1.jar
to: C:\Users\xxxx\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\se
lenium-standalone\.selenium\selenium-server\3.0.1-server.jar
---
chrome install:
from: https://chromedriver.storage.googleapis.com/2.27/chromedriver_win32.zip
to: C:\Users\xxxx\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\se
lenium-standalone\.selenium\chromedriver\2.27-x64-chromedriver
---
ie install:
from: https://selenium-release.storage.googleapis.com/2.53/IEDriverServer_x64_2.
53.1.zip
to: C:\Users\xxxx\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\se
lenium-standalone\.selenium\iedriver\2.53.1-x64-IEDriverServer.exe
---
firefox install:
from: https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriv
er-v0.11.1-win64.zip
to: C:\Users\xxxx\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\se
lenium-standalone\.selenium\geckodriver\0.11.1-x64-geckodriver
Error: Could not download https://selenium-release.storage.googleapis.com/3.0/se
lenium-server-standalone-3.0.1.jar: Error: connect ETIMEDOUT xxx.xxx.x.xx:443
error: cli runtime exception: Error: Could not download https://selenium-relea
se.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar: Error: conne
ct ETIMEDOUT xxx.xxx.x.xx:443
error: Error: Could not download https://selenium-release.storage.googleapis.c
om/3.0/selenium-server-standalone-3.0.1.jar: Error: connect ETIMEDOUT xxx.xxx.x.xx:443
at Request.<anonymous> (C:\Users\xxxx\AppData\Roaming\npm\node_modules\pol
ymer-cli\node_modules\selenium-standalone\lib\install.js:286:12)
at Request.g (events.js:292:16)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (C:\Users\xxxx\AppData\Roaming\npm\node_modules\
polymer-cli\node_modules\selenium-standalone\node_modules\request\request.js:845
:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
For security reasons, masked IP address with 'x'
Note: I am using proxy and it is available in .bowerrc file and other bower downloads are fine without any issue

Unable to build Sitecore Habitat solution

I tried to set up Sitecore Habitat solution by using the default configuration but unfortunately when i try the third task Publish All Projects the build fails showing the below error:
> cmd.exe /c gulp -b "C:\Projects\Habitat" --color --gulpfile "C:\Projects\Habitat\Gulpfile.js" 03-Publish-All-Projects
[11:12:23] Using gulpfile C:\Projects\Habitat\Gulpfile.js
[11:12:23] Starting '03-Publish-All-Projects'...
[11:12:23] Starting 'Build-Solution'...
[11:12:23] Using automatic maxcpucount
[11:12:23] { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }
[11:12:23] Build failed!
[11:12:23] 'Build-Solution' errored after 101 ms
[11:12:23] Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
[11:12:23] '03-Publish-All-Projects' errored after 112 ms
[11:12:23] Error in plugin 'run-sequence(Build-Solution)'
Message:
spawn ENOENT
Details:
code: ENOENT
errno: ENOENT
syscall: spawn
Stack:
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
Process terminated with code 1.
The enviorement that i have set up is identical as described on the following link https://github.com/Sitecore/Habitat/wiki/01-Getting-Started.
Seems like npm modules gulp is not found.
If you have installed npm module add the following to the path in the environment varriable:%AppData%\npm
Note: Do not forget to close and re-open cmd (or VS2015).