Closed gkrn closed 4 years ago
There must be something wrong with how you exported your wallet on this step - https://github.com/IBM/evote/blob/master/docs/run-local.md#step-5-export-local-wallet
Please watch the video on that step - you must make sure to export the admin wallet, not the orderer wallet. it is easy to confuse since the orderer wallet is on top of the admin wallet.
Remove your existing wallet, export it again, and try again. make sure your directory structure looks like in the picture too.
In the pic above you see orderer wallet first.
Make sure to export the one under it, as shown below
@gkrn
@gkrn let me know if this solves it
Hey this is not working tried the solution.
Still shows the same error
Here is the server side
::ffff:127.0.0.1 - - [10/Apr/2020:02:36:09 +0000] "OPTIONS /registerVoter HTTP/1.1" 204 0 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0"
req.body:
{ voterId: 'E1234567',
registrarId: 'Bhopal',
firstName: 'Akshat',
lastName: 'Bahety' }
registrarId
Bhopal
voterId
E1234567
Wallet path: H:\evote\web-app\server\src\wallet
FileSystemWallet {
storesInitialized: false,
walletMixin: X509WalletMixin {},
path: 'H:\\evote\\web-app\\server\\src\\wallet' }
An identity for the admin user admin does not exist in the wallet
Run the enrollAdmin.js application before retrying
response from registerVoter:
{ error: 'An identity for the admin user admin does not exist in the wallet. \n Run the enrollAdmin.js application before retrying' }
::ffff:127.0.0.1 - - [10/Apr/2020:02:36:09 +0000] "POST /registerVoter HTTP/1.1" 200 126 "http://localhost:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0"
And the identity exists even it shows in the file explorer. I am still not able to figure this out.
Did u run enrolladmin.js?
On Thu, Apr 9, 2020 at 7:51 PM Akshat Bahety notifications@github.com wrote:
And the identity exists even it shows in the file explorer. I am still not able to figure this out.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-611851460, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZMIBLCZQXR5MG73RSDRL2CSPANCNFSM4LM6MCZA .
-- Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
encountering this
H:\evote\web-app\server>node enrollAdmin.js
Failed to enroll admin user ' + admin + : Error: InvalidURL: url must start with http or https.
on command line
@akshatbahety You are doing cloud version right? On IBM Cloud Blockchain Platform?
You must change this line in your config.json
file:
"caName": "https://50.23.5.248:32087". it says it is failing bc the URL that it looks for (enrollAdmin) is looking for a url that starts with http or https
Look at how it is done in this video
https://github.com/IBM/evote/blob/master/docs/doc-gifs/updateConfig.gif
For the local version using VSCode - you don't need to run enrollAdmin script because when you export the wallet from VSCode extension - it automatically has the private and public keys in there.
The enroll admin file just creates admin public and private keys and stores them in a wallet folder in your file system
I am using it locally and yes everything is there but still for some reason it won't work.
@akshatbahety
Try to delete repo and try the local steps again. Usually the easiest way to get to a working project.
I am using it locally and yes everything is there but still for some reason it won't work.
@akshatbahety
Experiencing the same issue have you fixed it?
@akshatbahety @akkolwalkar
What does your wallet dir show after you expand it?
please attach screen shot - that would help debugging, thanks
It has the fabric gateway key's that where exported.
On Thu, Apr 16, 2020 at 11:32 PM Horea Porutiu notifications@github.com wrote:
please attach screen shot - that would help debugging, thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-614807890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECN5SYUKXVHZTADNUXARJTRM5B5HANCNFSM4LM6MCZA .
can you please show screenshot, depending on which keys were exported, it may or may not be correct - trying to help here :)
please send something like this
horeaporutiu1@gmail.com
if you don't have the admin
and org1Admin
under the wallet
directory, then that is the mistake.
To get this working,
1) delete existing wallet directory
2) you must export again - follow this step carefully: https://github.com/IBM/evote/blob/master/docs/run-local.md#step-5-export-local-wallet
3) try to run the app again - once you finish step 2 you should have admin
and org1Admin
under your wallet
directory
Hye so everything is there first the directory was in the format of wallet/Org1Admin and it still wasn't running I shifted the files directly under the wallet folder
and this is how it looks now, but it still isn't running
U have to “choose an identity to connect with” click on admin. Then it should work
On Thu, Apr 16, 2020 at 6:29 PM Akshat Bahety notifications@github.com wrote:
Hye so everything is there first the directory was in the format of wallet/Org1Admin and it still wasn't running I shifted the files directly under the wallet folder
and this is how it looks now, but it still isn't running
[image: image] https://user-images.githubusercontent.com/17676203/79522250-d4a16800-8078-11ea-97d0-9537a65bc6d9.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-614985109, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZMEIZW34UNR5Q2KD4DRM6WHNANCNFSM4LM6MCZA .
-- Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
Followed the same steps as you mentioned, connected as admin still not working.
What is the error
On Fri, Apr 17, 2020 at 12:36 AM akkolwalkar notifications@github.com wrote:
[image: Screenshot from 2020-04-17 13-01-42] https://user-images.githubusercontent.com/17096395/79544160-3202dc80-80ac-11ea-8344-3f32183b5f50.png Followed the same steps as you mentioned, connected as admin still not working.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-615093393, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZOC3FRDPTLB4XOTFHLRNABI5ANCNFSM4LM6MCZA .
-- Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
Hi @horeaporutiu , thank you for sharing this code. I'm unable to register a voter., but able to QuerryAll. I'm receiving the following error upon submission:
On Fri, Apr 24, 2020 at 4:02 AM Abdullah-1991 notifications@github.com wrote:
Hi @horeaporutiu https://github.com/horeaporutiu , thank you for sharing this code. I'm unable to register a voter., but able to QuerryAll. I'm receiving the following error upon submission: [image: WhatsApp Image 2020-04-24 at 4 00 12 PM] https://user-images.githubusercontent.com/64204522/80205961-f84e4a80-8644-11ea-8c0c-a84fb46fc317.jpeg
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-618946156, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZMCREFOHOTQZCDRH5LROFWV7ANCNFSM4LM6MCZA .
Did u run init function? -- Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
Try doing git pull actually - we just merged new code to solve this problem
On Fri, Apr 24, 2020 at 7:27 AM Horea Porutiu horeaporutiu@gmail.com wrote:
On Fri, Apr 24, 2020 at 4:02 AM Abdullah-1991 notifications@github.com wrote:
Hi @horeaporutiu https://github.com/horeaporutiu , thank you for sharing this code. I'm unable to register a voter., but able to QuerryAll. I'm receiving the following error upon submission: [image: WhatsApp Image 2020-04-24 at 4 00 12 PM] https://user-images.githubusercontent.com/64204522/80205961-f84e4a80-8644-11ea-8c0c-a84fb46fc317.jpeg
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-618946156, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZMCREFOHOTQZCDRH5LROFWV7ANCNFSM4LM6MCZA .
Did u run init function?
Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
-- Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
It worked thanks.
@horeaporutiu Still not working did connect as you said it's still the same run enrolladmin.js
You do not need to enroll admin. U must export wallet and then use UI to register voter then login. Enroll admin is only for cloud version.
On Sun, Apr 26, 2020 at 7:30 AM Akshat Bahety notifications@github.com wrote:
@horeaporutiu https://github.com/horeaporutiu Still not working did connect as you said it's still the same run enrolladmin.js
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-619560948, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPSAZNWMRNRWJOOTIC7MZTRORARXANCNFSM4LM6MCZA .
-- Thanks in advance, Horea Porutiu
Univ. of California, San Diego 2017 B.S. Computer Science B.S. Management Science (310) 707-6864 horeaporutiu@gmail.com
any update @akshatbahety
closing due to inactivity
It didn't work
On Tue, Jun 9, 2020 at 3:58 AM Horea Porutiu notifications@github.com wrote:
closing due to inactivity
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-640920911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECN5S6QXTXD77RZED5YZK3RVVQ2NANCNFSM4LM6MCZA .
@akkolwalkar you are getting the affiliate error right? Did you do a git pull origin master to grab the latest code?
We did a pull request to fix the affiliate error.
Yes I did whatever you mentioned,issue not yet solved.
On Tue, Jun 9, 2020 at 8:38 PM Horea Porutiu notifications@github.com wrote:
@akkolwalkar https://github.com/akkolwalkar you are getting the affiliate error right? Did you do a git pull origin master to grab the latest code?
We did a pull request to fix the affiliate error.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-641359352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECN5SY3AZRVQGOJAZFXTJTRVZGAFANCNFSM4LM6MCZA .
still getting affiliate error?
Yes I have given up on this project now.
On 22:23, Tue, 9 Jun 2020 Horea Porutiu <notifications@github.com wrote:
still getting affiliate error?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-641439885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECN5S23EBXD5ODP2YXQQP3RVZSJBANCNFSM4LM6MCZA .
@akkolwalkar
Sorry to hear that.
I would try doing a fresh git clone and running through the steps again and when you instantiate the smart contract, make sure you run the init
function.
I would think that would get rid of your error.
I did that only.
On Tue, Jun 9, 2020 at 10:39 PM Horea Porutiu notifications@github.com wrote:
@akkolwalkar https://github.com/akkolwalkar
Sorry to hear that.
I would try doing a fresh git clone and running through the steps again and when you instantiate the smart contract, make sure you run the init function. I would think that would get rid of your error.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/evote/issues/25#issuecomment-641453267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECN5SYR2BHQNRSDZW7NCSTRVZUFDANCNFSM4LM6MCZA .
tried the local deployment for IBM Evote got the following error. Please advise , not able to comprehend what is going wrong. Thanks