Re: Error hyperledger explorer #fabric

Nick Frunza
 

Please verify each path in config.json, the error clearly says 
{ Error: ENOENT: no such file or directory, scandir '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore'

to make sure, do for each path similar to this $cd /home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore


On Thu, Feb 14, 2019 at 3:36 PM Fernando Gomez <fggrocha@...> wrote:
Hi,
This is de last 50 lines:

[2019-02-09 23:07:32.223] [DEBUG] Platform - ******* Initialization started for hyperledger fabric platform ******
[2019-02-09 23:07:32.224] [DEBUG] Platform - Setting admin organization enrolment files
[2019-02-09 23:07:32.224] [DEBUG] FabricUtils - Organization [Org1] enrolment files path defined as directory
[2019-02-09 23:07:32.224] [ERROR] Platform - { Error: ENOENT: no such file or directory, scandir '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore'
    at Object.fs.readdirSync (fs.js:904:18)
    at setOrgEnrolmentPath (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:340:26)
    at Object.setAdminEnrolmentPath (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:319:37)
    at Platform.buildClients (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:70:48)
    at Platform.initialize (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:50:16)
    at Explorer.initialize (/home/fernando/blockchain-explorer/app/Explorer.js:64:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore' }
[2019-02-09 23:07:32.227] [DEBUG] Platform - Creatinging client [client-1] >>
[2019-02-09 23:18:36.416] [DEBUG] Platform - ******* Initialization started for hyperledger fabric platform ******
[2019-02-09 23:18:36.416] [DEBUG] Platform - Setting admin organization enrolment files
[2019-02-09 23:18:36.417] [DEBUG] FabricUtils - Organization [Org1] enrolment files path defined as directory
[2019-02-09 23:18:36.417] [ERROR] Platform - { Error: ENOENT: no such file or directory, scandir '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore'
    at Object.fs.readdirSync (fs.js:904:18)
    at setOrgEnrolmentPath (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:340:26)
    at Object.setAdminEnrolmentPath (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:319:37)
    at Platform.buildClients (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:70:48)
    at Platform.initialize (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:50:16)
    at Explorer.initialize (/home/fernando/blockchain-explorer/app/Explorer.js:64:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore' }
[2019-02-09 23:18:36.420] [DEBUG] Platform - Creatinging client [client-1] >>
[2019-02-09 23:22:44.435] [DEBUG] Platform - ******* Initialization started for hyperledger fabric platform ******
[2019-02-09 23:22:44.435] [DEBUG] Platform - Setting admin organization enrolment files
[2019-02-09 23:22:44.436] [DEBUG] FabricUtils - Organization [Org1] enrolment files path defined as directory
[2019-02-09 23:22:44.436] [ERROR] Platform - { Error: ENOENT: no such file or directory, scandir '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore'
    at Object.fs.readdirSync (fs.js:904:18)
    at setOrgEnrolmentPath (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:340:26)
    at Object.setAdminEnrolmentPath (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:319:37)
    at Platform.buildClients (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:70:48)
    at Platform.initialize (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:50:16)
    at Explorer.initialize (/home/fernando/blockchain-explorer/app/Explorer.js:64:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/home/fernando/fabric-dev-servers/fabric-samples/crypto-config/peerOrganizations/org1.example.com/users/Admin@.../msp/keystore' }
[2019-02-09 23:22:44.438] [DEBUG] Platform - Creatinging client [client-1] >> 

Thank you so much

El mié., 13 feb. 2019 a las 21:34, Nick Frunza (<nfrunza@...>) escribió:
It is hard to figure out your problem either you have invalid config.json, or fabric issues, please email the last 50 lines from 

<explorer path>blockchain-explorer/logs/app/app.log file

thank you

Nik


On Wed, Feb 13, 2019 at 2:16 PM Fernando Gomez <fggrocha@...> wrote:
Hi,

Now i have this error:

postgres://hppoc:password@....0.1:5432/fabricexplorer
<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
TypeError: Cannot read property 'substring' of undefined
    at processTLS_URL (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:66:21)
    at cloneConfig (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:58:19)
    at Object.createDetachClient (/home/fernando/blockchain-explorer/app/platform/fabric/utils/FabricUtils.js:39:25)
    at Platform.buildClients (/home/fernando/blockchain-explorer/app/platform/fabric/Platform.js:105:38)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
(node:10711) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
Received kill signal, shutting down gracefully
Closed out connections

Regads

El dom., 10 feb. 2019 a las 23:05, Nick Frunza (<nfrunza@...>) escribió:
Please use a json validator to see the syntax error, copy and paste your config.json, you can use: https://jsonformatter.curiousconcept.com/


On Sat, Feb 9, 2019 at 8:41 AM Jean-Gaël Dominé <jgdomine@...> wrote:
Hi,

In the content you gave, a last bracket is missing. Thus your json file ends prematurely... :)

Hope it will fix your problem

JG



--
Nik Frunza



--
Nik Frunza



--
Nik Frunza

Join fabric@lists.hyperledger.org to automatically receive all group messages.