Error in deploying node app in service fabric ubuntu - node.js

Hello I am trying to deploy a Node+Mongo application in Azure service fabric cluster but getting error after installation complete.
I have just package the node application using yo azuresfguest command as given in documentation.
After that I have followed this step :-
https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-containers-linux
So after installation is complete I am getting following error:-
Error occurred in request., RetryError: HTTPSConnectionPool(host='testcluster.centralindia.cloudapp.azure.com', port=19080): Max retries exceeded with url: /ApplicationTypes/$/Provision?api-version=6.2&timeout=60 (Caused by ResponseError('too many 504 error responses',))
Any changes should I make here ?

Related

Receiving "EPROTO" when HTTPS requests with Node 10

a few days ago i moved my frontend with NextJS to Vercel and i started experiencing this following intermittent error during build and production server. So i searched all over the internet but i cannot find the solution.
I am receiving the following error when my App tries to make HTTPS request:
Compiled successfully.
09:47:13.026 Automatically optimizing pages...
09:47:15.212 Error at BlogService.getRecentPosts, details: Error: request to https://**masked** failed, reason: write EPROTO 140256911292224:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1550:SSL alert number 80
09:47:16.629 Error at getStaticProps on Homepage, details: Error: write EPROTO 140657767638848:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1550:SSL alert number 80
09:47:16.654 Error at BlogService.getRecentPosts, details: Error: request to https:/**masked** failed, reason: write EPROTO 139955108906816:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1550:SSL alert number 80
The backend destination is using a Nginx with Reverse Proxy with LetsEncrypt Certificate
So anybody can help me? I never experienced this issue
UPDATE
I changed my backend to AWS Api Gateway but the issue remains.
I already changed my frontend to just make Https requests using TLS 1.2, and the error remains intermittent
Anybody help me?

Error: Failed to connect before the deadline URL:grpc://localhost:7051

:~/Documents/test/education/LFS171x/fabric-material/tuna-app/$ node query.js
Store path:/home/*******/Documents/test/education/LFS171x/fabric-material/tuna-app/hfc-key-store
Successfully loaded user1 from persistence
2020-02-11T05:56:10.423Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://localhost:7051
Query has completed, checking results
error from query = Error: Failed to connect before the deadline URL:grpc://localhost:7051
at checkState (/home/******/Documents/test/education/LFS171x/fabric-material/tuna-app/node_modules/fabric-client/node_modules/grpc/src/client.js:883:16) {
connectFailed: true
}
Im experimenting Hyperledger Fabric, using this link for reference,
Successfully registered admin and user, using registerAdmin.js and registerUser.js.
I am currently facing this error after running node query.js.
I need help troubleshooting this error,
Error: Failed to connect before the deadline
URL:grpc://localhost:7051.
Platform: Ubuntu 18.04,
Experimenting hyperledger fabric using Local Environment.
Thanks in advance.

Error Composer Rest Server

I have follow Hyperledger Composer here and all step is done.
But when i restart my PC and try to connect to Hyperledger Composer via command 'composer-rest-server' have error like this:
enter image description here
Discovering types from business network definition ... Connection
fails: Error: Error trying to ping. Error: Error trying to query
business network. Error: Connect Failed It will be retried for the
next request. Exception: Error: Error trying to ping. Error: Error
trying to query business network. Error: Connect Failed Error:
Error trying to ping. Error: Error trying to query business network.
Error: Connect Failed
at _checkRuntimeVersions.then.catch (/home/linux-user/.nvm/versions/node/v8.9.4/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:713:34)
at <'anonymous'>
Please help! Thank You.
See this answer for restarting the underlying Fabric before starting the REST Server.
When you restart your system, you also shut down all running docker containers. Restart containers(your blockchain network) before launching composer rest server.

Hyperledger Fabric and Node.js creation of environment successfully and getting some error in execution

I am creating network but after that when I'm running the query.js and I am getting this errors:
Fatal error in ../deps/v8/src/api.cc, line 1200
Check failed: !value_obj->IsJSReceiver() || value_obj->IsTemplateInfo().
==== C stack trace ===============================
node(v8::base::debug::StackTrace::StackTrace()+0x16) [0x1598936]
node(V8_Fatal+0xd6) [0x15935c6]
node(v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)+0xf7) [0xa9a447]
/home/ubramanyam/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary
#Subramanyam , What OS and Node version are you using ?
Can you also confirm if you followed instructions given here
http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#node-js-runtime-and-npm

Unable to publish Azure website

When we are trying to publish site to Azure from VS 2013 we are getting
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4270,5): Warning : Retrying the sync because a socket error (10054) occurred.
Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10.
can you guys have any idea why I am getting this error? Previously it was working.

Resources