Home Blog Page 261

Running Blockchain Applications in Hyperledger Explorer

Hyperledger Explorer is a powerful utility that allows users to create user-friendly web-based applications. It is a blockchain dashboard and provides the ability to view, invoke, deploy, and query raw blockchain data and network information, including block details, chain codes, and transactions stored in the ledger.

For those who are not familiar with Hyperledger project Intro to Hyperledger Family and Hyperledger Blockchain Ecosystem and Hyperledger Design Philosophy and Framework Architecture articles are strongly recommended.

Hyperledger Explorer is a highly maintainable and open source browser that can be configured and built natively on macOS and Ubuntu. At the time of writing, Hyperledger Explorer has not yet gone live. The latest release, v0.3.8, supports Fabric v1.3.

It is common to encounter errors here and there, especially around issues related to versions and/or setting up environments. To save time while debugging, I have included notes, along with recommended fixes, for some of errors you might run into while walking through this recipe.

In our previous tutorials, we learned how to i- Work with Hyperledger Explorer and its Development Environment ii- Install Hyperledger Explorer and its PostgreSQL Database, iii- Configure Explorer to connect to a blockchain network like Fabric and iv- Build a Hyperledger Explorer application. This recipe as a next step will show you how to run the Hyperledger Explorer application.

Hyperledger Explorer Configuration

Before running Hyperledger Explorer, we should examine the configuration of Explorer, which is defined in the explorerconfig.json file.

Update the following information according to the individual needs of the project:

  • Where the synchronization will be running, which is either explorer (local) or from a different location standalone (host)
  • The type of blockchain network (Fabric)
  • How often the blockchain data will synchronize with explorer

Run Hyperledger Explorer Application

Execute the following steps to run your Hyperledger application:

1. Use the vi editor or your editor of choice to make the modifications as needed:

	cd blockchain-explorer/app

	vi explorerconfig.json

# Here we will run local with Explorer, update the "sync" property as needed to # as below:

"sync": {

"type": "local",

"platform": "fabric",

"blocksSyncTime": "3"

}

}

2. Now, start Explorer from another Terminal. When you are done using Explorer, you should stop Explorer and the node server:

	cd blockchain-explorer/

	sudo ./start.sh

# To stop Explorer, use this command:

	sudo ./stop.sh

3. You can check for error statuses in the log file: [logs/console/console-yyyy-mm-dd.log]. If everything goes well, you will see the following:

postgres://hppoc:password@127.0.0.1:5432/fabricexplorer

(node:14817) DeprecationWarning: grpc.load: Use the @grpc/proto-

loader module with

grpc.loadPackageDefinition instead

Please open web browser to access: http://localhost:8080/

pid is 14817

postgres://hppoc:password@127.0.0.1:5432/fabricexplorer

...

4. The console log might show an Explorer error, such as the following:

postgres://hppoc:password@127.0.0.1:5432/fabricexplorer <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>

{ Error: The gRPC binary module was not installed. This may be fixed by running "npm rebuild"

Original error: Cannot find module '/home/ubuntu/blockchain-explorer/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node'

at Object.<anonymous> (/home/ubuntu/blockchain-explorer/node_modules/grpc/src/grpc_extension.js:43:17)

at Module._compile (module.js:653:30)

at Object.Module._extensions..js (module.js:664:10)

at Module.load (module.js:566:32)

at tryModuleLoad (module.js:506:12)

at Function.Module._load (module.js:498:3)

at Module.require (module.js:597:17)

at require (internal/module.js:11:18)

at Object.<anonymous> (/home/ubuntu/blockchain-explorer/node_modules/grpc/src /client_interceptors.js:145:12)

at Module._compile (module.js:653:30) code: 'MODULE_NOT_FOUND' } Received kill signal, shutting down gracefullyClosed out connections

5. This may be fixed by running npm rebuild and then starting Explorer again:

	cd ~/blockchain-explorer/

	npm rebuild

> grpc@1.14.2 install /home/ubuntu/blockchain-explorer/node_modules/grpc

> node-pre-gyp install --fallback-to-build --library=static_library

...

Note: There is an application log, [logs/app/app.log], that provides more information than the console log if there are any errors when running the Explorer application.

6. On the other hand, Explorer start.sh runs in the background. To observe the progression, you could use the tail command for the app.log file:

	tail -f logs/app/app.log

7. We can now launch Explorer from a browser: http://localhost:8080.

8. If you are running on AWS EC2, you will need to carry out a further two steps. Replace the localhost with your instance’s public IP address and add or modify a security group associate with the EC2 instance to allow inbound traffic from TCP port 8080. If everything is good, you should see the explorer DASHBOARD default page. From here, you can navigate to the application to check and monitor various blockchain data:

You have now successfully built the Hyperledger Explorer application, integrated it with the Hyperledger Fabric framework, and utilized Explorer to visualize the blockchain network data on the browser.

About Authors

This article is written by Matt Zand (Founder of High School Technology Services) in collaboration with Brian Wu who is a senior blockchain instructor at Coding Bootcamps.

Oracle Linux 8 Released

Oracle has announced the general availability of Oracle Linux 8. With the release, the core operating environment and associated packages for a typical Oracle Linux 8 server are distributed through a combination of BaseOS and Applications Streams. BaseOS gives you a running user space for the operating environment. Application Streams provides a range of applications that were previously distributed in Software Collections, as well as other products and programs, that can run within the user space.

Source: Oracle

First Preview Release Of Fedora CoreOS

First Preview Release Of Fedora CoreOS

Fedora community has announced the preview release of Fedora CoreOS. The initial preview release of Fedora CoreOS runs on bare metal, QEMU, VMware, and AWS, on x86_64 only. It supports provisioning via Ignition spec 3.0.0 and the Fedora CoreOS Config Transpiler, automatic updates with Zincati and rpm-ostree, and running containers with Podman and Moby. Benjamin Gilbert of the Fedora team said that Fedora CoreOS is designed specifically for running containerized workloads without regular maintenance, automatically updating itself with the latest OS improvements, bug fixes, and security updates.

Source: Fedora Mailing List

VMware To Acquire AI, ML Accelerator Bitfusion

VMware is acquiring Austin, Texas-based Bitfusion in a move to boost its ability to support artificial intelligence (AI) and machine learning (ML) workloads in its core vSphere virtualization platform. Bitfusion last year joined VMware’s Technology Alliance Partner program. It later linked its FlexDirect platform with VMware and Mellanox for attaching GPUs to any virtual machine (VM) and be part of a common infrastructure resource pool.

Source: SDX Central

SAP Contributes UI5 Web Component to Open Source community

SAP has deepened its commitment to the developer and open source community with the contribution of UI5 Web Components, a comprehensive library for Web developers. The new UI5 Web Components from SAP allow developers to take advantage of the features offered by OpenUI5 while using other frameworks such as React, Angular or Vue.js. This library enables web developers to create enterprise-grade Web applications more easily. 

GitLab Survey Reveals Disconnect Between Developer And Security Teams

In a survey conducted by GitLab, software professionals recognize the need for security to be baked into the development lifecycle, but the survey showed long-standing friction between security and development teams remain. While 69% of developers say they’re expected to write secure code, nearly half of security pros surveyed (49%) said they struggle to get developers to make remediation of vulnerabilities a priority. And 68% of security professionals feel fewer than half of developers are able to spot security vulnerabilities later in the lifecycle. Roughly half of the security professionals said bugs were most often found by them after code is merged in a test environment.

Source: Gitlab, DevOps.com

Linux Foundation Energy member TenneT “open sources” their open source strategy

This post was written by Loek Bakker, Corporate Information Management Office Head at TenneT

TenneT is the first European cross-border electricity transmission system operator (TSO), with activities in the Netherlands and in Germany, providing uninterrupted electricity to over 41 million people. The security of our supply is among the best in Europe, with 99.99% grid availability. With the energy transition, TenneT is contributing to a future in which wind and solar energy are the most important primary sources to produce electricity.

As an LF Energy member, we recognize that open source is the commodity foundation upon which the entire IT industry rests. A recent Synopsis study indicated that 100% of the proprietary software our vendors are using in the energy and utility space have open source inside [1]. Yet, as an industry, we do not manage our software as a community, and we have relative ignorance about what exists within our “black boxes”. The open source model refers to the software development practice that encourages transparent governance and open collaboration to create software for which the original source code (design, code, ingredients) is made freely available and may be redistributed and modified. For TenneT, like many other utilities, open source is essential to our strategic success.

Read Blog Post »

New EvilGnome Backdoor Spies on Linux Users, Steals Their Files

A new Linux malware masquerading as a Gnome shell extension and designed to spy on unsuspecting Linux desktop users was discovered by Intezer Labs’ researchers in early July. “EvilGnome’s functionalities include desktop screenshots, file stealing, allowing capturing audio recording from the user’s microphone and the ability to download and execute further modules,” Intezer researchers found.
Source: Bleeping Computer

IBM announces three new open source projects

IBM has announced three new open source projects for developers to help them build cloud-native apps faster for Kubernetes. All three projects — Kabanero, Appsody, and Codewind — are hosted on GitHub. Kabanero brings together open source projects Knative, Istio, and Tekton, with new open projects Codewind, Appsody, and Razee into an end-to-end solution for developers to architect, build, deploy, and manage the lifecycle of Kubernetes-based applications.

Source: IBM

Pivotal brings ‘cf push’ experience to Kubernetes

Pivotal has introduced the alpha version of PAS on Kubernetes, as well as new products based on PAS features that improve the developer and operator experience when using Kubernetes. The alpha version of PAS on Kubernetes brings the popular “cf push” experience to Kubernetes, making it easier for developers to focus on code, and lets the platform stitch together the required components for software deployment, networking, monitoring, and logging.

Source: Pivotal Blog