I tried to push a Node.js app to Bluemix. The app worked fine on my Mac but did not start for some reason on Bluemix.
The Bluemix log contains some errors:
CELL/0Starting health monitoring of containerJan 16, 2017 10:12:29 PM
APP/0runtime: failed to create new OS thread (have 5 already; errno=11)Jan 16, 2017 10:12:29 PM
APP/0runtime: may need to increase max user processes (ulimit -u)Jan 16, 2017 10:12:29 PM
APP/0fatal error: newosprocJan 16, 2017 10:12:29 PM
APP/0Express app running on port 3000Jan 16, 2017 10:12:30 PM
CELL/0Timed out after 1m0s: health check never passed.Jan 16, 2017 10:13:31 PM
CELL/0Exit status 0Jan 16, 2017 10:13:31 PM
CELL/0Destroying containerJan 16, 2017 10:13:42 PM
API/0App instance exited with guid a1525a65-4e18-41c6-87a0-53656bc45810 payload: {"instance"=>"", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 1 error(s) occurred:\n\n* Exited with status 4\n* 2 error(s) occurred:\n\n* cancelled\n* process did not exit", "crash_count"=>3, "crash_timestamp"=>1484601222302319454, "version"=>"3480d7ed-0634-4cd6-a43a-94e490c3cafb"}Jan 16, 2017 10:13:42 PM
CELL/0Successfully destroyed containerJan 16, 2017 10:13:45 PM
CELL/0Creating containerJan 16, 2017 10:14:22 PM
CELL/0Successfully created containerJan 16, 2017 10:14:34 PM
CELL/0Starting health monitoring of containerJan 16, 2017 10:14:36 PM
APP/0Express app running on port 3000Jan 16, 2017 10:14:36 PM
CELL/0Timed out after 1m0s: health check never passed.Jan 16, 2017 10:15:37 PM
CELL/0Exit status 0Jan 16, 2017 10:15:37 PM
CELL/0Destroying containerJan 16, 2017 10:15:48 PM
API/4App instance exited with guid a1525a65-4e18-41c6-87a0-53656bc45810 payload: {"instance"=>"", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 1 error(s) occurred:\n\n* Exited with status 4\n* 2 error(s) occurred:\n\n* cancelled\n* process did not exit", "crash_count"=>4, "crash_timestamp"=>1484601348331703378, "version"=>"3480d7ed-0634-4cd6-a43a-94e490c3cafb"}Jan 16, 2017 10:15:48 PM
CELL/0Successfully destroyed containerJan 16, 2017 10:15:49 PM
CELL/0Creating containerJan 16, 2017 10:16:54 PM
CELL/0Successfully created containerJan 16, 2017 10:17:04 PM
APP/0Starting app with 'node app.js 'Jan 16, 2017 10:17:08 PM
APP/0Express app running on port 3000Jan 16, 2017 10:17:08 PM
Attaching the configuration files:
1. manifest.yml
---
applications:
- name: tks
memory: 256M
instances: 1
host: tks
and 2. package.json
{
"name": "ski-dictionary",
"version": "1.0.0",
"description": "A collection of skier terms and definitions",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node app.js"
},
"author": "Peter Schleinitz",
"license": "MIT",
"dependencies": {
"body-parser": "^1.14.1",
"cors": "^2.7.1",
"express": "^4.13.3",
"request": "^2.79.0"
}
}
Hope that helps.
There are a number of things that could be the issue, but here is what I think are probably the most likely causes:
1. Your port is not being set correctly on Bluemix
This would explain why your app runs locally, but doesn't run on Bluemix. I have had this issue before, so I looked through my configuration files to make sure that everything was set correctly. Verify you can run and deploy a simple Node example like this:
https://github.com/IBM-Bluemix/node-helloworld
2. You may need to increase the timeout
If you application is particularly large, you may need to increase the timeout. To do that add a timeout flag in your manifest:
timeout: 120 for example
https://docs.cloudfoundry.org/devguide/deploy-apps/large-app-deploy.html
Without access to the code, it will be a little difficult to reproduce the problem, but let me know if the above solutions work for you.
Related
I have AWS Glue Job which is using Spark and Scala with jdbc connections specified in the script for custom ETL and data decryption. While running the job in an environment where databases are not publicly available the jobs are failing with communication failure. I have the Glue and S3 Endpoints defined in the same VPC as the database but still no success.
Also tried creating a fake connection and a Network connection but after adding the connection to the job, the job never finishes and is stuck.
Jun 22, 2021, 7:46:47 AM 21/06/22 14:46:47 WARN ApacheUtils: NoSuchMethodException was thrown when disabling normalizeUri. This indicates you are using an old version (< 4.5.8) of Apache http client. It is recommended to use http client version >= 4.5.9 to avoid the breaking change introduced in apache client 4.5.7 and the latency in exception handling. See https://github.com/aws/aws-sdk-java/issues/1919 for more information
Jun 22, 2021, 7:46:48 AM 21/06/22 14:46:48 INFO Utils: Successfully started service 'sparkDriver' on port 37917.
Jun 22, 2021, 7:46:50 AM 21/06/22 14:46:50 INFO GlueContext: GlueMetrics configured and enabled
Jun 22, 2021, 7:47:48 AM 21/06/22 14:47:48 WARN EC2MetadataUtils: Unable to retrieve the requested metadata (/latest/user-data/). The requested metadata is not found at http://169.254.169.254/latest/user-data/
Jun 22, 2021, 7:47:48 AM 21/06/22 14:47:48 ERROR UserData: Error encountered while try to get user data
Jun 22, 2021, 7:47:48 AM 21/06/22 14:47:48 INFO MultipartUploadOutputStream: close closed:false s3://{{bucket}}/spark/spark-application-1624373208897.inprogress
Jun 22, 2021, 7:48:47 AM 21/06/22 14:48:47 INFO MultipartUploadOutputStream: close closed:false s3://{{bucket}}/spark/spark-application-1624373208897.inprogress
Jun 22, 2021, 7:49:47 AM 21/06/22 14:49:47 INFO MultipartUploadOutputStream: close closed:false s3://{{bucket}}/spark/spark-application-1624373208897.inprogress
Jun 22, 2021, 7:50:47 AM 21/06/22 14:50:47 INFO MultipartUploadOutputStream: close closed:false s3://{{bucket}}/spark/spark-application-1624373208897.inprogress
Jun 22, 2021, 7:51:47 AM 21/06/22 14:51:47 INFO MultipartUploadOutputStream: close closed:false s3://{{bucket}}/spark/spark-application-1624373208897.inprogress
Jun 22, 2021, 7:52:47 AM 21/06/22 14:52:47 INFO MultipartUploadOutputStream: close closed:false s3://{{bucket}}/spark/spark-application-1624373208897.inprogress
Without Connection
Jun 21, 2021, 8:29:12 PM 21/06/22 03:29:12 ERROR ProcessLauncher: InvocationTargetException java.lang.reflect.InvocationTargetException
Jun 21, 2021, 8:29:12 PM 21/06/22 03:29:12 ERROR ProcessLauncher: Exception in User Class
Jun 21, 2021, 8:29:12 PM 21/06/22 03:29:12 ERROR ProcessLauncher: Exception in User Class: com.mysql.cj.jdbc.exceptions.CommunicationsException : Communications link failure com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456) com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$createConnectionFactory$1.apply(JdbcUtils.scala:63) org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$createConnectionFactory$1.apply(JdbcUtils.scala:54) org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:56) org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation$.getSchema(JDBCRelation.scala:210) org.apache.spark.sql.execution.datasources.jdbc.JdbcRelationProvider.createRelation(JdbcRelationProvider.scala:35) org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:318)```
I am seeing extremely slow processing times after a Postgres upgrade from 9.5 to 9.6 related to queries Osmosis (the command line Java application for processing OpenStreetMap data). Specifically syncing a local osm database with the master osm repo (Postgis 2.3 from 2.2). The syncing used to happen every day and took about 500 seconds on average. After the upgrade, after 48 hours, it is still not over. I notice very slow (below zero) object processing times (log record below) compared to before. I am fairly certain the problem is with the Postgres update. Can't figure out what to fix. pg_stat_activity gives the following query (currently):
UPDATE ways w
SET linestring = (
SELECT ST_MakeLine(c.geom) AS way_line
FROM (
SELECT n.geom AS geom
FROM nodes n
INNER JOIN way_nodes wn ON n.id = wn.node_id
WHERE (wn.way_id = w.id)
ORDER BY wn.sequence_id ) c )
WHERE w.id IN (
SELECT w.id
FROM ways w
INNER JOIN way_nodes wn ON w.id = wn.way_id
WHERE wn.node_id = $1
GROUP BY w.id )
Log record after the update:
Oct 31, 2017 12:23:59 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.45
Oct 31, 2017 12:24:00 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Oct 31, 2017 12:24:00 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Oct 31, 2017 12:24:00 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Oct 31, 2017 12:24:16 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 26022046 with action Modify, 0.06660006660006661 objects/second.
Oct 31, 2017 4:12:49 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 26022047 with action Modify, 7.292125918680253E-5 objects/second.
Oct 31, 2017 6:54:27 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 26022053 with action Modify, 1.0311411856040729E-4 objects/second.
Oct 31, 2017 9:39:22 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 26022056 with action Modify, 1.0106204077408672E-4 objects/second.
Nov 01, 2017 5:07:11 AM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 26022057 with action Modify, 3.72178939465691E-5 objects/second.
Nov 01, 2017 7:43:20 AM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 26022058 with action Modify, 1.0673723278600615E-4 objects/second.
Log record before the update:
Oct 22, 2017 11:00:01 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.45
Oct 22, 2017 11:00:02 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Oct 22, 2017 11:00:02 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Oct 22, 2017 11:00:02 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Oct 22, 2017 11:00:17 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 557521 with action Modify, 0.06700616456714018 objects/second.
Oct 22, 2017 11:00:22 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 49820266 with action Modify, 58.15347721822542 objects/second.
Oct 22, 2017 11:00:27 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 81804664 with action Modify, 40.64719810576164 objects/second.
Oct 22, 2017 11:00:32 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 109690032 with action Modify, 24.57577530719719 objects/second.
Oct 22, 2017 11:00:38 PM org.openstreetmap.osmosis.core.progress.v0_6.ChangeProgressLogger process
INFO: Processing Node 124684125 with action Modify, 58.35490938060148 objects/second.
FYI, I came across with exactly the same issue: I upgraded pg to 9.6 from 9.4 and queries ran much slower.
I had run only vacuum, nothing changed, but then I ran analyse as #harmic suggested and runs fine now (even faster, thanks to pg 9.6 improvements :) )!
After Postgres Upgrade you need to analyze the database for fast query plane.
To analyze the full database run the below query
ANALYZE VERBOSE --for all database analyze
To analyze only a specific table then use this query
ANALYZE VERBOSE [Table_name] --for particular table
query works in this Supported Versions: Current (13) / 12 / 11 / 10 / 9.6 / 9.5
reference: https://www.postgresql.org/docs/9.1/sql-analyze.html
Created an Internet of Things Platform Starter service. As it did not start automatically, I started it manually:
STG/0 Failed to create container Apr 29, 2017 9:11:24 PM
API/1 Failed to stage application: staging failed Apr 29, 2017 9:11:24 PM
LGR/nullproxy: error connecting to 169.46.101.209:8081: dial tcp 169.46.101.209:8081: i/o timeout Apr 29, 2017 9:26:12 PM
Not sure, why a container is required.
Node-red is running now. Looks like a glitch.
I have gone through the following url for building webservices in jade http://jade.tilab.com/doc/tutorials/WSIG_Guide.pdf
Last page gives you instructions to run sample examples given by wsig....
When i tried running runMathAgent.bat ...I am getting the following output
Jul 15, 2016 12:57:55 PM jade.core.BaseService init
INFO: Service jade.core.management.AgentManagement initialized
Jul 15, 2016 12:57:55 PM jade.core.BaseService init
INFO: Service jade.core.messaging.Messaging initialized
Jul 15, 2016 12:57:55 PM jade.core.BaseService init
INFO: Service jade.core.resource.ResourceManagement initialized
Jul 15, 2016 12:57:55 PM jade.core.BaseService init
INFO: Service jade.core.mobility.AgentMobility initialized
Jul 15, 2016 12:57:55 PM jade.core.BaseService init
INFO: Service jade.core.event.Notification initialized
Jul 15, 2016 12:57:55 PM jade.core.AgentContainerImpl startBootstrapAgents
> SEVERE: Cannot create agent MathAgent1: Class
> com.tilab.wsig.examples.MathAgent for agent ( agent-identifier :name
> MathAgent1#WSIGTestPlatform ) not found - Caused by:
> com.tilab.wsig.examples.MathAgent
Jul 15, 2016 12:57:55 PM jade.core.AgentContainerImpl joinPlatform
INFO: --------------------------------------
Agent container Container-2#192.168.1.3 is ready.
--------------------------------------------
I finally figured solution for my problem. To run jade web services examples u need to deploy using ant (ant deploy-examples) and configuration includes juddi version of apache. This will solve the problem.
You need to run jade web services examples by deploying the exemples: using ant deploy-examples command.
I cannot seem to click on much inside of Eclipse Juno. I cannot run my projects, and even when I try to do something like Windows -> Preferences nothing pops up for Preferences, and I get no response. I have tried Refresh, Clean, and restarting both Eclipse and my system. Still nothing. I opened Eclipse via command line and got some output, but have no idea what it means. This is what it gave me:
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: Copy resource /javahg.py to /tmp/1346439710466-0/javahg.py
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: Command server started: /home/jordan/Workspaces/pos
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(22ms) status --modified --added --removed --deleted --unknown --clean
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: Random bytes generated: #CEa68#=[;bCQXECR%&^
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: Copy resource /styles/changesets.style to /tmp/1346439710466-0/styles/changesets.style
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: Copy resource /styles/changesets-eager.style to /tmp/1346439710466-0/styles/changesets-eager.style
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(5ms) parents --debug --style /tmp/1346439710466-0/styles/changesets.style
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(2ms) branch
Aug 31, 2012 3:01:50 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(3ms) resolve --list
Aug 31, 2012 3:01:52 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(19ms) parents --debug --style /tmp/1346439710466-0/styles/changesets.style
Aug 31, 2012 3:01:52 PM com.aragost.javahg.log.JULLogger info
INFO: Copy resource /styles/tags.style to /tmp/1346439710466-0/styles/tags.style
Aug 31, 2012 3:01:52 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(4ms) log --debug --style /tmp/1346439710466-0/styles/tags.style --rev 899668f6b2cdd3383d823a341c746a2a29e1f841
Aug 31, 2012 3:01:52 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(2ms) parents --debug --style /tmp/1346439710466-0/styles/changesets.style
Aug 31, 2012 3:01:53 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(10ms) parents --debug --style /tmp/1346439710466-0/styles/changesets.style
Aug 31, 2012 3:02:24 PM com.aragost.javahg.log.JULLogger info
INFO: Command server stopped: /home/jordan/Workspaces/pos
Aug 31, 2012 3:02:42 PM com.aragost.javahg.log.JULLogger info
INFO: Command server started: /home/jordan/Workspaces/pos
Aug 31, 2012 3:02:42 PM com.aragost.javahg.log.JULLogger info
INFO: runcommand(6ms) parents --debug --style /tmp/1346439710466-0/styles/changesets.style
Aug 31, 2012 3:03:12 PM com.aragost.javahg.log.JULLogger info
INFO: Command server stopped: /home/jordan/Workspaces/pos
Anyone know what is wrong with Eclipse and how I can get my programs running again?
Please open the 'Error Log' view to see what exception is happening when you attempt to view the preferences. Then you can enter a bug against or uninstall whatever plugin is causing the problem.