-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: [Peer.js]: sendProposal - timed out after:45000 error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT #99
Comments
Fatal error instantiating chaincode on some(all) peers! ubuntu@ubuntu:~/build-blockchain-insurance-app$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ubuntu@ubuntu:~/build-blockchain-insurance-app$ docker network ls NETWORK ID NAME DRIVER SCOPE |
Anyone who solved this. Please help out. |
Insurance Peer Logs are here |
I got this error, I used nvm to try different version combination to get it work. Following is my environment. node 8.11.1 I think the node version is the most important one. |
@david168 Mac or Ubuntu? Guessing Ubuntu. |
It is causing in Ubuntu.. |
I don't have ubuntu so will be hard for me to try this anytime soon..but since you said it worked earlier, have you tried clearing your docker containers ?
|
yes sir. i cleared it. What are the actual versions of packages i need to use? like accurate. if u can suggest. I'll try it again |
like Docker - v18.06 |
ubuntu 18.04 Desktop version |
Ok I’ll test on Ubuntu in next couple of days and let you know
On Wed, Apr 22, 2020 at 2:31 PM David Lai ***@***.***> wrote:
@david168 <https://github.com/david168> Mac or Ubuntu? Guessing Ubuntu.
ubuntu
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPSAZIN2OZ7KJDN35NXHPTRN5O4BANCNFSM4LSI4WZQ>
.
--
Thanks in advance,
Horea Porutiu
-----------------------------------------------
Univ. of California, San Diego 2017
B.S. Computer Science
B.S. Management Science
(310) 707-6864
[email protected]
|
Sure. Will Wait for your update on this.
…On Thu, Apr 23, 2020, 04:14 Horea Porutiu ***@***.***> wrote:
Ok I’ll test on Ubuntu in next couple of days and let you know
On Wed, Apr 22, 2020 at 2:31 PM David Lai ***@***.***>
wrote:
> @david168 <https://github.com/david168> Mac or Ubuntu? Guessing Ubuntu.
>
> ubuntu
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#99 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACPSAZIN2OZ7KJDN35NXHPTRN5O4BANCNFSM4LSI4WZQ
>
> .
>
--
Thanks in advance,
Horea Porutiu
-----------------------------------------------
Univ. of California, San Diego 2017
B.S. Computer Science
B.S. Management Science
(310) 707-6864
***@***.***
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDK3EYKVQTAD5KXF5ERC3DRN5XLDANCNFSM4LSI4WZQ>
.
|
OS: Ubuntu Linux 18.04 LTS Bionic Beaver Minimal Install (64 bit)
You may also want to check this troubleshooting tip - i.e. if you get this error:
Go ahead and change the Dockerfile in the /web directory to the following:
After you change the dockerfile, run the ./clean script, and then docker login, and then try and run the ./build_ubuntu script again. You can read more about this issue here Please let me know if this solves it. If this does not solve it - i would clean all docker containers using the following command
remove the repo, clone it again, and run through the steps again. Keep me updated. |
1. Yes sir I did
2. Ok will try this out & let you know.
3. What's the node version sir? Can we have the node version more than
8.9.0?
I'll try and update here.
Thank you
…On Tue, Apr 28, 2020, 01:33 Horea Porutiu ***@***.***> wrote:
@SailendraDs <https://github.com/SailendraDs> @david168
<https://github.com/david168>
1.
you've made sure to change the line
<https://github.com/IBM/build-blockchain-insurance-app/blob/ubuntu/local-fix/web/www/blockchain/config.js#L9>
in config.js to isUbuntu: true right?
2.
I've just tested this and it works on the following specs
OS: Ubuntu Linux 18.04 LTS Bionic Beaver Minimal Install (64 bit)
***@***.***:/var/lib/build-blockchain-insurance-app# docker -v
Docker version 19.03.8, build afacb8b7f0
***@***.***:/var/lib/build-blockchain-insurance-app# docker-compose -version
docker-compose version 1.17.1, build unknown
You may also want to check this troubleshooting tip
<https://github.com/IBM/build-blockchain-insurance-app/blob/master/README-local.md#troubleshooting>
-
Peer joined default channel
Connecting and Registering Block Events
Chaincode is not installed, attempting installation...
Base container image present.
Successfully installed chaincode on the default channel.
2019-06-18T17:56:22.641Z - error: [Peer.js]: sendProposal - timed out after:45000
Fatal error instantiating chaincode on some(all) peers!
Error: Proposal rejected by some (all) of the peers: Error: REQUEST_TIMEOUT
at /app/www/blockchain/utils.js:243:15
at Generator.next ()
at step (/app/bin/blockchain/utils.js:103:191)
at /app/bin/blockchain/utils.js:103:361
at
at process._tickCallback (internal/process/next_tick.js:188:7)
npm ERR! code ELIFECYCLE
Go ahead and change the Dockerfile in the /web directory to the following:
FROM docker.io/library/node:8.9.0
ENV NODE_ENV production
ENV PORT 3000
ENV DOCKER_SOCKET_PATH /host/var/run/docker.sock
ENV DOCKER_CCENV_IMAGE hyperledger/fabric-ccenv:latest
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN npm i && npm i --only=dev \
&& npm run build \
&& npm prune
EXPOSE 3000
CMD ["npm", "run", "serve"]
Go ahead and run the ./clean script, and then docker login, and then try and run the ./build_ubuntu script again.
You can read more about this issue here
<#79>
Please let me know if this solves it.
If this does not solve it - i would clean all docker containers using the
following command
docker stop $(docker ps -a -q) ; docker rm -f $(docker ps -aq) ; docker system prune -a ; docker volume prune ; docker ps -a ; docker images -a ; docker volume ls
remove the repo, clone it again, and run through the steps again.
Keep me updated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDK3E6W2OR3YMF6PYNBZLTROXQHRANCNFSM4LSI4WZQ>
.
|
node is not installed on the machine.
Docker installs node in the script - https://github.com/IBM/build-blockchain-insurance-app/blob/master/web/Dockerfile - and it uses 8.11-stretch as shown in the file here. Here is the OS i have tested on - and it works fine.
|
With these docker version and docker-compose, it worked on my Ubuntu OS as shown above. |
Ok sir thanks will be trying it tomorrow. And let you know if I get
anything. Thanks
…On Thu, Apr 30, 2020, 01:58 Horea Porutiu ***@***.***> wrote:
***@***.***:~/build-blockchain-insurance-app# docker -v
Docker version 19.03.8, build afacb8b7f0
***@***.***:~/build-blockchain-insurance-app# docker-compose --version
docker-compose version 1.17.1, build unknown
With these docker version and docker-compose, it worked on my Ubuntu OS as
shown above.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDK3E5X77NBY5HKI6FD4C3RPCEX7ANCNFSM4LSI4WZQ>
.
|
@horeaporutiu Cleared Containers & Everything as said. |
I'm Using Ubuntu 18.04.4 Bionic Beaver on VMware |
Can you take away your changes to peer base yaml file? What happens then if
u run it?
On Thu, Apr 30, 2020 at 3:11 PM Sailendra Damaraju ***@***.***> wrote:
I'm Using Ubuntu 18.04.4 Bionic Beaver on VMware
I changed 3 files, 1. Dockerfile, 2.www/blockchain/config.js to isubuntu:
true,3. peer-base.yaml network to buildblockchaininsuranceapp_default
Still I'm not sure where it is going wrong.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPSAZLXO2YZYC6D55SU4S3RPHZQPANCNFSM4LSI4WZQ>
.
--
Thanks in advance,
Horea Porutiu
-----------------------------------------------
Univ. of California, San Diego 2017
B.S. Computer Science
B.S. Management Science
(310) 707-6864
[email protected]
|
I got the same error sendproposal timed out
…On Fri, May 1, 2020, 05:36 Horea Porutiu ***@***.***> wrote:
Can you take away your changes to peer base yaml file? What happens then if
u run it?
On Thu, Apr 30, 2020 at 3:11 PM Sailendra Damaraju <
***@***.***>
wrote:
> I'm Using Ubuntu 18.04.4 Bionic Beaver on VMware
> I changed 3 files, 1. Dockerfile, 2.www/blockchain/config.js to isubuntu:
> true,3. peer-base.yaml network to buildblockchaininsuranceapp_default
> Still I'm not sure where it is going wrong.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#99 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACPSAZLXO2YZYC6D55SU4S3RPHZQPANCNFSM4LSI4WZQ
>
> .
>
--
Thanks in advance,
Horea Porutiu
-----------------------------------------------
Univ. of California, San Diego 2017
B.S. Computer Science
B.S. Management Science
(310) 707-6864
***@***.***
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDK3EZJCFB3FOUE243FUYDRPIG7FANCNFSM4LSI4WZQ>
.
|
@horeaporutiu It worked for 8-9 seconds & the got not found with an error Timed out after 45000 unlike earlier, it didn't even run for 1 second. |
|
Ok thanks @josecarlos3390
I need to know if you can send me working _layout.pug file without Logo &
footer menu & language selector please.
I'm.getting pug errors in spaces, etc.
Thanks in advance.
…On Mon, May 18, 2020, 23:35 josecarlos3390 ***@***.***> wrote:
Okay, I have this configuration running actually and it works!.
Working with this versions: ***@***.***:$ docker --version
Docker version 19.03.8, build afacb8b7f0
***@***.***:$ docker-compose --version
docker-compose version 1.25.5, build 8a1c60f6
***@***.***:$ node -v
v14.2.0
***@***.***:$ npm -v
6.14.4
***@***.***:~$ nvm --version
0.35.3
Then, you need modify this 3 archives:
------------------------------
1. config.js file (route :
build-blockchain-insurance-app/web/www/blockchain/)
Change line 9 of of
build-blockchain-insurance-app/web/www/blockchain/config.js file to
isUbuntu: true
2. Dockerfile (route: build-blockchain-insurance-app/web/)
FROM docker.io/library/node:8.9.0
ENV NODE_ENV production
ENV PORT 3000
ENV DOCKER_SOCKET_PATH /host/var/run/docker.sock
ENV DOCKER_CCENV_IMAGE hyperledger/fabric-ccenv:latest
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN npm i && npm i --only=dev
&& npm run build
&& npm prune
EXPOSE 3000
CMD ["npm", "run", "serve"]
1. peer-base.yml (route: build-blockchain-insurance-app/ )
version: '2'
services:
peer-base:
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
-
CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=build-blockchain-insurance-app_default
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_ENDORSER_ENABLED=true
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_MSPCONFIGPATH=/peer/crypto/msp
- CORE_PEER_TLS_CERT_FILE=/peer/crypto/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/peer/crypto/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/peer/crypto/tls/ca.crt
working_dir: /peer
command: peer node start
volumes:
- /var/run/:/host/var/run/
NOTE:
- I have installed node v14.2.0, but in Dockerfile i put v8.9.0 (it
installa that version for dockerfile), not necesary installed on local
virtual machine.
- In peer-base.yml, i have this line :
CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=build-blockchain-insurance-app_default
I have the name "build-blockchain-insurance-app_default" without
changes, my docker version do not have problems with characters '-', in
older versions you need change "build-blockchain-insurance-app_default" by
"buildblockchaininsuranceapp_default" (remove '-').
------------------------------
Finally:
If you are ok with all the file changed, run this commands:
***@***.***:/build-blockchain-insurance-app$ docker image prune
***@***.***:/build-blockchain-insurance-app$ systemctl restart docker
***@***.***:/build-blockchain-insurance-app$ docker login
***@***.***:/build-blockchain-insurance-app$ ./build_ubuntu.sh
***@***.***:~/build-blockchain-insurance-app$ docker logs web
;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDK3E2MRFMXWC5ARBEBWQTRSF2HBANCNFSM4LSI4WZQ>
.
|
I tried remove IMB logo with fails too, but i use tricks for remove logo, the logo is painted with black lines, then you can change the color black for white, you need change this file: For Header:
For Footer:
Good Luck! |
Ok got it. Will try it today. I never thought to edit css always looked for
the layout edit file. Thanks it never striked at all. 😊
…On Tue, May 19, 2020, 16:42 josecarlos3390 ***@***.***> wrote:
I tried remove IMB logo with fails too, but i use tricks for remove logo,
the logo is painted with black lines, then you can change the color black
for white, you need change this file:
For Header:
1. northstar.css (route : build-blockchain-insurance-app/web/src/)
In this file search "#ibm-home a{box-sizing:border-box;". Look inside
the file, the code range between "#ibm-home a{box-sizing:border-box;" AND
"ibm-parent-site-name a:hover", change all the tags "color:#000" By
"color:#e0e0e0".
With this changes you are painting the logo with BLANK COLOR, same to
the background, and the logo dissapears.
For Footer:
2. _layout.pug (route: build-blockchain-insurance-app/web/views/)
In this file replace only FOOTER section by this code.
footer
.ibm-col-5-1
h3.ibm-bold Seleccionar el Idioma:
select#region-selector(style='width: 100%;')
option(value='', selected)
option(value='en') Ingles
option(value='de') Español
Good Luck!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDK3EYSK6U2MO2EMP2CSG3RSJSQJANCNFSM4LSI4WZQ>
.
|
@josecarlos3390 |
Error ->
/app/app/static/js
Server running on port: 3000
Default channel not found, attempting creation...
Successfully created a new default channel.
Joining peers to the default channel.
Chaincode is not installed, attempting installation...
Base container image present.
info: [packager/Golang.js]: packaging GOLANG from bcins
info: [packager/Golang.js]: packaging GOLANG from bcins
info: [packager/Golang.js]: packaging GOLANG from bcins
info: [packager/Golang.js]: packaging GOLANG from bcins
Successfully installed chaincode on the default channel.
error: [Peer.js]: sendProposal - timed out after:45000
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT
at Timeout._onTimeout (/app/node_modules/fabric-client/lib/Peer.js:124:19)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
Fatal error instantiating chaincode on some(all) peers!
Error: Proposal rejected by some (all) of the peers: Error: REQUEST_TIMEOUT
at /app/www/blockchain/utils.js:248:15
I tried all the Instructions in every thread here. Earlier it worked well when i have executed it last week but now i'm facing issues in this.
my DockerFile -
FROM docker.io/library/node:8.11.3
ENV NODE_ENV production
ENV PORT 3000
ENV DOCKER_SOCKET_PATH /host/var/run/docker.sock
ENV DOCKER_CCENV_IMAGE hyperledger/fabric-ccenv:x86_64-1.1.0
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN apt update && apt install -y build-essential
&& npm i && npm i --only=dev
&& npm run build
&& npm prune
&& apt remove -y build-essential
EXPOSE 3000
CMD ["npm", "run", "serve"]
build_ubuntu,sh - File
#!/bin/bash
cp ./binary_ubuntu/* .
export FABRIC_CFG_PATH=$PWD
sh ./ibm_fabric.sh
sh ./docker-images.sh
sleep 5
docker-compose up --no-start
sleep 60
docker-compose up -d
Versions -
Please let me know.. @horeaporutiu Sir
The text was updated successfully, but these errors were encountered: