Parser error during archiving business network: const is reserved - blockchain

I'm unable to create an archive using basic network samples "Digital Property network model".
Context
I always get the following error
Expected Behavior
Network archived!
Actual Behavior
azureuser#hyperledger101:~/.nvm/v6.9.5/lib/node_modules/composer-cli$ composer archive create --archiveFile digitialPropertyNetwork.zip --sourceType module --sourceName digitalproperty-network
Creating Business Network Archive
Looking for package.json of Business Network Definition
Input directory: /home/azureuser/.nvm/v6.9.5/lib/node_modules/digitalproperty-network
/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/yargs/yargs.js:1079
else throw err
^
SyntaxError: The keyword 'const' is reserved (17:0)
at Parser.pp$4.raise (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2488:13)
at Parser.pp$3.parseIdent (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2436:12)
at Parser.pp$3.parseExprAtom (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1946:19)
at Parser.pp$3.parseExprSubscripts (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1872:19)
at Parser.pp$3.parseMaybeUnary (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1849:17)
at Parser.pp$3.parseExprOps (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1791:19)
at Parser.pp$3.parseMaybeConditional (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1774:19)
at Parser.pp$3.parseMaybeAssign (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1750:19)
at Parser.pp$3.parseExpression (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1722:19)
at Parser.pp$1.parseStatement (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:777:45)
Environment
Version used: composer-cli v0.9.0
Environment name and version (e.g. Chrome 39, node.js 5.4):
node --version
v6.9.5
Operating System and version (desktop or mobile): Ubuntu 14.04

Retry the command with digitialPropertyNetwork.bna. I mean change the extension in the composer archive create... command.

Related

composer archive create Error: Expected "#", "." or "\"" but "-" found v0.75

I am using composer version 0.75v. When I try to create a archive with the following command:
composer archive create --sourceType dir --sourceName . -a ./dist/my-network.bna
I get this back:
/Users/fabianhinsenkamp/Documents/businessNetwork
/usr/local/lib/node_modules/composer-cli/node_modules/yargs/yargs.js:1079
else throw err
^
ParseException: Expected "#", "." or "\"" but "-" found. Line 14 column 20
Do you know what is the problem? I tried to change the network files but it doesn't seem to be the problem.
would have to firstly check that your supported node/npm/docker versions matched these ->
Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
Docker Engine: Version 17.03 or higher
Docker-Compose: Version 1.8 or higher
Node: 6.x (note version 7 is not supported)
npm: 3.10.x
Note: we are (ie at time of writing) on Hyperledger Composer v0.9.2 - suggest to get this level of Hyperledger Composer (as there have been quite a few changes, since 0.7.5, including syntax in model transactions for example). You can try out your business network definition (ie modeled assets, participants, transactions etc in the online playground https://composer-playground.mybluemix.net/ to verify that everything is OK.

dpdk-pdump "no driver found for net_pcap_rx_0"

Ubuntu 16, DPDK 16
I have a couple of DPDK-based applications sending packets between two machines and want to capture them with dpdk-pdump. I'm running it with sudo ./build/app/pdump/dpdk-pdump -c 0x00f -- --pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap', and I see this output and a crash:
EAL: no driver found for eth_pcap_rx_0
EAL: Driver, cannot attach the device
EAL: Error - exiting with code: 1
Cause: vdev creation failed:create_mp_ring_vdev:736
My DPDK was compiled like this: hostname:~/dpdk-stable-16.07.1/x86_64-native-linuxapp-gcc# CONFIG_RTE_LIBRTE_PMD_PCAP=y make (also did export CONFIG_RTE_LIBRTE_PMD_PCAP=y before) so that it builds with libpcap support, as the documentation said to do. And my system has libpcap installed. The make script output shows == Build lib/librte_pdump. Looking around online, I've only found one person with a similar issue, and the suggested fix was what I tried. Is there something else I have to do?
I tried installing the DPDK Ubuntu package's version of the tool and using the dpdk-pdump command, same result.
Unfortunately, setting CONFIG_RTE_LIBRTE_PMD_PCAP=y in command line does not work, so the compiled dpdk-pdump have no pcap support.
In config/common_base set CONFIG_RTE_LIBRTE_PMD_PCAP=y, remove your build directory and recompile the DPDK.
Make sure the .config file you your build directory has CONFIG_RTE_LIBRTE_PMD_PCAP=y
Also if you get following error:
Error: missing pcap.h
rte_eth_pcap.c:19:18: fatal error: pcap.h: No such file or directory
while compiling with option CONFIG_RTE_LIBRTE_PMD_PCAP=y
Install libpcap-dev* package. Eg:
yum install libpcap-devel

php pdo driver library none found

I'm trying to deploy 'limesurvey' application into the PCF & I get the following error.
php pdo driver library none found
Below are the pre-requisites that should be met for installation.
• mbstring (Multibyte String Functions) extension library
•PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL (pdo_sqlsrv for Windows and pdo_dblib for Linux)
•Also we assume in general that all PHP default libraries are enabled (like hash, session, etc.).
Is there any workaround for this ? Because, few sites says to modify the php.ini file, which I don't have access to. If the suggestion is to have my own buildpack, is there any link that I can refer to do that please.
Appreciate any help :)
Assuming the limesurvey application is using php-buildpack, you can tell the buildpack to load the mbstring and pdo_* modules by creating an options.json file in the .bp-config subfolder, if it doesn't already exist, adding a PHP_EXTENSIONS key, and including the name or names of the modules/extensions that are required in the value.
Something like this:
$ cat .bp-options/options.json
{
"PHP_VERSION": "{PHP_56_LATEST}",
"PHP_MODULES": ["cli"],
"PHP_EXTENSIONS": ["mysqli", "pdo_mysql", "mbstring"],
"ADDITIONAL_PREPROCESS_CMDS": [""]
}
Even though the php-buildpack calls mbstring and pdo_mysql 'modules' you want to list them in the PHP_EXTENSIONS key, not the PHP_MODULES key.

Cannot install virtualbox on ubuntu 15.10

I operate according to https://gist.github.com/PartTimeLegend/5328700, But
I got the following error:
Loading new virtualbox-5.0.14 DKMS files...
First Installation: checking all kernels...
Building only for 4.2.0-42-generic
Building initial module for 4.2.0-42-generic
Done.
vboxdrv:
Running module version sanity check.
Error! Module version 5.0.14_Ubuntu for vboxdrv.ko
is not newer than what is already found in kernel 4.2.0-42-generic (5.1.2).
You may override by specifying --force.
vboxnetadp.ko:
Running module version sanity check.
Error! Module version 5.0.14_Ubuntu for vboxnetadp.ko
is not newer than what is already found in kernel 4.2.0-42-generic (5.1.2).
You may override by specifying --force.
vboxnetflt.ko:
Running module version sanity check.
Error! Module version 5.0.14_Ubuntu for vboxnetflt.ko
is not newer than what is already found in kernel 4.2.0-42-generic (5.1.2).
You may override by specifying --force.
vboxpci.ko:
Running module version sanity check.
Error! Module version 5.0.14_Ubuntu for vboxpci.ko
is not newer than what is already found in kernel 4.2.0-42-generic (5.1.2).
You may override by specifying --force.
depmod.....
DKMS: install completed.
vboxweb.service is a disabled or a static unit, not starting it.
Job for virtualbox.service failed because the control process exited with error code. See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
dmesg found error:
[23970.809479] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
[24080.976410] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
[28028.539569] Request for unknown module key 'virtualbox: b2b55b754f3bb6a535be36ff514e9e174b01bfda' err -11
My virtualbox install log file:
https://drive.google.com/open?id=0B9Z0DTPHWdIVVXk5VWQxcE5XQ2c
I googled a lot and tried alot but no solution till now. Would be nice if someone can help me here :)
Many thanks!
I've solved the same problem on Ubuntu 16.04 by disabling UEFI Secure Boot on my BIOS Setup menu. Then I just fully removed virtuabox then I just installed and n
Yes, n3uron3 is right, I added some more details to the convenience of people's needs. My PC brand is Acer, and must set a password in BOIS to disable UEFI Secure Boot, otherwise disable the UEFI Secure Boot option is gray(unavailability state). After the complete uninstall virtualbox and then re-install, you can use. Hope to help to everyone.

rabbitmq-plugins.bat enable rabbitmq_management

I install Erl7.3 and rabbitmq-server 3.6.2. I using Win7 32bit. After installing when I run 'rabbitmq-server' command it gives:
ERROR: node with name "rabbit" already running on "admin-PC"
When I run 'net stop RabbitMQ && net start RabbitMQ' it stopped RabbitMQ service and restarted successfully.
After that When I run "rabbitmq-plugins enable rabbitmq_management", it gives following errors and nothing is shown at http://localhost:15672:
Plugin configuration unchanged.
Applying plugin configuration to rabbit#admin-PC... failed.
Error: {undef,[{crypto,module_info,[attributes],[]},
{rabbit_misc,module_attributes,1,
[{file,"src/rabbit_misc.erl"},{line,817}]},
{rabbit_misc,'-all_module_attributes/1-fun-0-',3,
[{file,"src/rabbit_misc.erl"},{line,837}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
{rabbit_boot_steps,find_steps,1,
[{file,"src/rabbit_boot_steps.erl"},
{line,40}]},
{rabbit_boot_steps,run_boot_steps,1,
[{file,"src/rabbit_boot_steps.erl"},
{line,26}]},
{rabbit,start_apps,1,[{file,"src/rabbit.erl"},{line,451}]},
{rabbit_plugins,ensure,1,
[{file,"src/rabbit_plugins.erl"},{line,52}]}]}
For your information, I set environmental variables as:
'Variable name: ERLANG_HOME', 'Variable value: C:\Program Files\erl7.3';
'Variable name: RABBITMQ_SERVER', 'Variable value: C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.2'
and system path "%ERLANG_HOME%;;%RABBITMQ_SERVER%\sbin"
How to resolve this errors?
rabbitmq management plugin needs the cryptopakage to work.
see:
Error: {undef,[{crypto,module_info,[attributes],[]},
{rabbit_misc,module_attributes,1,
Try to use the Erlang 18.3 version.
EDIT
After installing when I run 'rabbitmq-server' command it gives:
ERROR: node with name "rabbit" already running on "admin-PC"
This is normal since rabbitmq-server starts the server, but you have rabbitmq installed and running as windows service.
And you should use the 64 bit version