greenplum initialization failed - greenplum

When I tried to initialize Greenplum I got the following error
20180408:23:21:02:017614 gpstop:datanode3:root-[INFO]:-Starting gpstop with args:
20180408:23:21:02:017614 gpstop:datanode3:root-[INFO]:-Gathering information and validating the environment...
20180408:23:21:02:017614 gpstop:datanode3:root-[ERROR]:-gpstop error: postmaster.pid file does not exist. is Greenplum instance already stopped?
also when i tried to check gpstate command i got the following error
20180408:23:21:48:017711 gpstate:datanode3:root-[INFO]:-Starting gpstate with args:
20180408:23:21:48:017711 gpstate:datanode3:root-[INFO]:-local Greenplum Version: 'postgres (Greenplum Database) 5.7.0 build f7c6eb5-oss'
20180408:23:21:48:017711 gpstate:datanode3:root-[CRITICAL]:-gpstate failed. (Reason='could not connect to server: Connection refused
I also did the configuration an add a permission on PostgreSQL.conf, but the same issue

You have pasted the output of gpstop.
gpstop error: postmaster.pid file does not exist. is Greenplum
instance already stopped?
Which means that the database is not running.

Related

Backstage Heroku Deployment

WHy am I keep getting this error.
Backend failed to start up, Error: Failed to connect to the database to make sure that 'backstage_plugin_catalog' exists, Error: connect ECONNREFUSED 127.0.0.1:5432
Try to start your postgres-database with the environment variable POSTGRES_DB=backstage_plugin_catalog.
Also, check the credentials for postgres.

Receiving Invalid database URL while trying to start chainlink node

I am trying to start a chainlink node in rinkeby testnet.I have setup a postgres DB in AWS. The Database URL is already given. Below is the error while i am trying to start the node.
[ERROR] invalid database url %spostgresql://postgres:Bounty2000%#database-1.ciiecd8szsuh.us-west-1.rd
s.amazonaws.com:5432/db_sar_rinkeby orm/config.go:283
[ERROR] failed to initialize database, got error failed to connect to `host=/tmp user=root database=`
: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory) orm/orm.go:82
[ERROR] failed to initialize database, got error failed to connect to `host=/tmp user=root database=`
: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory) orm/orm.go:82
I tried changing few settings from AWS front but nothing helped.. If anyone have any clue pls help me up.
Based on the documentation it looks like there may be an "s" in front of your postgres URL, try removing that in your .env file. Also try replacing the database name with the IP address+Port. What should replace $DATABASE is "postgres". Finally try adding in ?sslmode=disable if you don't have ssl activated at the database (not recommended for a production node).
Example in .env:
DATABASE_URL=postgresql://me1234:password1234#10.10.100.100:3000/postgres?sslmode=disable

Oracle Sql developer throwing error message : Internal Error: Fetch error message failed! Vendor code 17001

I have recently moved from TCP to TCPS Connection. I can confirm that all my connection parameters are right and properly set. tnsnames.ora and sqlnet.ora is under oracle_home/network/admin folder.
I am trying to connect and getting below error message:
An error was encountered performing the requested operation:
Internal Error: Fetch error message failed!
Vendor code 17001
Looking for suggestions to fix issue.
Make sure that the Oracle Client "bin" directory (e.g. $ORACLE_HOME/bin) is in your PATH environment variable.

Use same mongodb database over Windows 7 & Ubuntu

I would like to use the same MongoDB database I use on windows 7 as I do on Ubuntu.
On Ubuntu, I went into the file: /etc/mongodb.conf
and changed dbpath=/var/lib/mongodb to dbpath=/media/meaniostack/OS/data/db which is the database on the windows partition.
When I tried starting up mongod & mongo, I got the following error:
MongoDB shell version: 2.6.7
connecting to: test
2015-01-30T14:19:11.027-0500 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-01-30T14:19:11.028-0500 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
However, when I go back to dbpath=/var/lib/mongodb, it works like normal. Keep in mind, that I have mounted media/meaniostack/OS
How do I make this work, and is it possible? Does mongodb, use a different type of storage compared to the one in Ubuntu?
After a bit of messing around I found the solution to be:
Alter permissions to the folders that the database is in.
Change the mongodb.conf path variable
Use mongod --dbpath /media/meaniostack/OS/data/db instead of: service mongod start
Hope this helped anyone with a similar issue.

Derby connection error: ERROR XBM0H: Directory /usr/opt/derby/db-derby-10.12.1.1-bin/bin/MyDbTest cannot be created

I am trying to setup Derby on my Mac following these instructions... Tutorial
When I try to run connect 'jdbc:derby:MyDbTest;create=true'; in ij I get the following error
ERROR XJ041: Failed to create database 'MyDbTest', see the next exception for details.
ERROR XBM0H: Directory /usr/opt/derby/db-derby-10.12.1.1-bin/bin/MyDbTest cannot be created.
I have tried googling this error a bit now with no success...
I also get a thread "main" java.lang.NoClassDefFoundError: org/apache/derby/tools/ij when trying to run as super user.
This should be a Permissions issue, try running all these commands throught a directory you have full permissions to such as ~/Documents/Derby.

Resources