ENOENT Error While Setting Up Hyperledger Explorer V1.1.2 - hyperledger

Did anyone integrated HL Explorer V1.1.2 with HL Fabric 2.1. While I tried to setup the Explorer V1.1.2 with Fabric 2.1 it is giving the ENOENT error for some of the packages which I believe it should not be if we use the compatible node and npm versions. Below is the npm and node version we are using
/vagrant/blockchain-explorer$ node -v
v12.16.2
/vagrant/blockchain-explorer$ npm -v
6.14.4
We were following the Explorer setup based on the Readme doc from the below URL. Done the DB setup successfully but while running the ./make.sh install,it is providing ENOENT errors which we assume it shouldn't with the above compatible versions we are using. Do we need to check any other prerequisites other than the above. Please advise
https://github.com/hyperledger/blockchain-explorer

Code error:"ENOENT" says that there was no entry file/directory.
While configuring config.json with your network configuration, you might be missing or mis-configured some parameters.Make sure you have all key,certs and pem's routed correctly(path) in config.json.

Related

Globally installed Phalcon PHP devtools do not work on Windows 10, Why?

I installed Phalcon PHP as described in https://docs.phalcon.io/3.4/en/webserver-wamp.
In this case the URL reads 3.4 because it applies alike for versions 4 and 5.
The WAMP server version is 3.2.6 configured with PHP 8.0.13
Everything was fine so far, so I continued installing the developer tools using composer as described in https://docs.phalcon.io/5.0/en/devtools.
Composer was installed globally and so were the developer tools, but when I type "phalcon" in the command window, the following error is shown:
C:\>phalcon
Fatal error: Uncaught Error: Class "Phalcon\Script" not found in C:\Users\Joachim\AppData\Roaming\Composer\vendor\phalcon\devtools\phalcon.php:38
Stack trace:
#0 {main}
thrown in C:\Users\Joachim\AppData\Roaming\Composer\vendor\phalcon\devtools\phalcon.php on line 38
C:\>
PSR and Phalcon extensions were successfully installed and I can see them in the WAMP Localhost page.
The Path environment variable contains the path to phalcon, composer, wamp, etc, nothing is missing as far as I can see.
Have anyone dealt with this error?
What could be the problem?
I'm a bit late answering this, but in case anyone else stumbles across it via Google the problem is that some namespaces have been altered between Phalcon4 and Phalcon5. I believe Phalcon\Config is one of those classes.
Until the devtools have been updated for Phalcon5, you'll either need to build the scaffolding manually, or copy an old Phalcon 3 or 4 project and update the namespaces.
The perils of using alpha/beta releases, unfortunately.
you didn't mention which phalcon version but since you are using php 8 the only version supporting php 8 is phalcon 5
your issue is most likely in your php.ini for the cli since wamp uses different files for apache and cli.
to fix the issue first remove the devtools package you installed globally then edit the cli php.ini in [wampDir]\bin\php\php8.0.13\php.ini and include psr and phalcon and install the devtools again using composer
you can also download the phar file here and test it in the cli
php phalcon.phar

rebar3 install plugins failed

Env: rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04
When I try to install the rebar3 pulgins (such as rebar3_hex), it reports:
===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Plugin rebar3_hex not available. It will not be used.
There is only one line in my ~/.config/rebar3/rebar.config:
{plugins, [rebar3_hex]}.
as recommended in https://www.rebar3.org/docs/using-available-plugins#hex-package-management and https://github.com/tsloughter/rebar3_hex.
I can't get more useful information from google, rebar3 doc and existed question here.
So, I open a new question to ask Why and How to resolve it.
ps: I use proxychains for rebar3, it reports |DNS-response| repo.hex.pm is 151.101.54.2
inet_gethost[10708]: WARNING:Malformed reply (header) from worker process 10709.
In my case, it's fixed when set proxy environmental variable(http_proxy) instead of use proxychains.

Can't find (nor make) OAuth php class on Dreamhost VPS

I am trying to configure my Dreamhost VPS (running Debian and PHP5.3) to enable a PHP app to use an OAuth service provided by Autodesk, but the apps keeps failing because it can't find the OAuth class.
I installed the liboauth-php package using aptitude, and restarted the Apache server, but I get a "Fatal error: Class 'OAuth' not found" error.
I researched other pages here on stackoverflow that refer to installing OAuth, PECL and Pear and tried various suggestions I found in other threads, but they have each run into other problems.
I expect that I need to add the following declaration to the php.ini file so that the PHP parser can find the OAuth class, and then put the oauth.so file in the proper directory:
[PHP_OAUTH]
extension=oauth.so
Unfortunately I can't find a oauth.so shared object on the system.
So I thought maybe I could build one using PECL, since the aptitude install of liboauth-php package didn't fix this problem. Unfortunately PECL wasn't installed either. I tried "pear pickle" to install the PECL package but this too failed with this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/imagick.so' - /imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
Unable to open package2.xml
When that failed, I tried upgrading pear but it also fails with the same error.
PHP Warning: PHP Startup: Unable to load dynamic library '/imagick.so' - /imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
Unable to open package2.xml
I tried using aptitude to install ndn-php53-imagick, php5-imagick and ndn-phpimagick but the last one failed:
Unpacking ndn-phpimagick (from .../ndn-phpimagick_3.0.1-0_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/ndn-phpimagick_3.0.1-0_amd64.deb (--unpack):
trying to overwrite '/etc/php53/conf.d/imagick.ini', which is also in package ndn-php53-imagick 3.0.1-6
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/ndn-phpimagick_3.0.1-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.
How can I get an oauth.so file or otherwise get the OAuth class recognized by the PHP parser?
The Debian package (as you noticed) does not include oauth.so (I'm not sure why, but it is Debian so could be anything), and I have been unable to find a package for it.
http://bquery.com/blog/post/php_oauth_extension_-_debian_squeeze_installation/
So far thats the only answer I have found. Note that the libpcre-dev might be libpcre3-dev (depends on Debian version), and you will need to install php-pear (php5-pear) to get the pecl command, and php5-dev for pecl to actually work (package dependency hell for just one shared lib).
imagick (ImageMagick) is (should be) unrelated to pear, oauth, pickle, and everything else. Its just an image processing package (resize/rotate/edit images).
After its all installed be sure the extension=oauth.so line is in your php.ini for the proper php (cli vs apache vs ...).

Ejabbered installation issue for Windows

I tried to install ejabberd 2.1.11 for windows on my Windows system, but at the final stage of installation it given post installation error. Couple of some of the last lines in the intallation logs says:
***Executing final installation script
Error executing post installation script
C:\Program Files (x86)\ejabberd-2.1.11\bin\postinstall.cmd
./ejabberdctl: erl.exe: can't execute: (14001) Error 14001
Creating Uninstalle***r
Though the shortcuts are created on the system but trying to start the server gives following error
./ejabberdctl: erl.exe: can't execute: (14001) Error 14001
The VC++ 2008 is already installed on the system. While searching I found the following post on stackoverflow:
How to install ejabberd community version on Windows XP?
But this too did not help. Has anyone else encountered the same scenario? Your suggestion would be greatly appreciated.

phpDocumentor 2 installer fails to install symfony/Console with composer

I've downloaded (cloned) the github version of phpdocumentor 2 and followed the installation instructions found on the phpdoc website
At the composer installation step 3 (php composer.phar install) I receive the following error messages
[RuntimeException]
Failed to clone http://github.com/symfony/Console via git, https and http protocols, aborting.
- git://github.com/symfony/Console
fatal: reference is not a tree: 1edd7b739561e87bde81ff1c2ce08bd89e92277e
- https://github.com/symfony/Console
fatal: reference is not a tree: 1edd7b739561e87bde81ff1c2ce08bd89e92277e
- http://github.com/symfony/Console
fatal: reference is not a tree: 1edd7b739561e87bde81ff1c2ce08bd89e92277e
It seems that the symfony git tree has changed, or..? Do you have any idea how to resolve it?
This is probably an error int he update of the Console subtree split. Please use php composer.phar update instead of install. This should resolve the situation.

Resources