Issue building synapse 2.1.0-wso2v6 - java-cup:pom:0.0 - wso2

I'm running into an issue building synapse 2.1.0-wso2v6 from the platform branch 4.0.0:
C:\wso2\src\wso2carbon_platform_branch_400\dependencies\synapse\2.1.0-wso2v6\modules\commons>mvn clean install -Dmaven.test.skip=true
The error log:
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Synapse - Commons classes 2.1.0-wso2v6
[INFO] ------------------------------------------------------------------------
Downloading: http://dist.wso2.org/maven2/java-cup/java-cup/0.0/java-cup-0.0.pom
Downloading: https://server.oosnmp.net/dist/release/java-cup/java-cup/0.0/java-cup-0.0.pom
Downloading: http://repo.maven.apache.org/maven2/java-cup/java-cup/0.0/java-cup-0.0.pom
Downloading: http://dist.wso2.org/maven2/JLex/JLex/0.0/JLex-0.0.pom
Downloading: https://server.oosnmp.net/dist/release/JLex/JLex/0.0/JLex-0.0.pom
Downloading: http://repo.maven.apache.org/maven2/JLex/JLex/0.0/JLex-0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.361s
[INFO] Finished at: Thu Jul 04 15:55:04 BST 2013
[INFO] Final Memory: 8M/490M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project synapse-commons: Could not resolve dependencies for project org.apache.synapse:synapse-commons:bundle:2.1.0-wso2v6: ...
...
Could not transfer artifact java-cup:java-cup:pom:0.0 from/to snmp4j-repo (https://server.oosnmp.net/dist/release/): hostname in certificate didn't match: <server.oosnmp.net> != <oosnmp.net> OR <oosnmp.net> -> [Help 1]
Basically, it seems that java-cup pom can't be found.
Here are the steps I followed leading up to the failure:
wso2\src\wso2carbon_orbit_branch_400>mvn clean install -Dmaven.test.skip=true
wso2\src\wso2carbon_orbit_branch_400\patch-releases\4.0.6>mvn clean install -Dmaven.test.skip=true
wso2\src\wso2carbon_kernel_branch_400>mvn clean install -Dmaven.test.skip=true
wso2\src\wso2carbon_kernel_branch_400\patch-releases\4.0.6>mvn clean install -Dmaven.test.skip=true
wso2\src\wso2carbon_platform_branch_400>mvn clean install -Dmaven.test.skip=true
>> java-cup maven failure

Try removing following repository from the synapse root pom (C:\wso2\src\wso2carbon_platform_branch_400\dependencies\synapse\2.1.0-wso2v6\pom.xml).
<repository>
<id>snmp4j-repo</id>
<name>SNMP4J Repository</name>
<url>https://server.oosnmp.net/dist/release/</url>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>

Related

Aws deploy springboot project with error 502

I am deploying the web app in aws elastic bean .The code run fine in localhost but fail with error 502.
Here are my log in eb with warn:
2022/11/12 18:05:10.175659 [INFO] Cleaned ebextensions subdirectories from app staging directory.
2022/11/12 18:05:10.175664 [INFO] Executing instruction: RunAppDeployPreDeployHooks
2022/11/12 18:05:10.175694 [INFO] Running command /bin/sh -c uname -m
2022/11/12 18:05:10.177374 [INFO] x86_64
2022/11/12 18:05:10.177397 [INFO] Executing platform hooks in .platform/hooks/predeploy/
2022/11/12 18:05:10.177417 [INFO] The dir .platform/hooks/predeploy/ does not exist
2022/11/12 18:05:10.177421 [INFO] Finished running scripts in /var/app/staging/.platform/hooks/predeploy
2022/11/12 18:05:10.177428 [INFO] Executing instruction: stop X-Ray
2022/11/12 18:05:10.177433 [INFO] stop X-Ray ...
2022/11/12 18:05:10.177442 [INFO] Running command /bin/sh -c systemctl show -p PartOf xray.service
2022/11/12 18:05:10.315088 [WARN] stopProcess Warning: process xray is not registered
2022/11/12 18:05:10.315115 [INFO] Running command /bin/sh -c systemctl stop xray.service
2022/11/12 18:05:10.323680 [INFO] Executing instruction: stop proxy
2022/11/12 18:05:10.323699 [INFO] Running command /bin/sh -c systemctl show -p PartOf httpd.service
2022/11/12 18:05:10.327933 [WARN] deregisterProcess Warning: process httpd is not registered, skipping...
2022/11/12 18:05:10.327948 [INFO] Running command /bin/sh -c systemctl show -p PartOf nginx.service
2022/11/12 18:05:10.334136 [WARN] deregisterProcess Warning: process nginx is not registered, skipping...
2022/11/12 18:05:10.334149 [INFO] Executing instruction: FlipApplication
2022/11/12 18:05:10.334154 [INFO] Fetching environment variables...
2022/11/12 18:05:10.334172 [INFO] Running command /bin/sh -c uname -m
2022/11/12 18:05:10.335672 [INFO] x86_64
2022/11/12 18:05:10.335768 [INFO] Purge old process...
2022/11/12 18:05:10.335786 [INFO] Removing /var/app/current/ if it exists
2022/11/12 18:05:10.335796 [INFO] Renaming /var/app/staging/ to /var/app/current/
2022/11/12 18:05:10.335811 [INFO] Register application processes...
2022/11/12 18:05:10.335818 [INFO] Registering the proc: web
Here are the log with error:
2022/11/12 18:18:19 [error] 3971#3971: *1 connect() failed (111: Connection refused) while connecting to upstream,

AWS beanstalk fails installing pip requisites when downloading tensorflow==2.4.0

I'm trying to deploy a flask app that predicts whether a lung x-ray picture is COVID-19 positive using a Tensorflow CNN. It is running on python 3.7
This is my requirements.txt
tensorflow==2.4.0
Flask==1.1.2
Keras==2.4.3
numpy==1.19.5
Pillow==8.3.1
After deployment it, the environment's health status is labelled severe with a '502 Bad gateway' error.
These are the errors in the eb-engine.log
2021/08/23 10:47:40.676374 [INFO] Installing dependencies with requirements.txt by using Pip
2021/08/23 10:47:40.676387 [INFO] Running command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt
2021/08/23 10:47:48.296114 [INFO] Collecting tensorflow==2.4.0
Downloading tensorflow-2.4.0-cp38-cp38-manylinux2010_x86_64.whl (394.8 MB)
2021/08/23 10:47:48.300932 [ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt failed with error exit status 2. Stderr:ERROR: Exception:
Traceback (most recent call last):
File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
status = self.run(options, args)
File "... repeats itself until here:
File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/pip/_vendor/msgpack/fallback.py", line 896, in _pack
return self._buffer.write(obj)
MemoryError
2021/08/23 10:47:48.300957 [INFO] Executing cleanup logic
2021/08/23 10:47:48.309000 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install application dependencies. The deployment failed.","timestamp":1629715668,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1629715668,"severity":"ERROR"}]}]}
2021/08/23 10:47:48.312983 [INFO] Platform Engine finished execution on command: app-deploy
2021/08/23 12:34:34.689865 [INFO] Starting...
2021/08/23 12:34:34.689926 [INFO] Starting EBPlatform-PlatformEngine
2021/08/23 12:34:34.689965 [INFO] reading event message file
2021/08/23 12:34:34.690627 [INFO] no eb envtier info file found, skip loading env tier info.
2021/08/23 12:34:34.690716 [INFO] Engine received EB command cfn-hup-exec
why is AWS-Beanstalk failing to install Tensorflow?
I changed the environment EC2 capacity from t2.small to c5.xlarge and the problem was solved.
Your application needs more memory space.

Zeppelin build failure

I am trying to install zeppelin for spark1.0.0 and hadoop1.0.3.
Possible duplicate: Build error from Installing Apache Zeppelin
Well, the above thread didn't help much. I have the exact same output as the above thread: the web application fails to compile.
The command I ran was 'mvn install -DskipTests -Dspark.version=1.0.0 -Dhadoop.version=1.0.3'
I have maven 3.0.4 / java 1.8 / npm 1.1.4
[INFO] Zeppelin .......................................... SUCCESS [2.880s]
[INFO] Zeppelin: Interpreter ............................. SUCCESS [6.780s]
[INFO] Zeppelin: Zengine ................................. SUCCESS [3.394s]
[INFO] Zeppelin: Spark ................................... SUCCESS [31.284s]
[INFO] Zeppelin: Markdown interpreter .................... SUCCESS [1.936s]
[INFO] Zeppelin: Angular interpreter ..................... SUCCESS [1.916s]
[INFO] Zeppelin: Shell interpreter ....................... SUCCESS [1.905s]
[INFO] Zeppelin: Hive interpreter ........................ SUCCESS [2.226s]
[INFO] Zeppelin: Tajo interpreter ........................ SUCCESS [2.061s]
[INFO] Zeppelin: Flink ................................... SUCCESS [3.358s]
[INFO] Zeppelin: web Application ......................... FAILURE [0.215s]
[INFO] Zeppelin: Server .................................. SKIPPED
[INFO] Zeppelin: Packaging distribution .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58.228s
[INFO] Finished at: Tue Jun 16 11:50:03 KST 2015
[INFO] Final Memory: 47M/485M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm (install node and npm) on project zeppelin-web: The plugin com.github.eirslett:frontend-maven-plugin:0.0.23 requires Maven version 3.1.0 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-web
Yes, I did already switched from git:// to https:// and tried again and it did not work.
As the error message point out :
[ERROR] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm
(install node and npm) on project zeppelin-web:
The plugin com.github.eirslett:frontend-maven-plugin:0.0.23
requires Maven version 3.1.0 -> [Help 1]
You'll need to update your maven version from 3.0.4 to at least 3.1.0.
But you'll encounter another error : zeppelin-web: Failed to run task: 'npm install --color=false' failed
To correct that one, you'll need to run your mvn command as a sudoer or an administrator:
sudo mvn install -DskipTests -Dspark.version=1.0.0 -Dhadoop.version=1.0.3
I added the following elemets to .bowerrc file under ~/incubator-zeppelin-master/zeppelin-web.
"proxy" : "http://:",
"https-proxy" : "http://:"
After that, I tried to build again and it successfully completed without using sudo command.
Please refer to the follwing URL:
https://github.com/NFLabs/zeppelin/tree/master/zeppelin-web
I tried mvn install -DskipTests, with the following system configurations:
1) Java 7
2) Maven 3.3
3) Spark 0.9.0
4) CDH4 cluster
Build is successful for me.

Build error from Installing Apache Zeppelin

I am at my wits end trying to get Apache Zeppelin running on my linux VM. I am following this tutorial:
http://madhukaudantha.blogspot.ca/2015/03/building-apache-zeppelin.html
I have done the following:
git clone to the machine
now trying to run 'mvn clean package'
I get the following error summary, I really need to get this running.
[INFO] Reactor Summary:
[INFO]
[INFO] Zeppelin .......................................... SUCCESS [16.124s]
[INFO] Zeppelin: Interpreter ............................. SUCCESS [36.026s]
[INFO] Zeppelin: Zengine ................................. SUCCESS [27.440s]
[INFO] Zeppelin: Spark ................................... SUCCESS [53.438s]
[INFO] Zeppelin: Markdown interpreter .................... SUCCESS [6.041s]
[INFO] Zeppelin: Angular interpreter ..................... SUCCESS [7.397s]
[INFO] Zeppelin: Shell interpreter ....................... SUCCESS [4.140s]
[INFO] Zeppelin: Hive interpreter ........................ SUCCESS [1:09.114s]
[INFO] Zeppelin: Tajo interpreter ........................ SUCCESS [15.153s]
[INFO] Zeppelin: web Application ......................... FAILURE [0.492s]
[INFO] Zeppelin: Server .................................. SKIPPED
[INFO] Zeppelin: Packaging distribution .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:57.426s
[INFO] Finished at: Wed Apr 29 12:18:39 EDT 2015
[INFO] Final Memory: 78M/266M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node -and-npm (install node and npm) on project zeppelin-web: The plugin com.github.eirslett:fron tend-maven-plugin:0.0.23 requires Maven version 3.1.0 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the follow ing articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleExceptio n
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-web
I have tried contacting the apache incubator team through their email (users#zeppelin.incubator.apache.org) however the emails bounced back. Ill continue to bounce around looking for a solution.
Download , extract and install Maven3 (if not already installed) and set maven in PATH
export PATH=$PATH:$MAVEN_HOME/bin
even i have updated the PATH variable with latest maven. mvn -version shows 2.x
now manually updated the maven using update-alternatives.
bdalab#solai:/opt$ sudo update-alternatives --install /usr/bin/mvn mvn $MAVEN_HOME/bin/mvn 1
bdalab#solai:/opt$ sudo update-alternatives --config mvn
Now, select a number referring to the recent maven3 installation, from the list of choices
I tried mvn install -DskipTests, with the following system configurations:
1) Java 7
2) Maven 3.3 - Download tar file. extract and update MAVEN_HOME in /etc/profile. Then run 'source' command
3) Spark 0.9.0
4) CDH4 cluster
Build is successful for me.
you can test your node and npm download url with wget first:
wget XXXnode-12.4.tar.gz
if this url can't download the file may be your network issuel
I think that you might be missing the installation of nodejs, npm. Please install nodejs, npm.
sudo yum install nodejs npm --enablerepo=epel
In my case below git config worked :
git config --global url."https://".insteadOf git://
Make sure Maven > v3.0 , npm , nodejs and bower should be installed.
For the issue was that I was using maven 3.2.
Installed maven 3.3.3 and everything went fine, build again and everything went ok.
I've the same problem with zeppelin and found the root cause to be a failure with 'bower install' command.
First you need to install nodejs
yum install -y node
then install bower
npm install -g bower
then install grunt
npm install -g grunt
run the following commands with a non-root user (i.e., create a zeppelin user)
cd zeppelin-web
bower install (takes some time to complete)
cd ..
mvn clean package -rf :zeppelin-web
https://github.com/NFLabs/zeppelin/issues/320
Switching github from git:// to https:// will do the trick.

How do I run Guava's unit tests?

I have cloned Guava's repository via the following command:
git clone https://code.google.com/p/guava-libraries/
Because I am not entirely familiar with Guava's structure, I tried the following commands:
cd guava-libraries
mvn test
Unfortunately, I received the following error (the entire output is available viewed here).
[INFO] ------------------------------------------------------------------------
[INFO] Building Guava GWT compatible libs
[INFO] task-segment: [test]
[INFO] ------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/google/guava/guava/13.0-SNAPSHOT/guava-13.0-SNAPSHOT-sources.jar
[INFO] Unable to find resource 'com.google.guava:guava:jar:sources:13.0-SNAPSHOT' in repository sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.google.guava:guava:jar:sources:13.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.guava -DartifactId=guava -Dversion=13.0-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.guava -DartifactId=guava -Dversion=13.0-SNAPSHOT -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.google.guava:guava-gwt:jar:13.0-SNAPSHOT
2) com.google.guava:guava:jar:sources:13.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.google.guava:guava-gwt:jar:13.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)
How do I run Guava's unit tests?
You can not run just mvn test before complete installation to local repository. Please run first time:
mvn clean install
Then you can run only mvn test. SNAPSHOT's libraries are not available yet in repository.
Why use a snapshot revision when a release candidate is available from Maven Central?
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>13.0-rc2</version>
</dependency>