OpenHab Cloud Installation

@tominagaf yes port 3000. Did it work for you so far?

Yes, it works. Now I Wonder how to make myself member of admin group.

now all of a sudden my openhab refuses to connect to my instance on cloud, i receive the below in the log

03:01:37.014 [DEBUG] [io.socket.engineio.client.Socket ] - socket error io.socket.engineio.client.EngineIOException: xhr poll error

any suggestions ? :slight_smile:

Like Kiran_Patil I am also not able to start Openhab-cloud because of mongodb: MongoError: auth failed but mine seems more serious. I donā€™t have the openhab schema at all. Here is my mongodb session:

bob@linux05:~/openhab-cloud$ mongo
MongoDB shell version: 2.6.10
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type ā€œhelpā€.
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
show dbs;
admin (empty)
local 0.078GB
exit

Is there a way to rerun just the mongo part of the install or do you have other suggestions?

Thanks,

@BobRak,

is this still a problem?
Without the openhab db it wont start. So you need to switch (if installed properly) to it by ā€œuse openhabā€

Let me know if you still got problemsā€¦

BR mhmet

Mehmet:

Thanks for following up. I wanted a local Openhab-cloud installation
because I am developing a binding for the Smartthings Hub and thought I
would have to use their cloud interface to interact with it. But, I have
since figured out I can talk to the hub over my local LAN. Therefore, I
have stopped trying to do a local installation of Openhab-cloud.

Thanks,

Bob

1 Like

Hi,

I could access my Openhab setup by using http://XXX.XXX.XXX.XXX:3000/basicui/app or http://XXX.XXX.XXX.XXX:3000/classicui/app (internet browser in Windows).
What I couldnā€™t get working was how my Openhab app (habdroid) could get access. Any ideas about the link I should use?

Thanks !

hi,
you need to add you url http://XXX:8080 for the local URL in Settings of the app.
BTW you re here at the wrong topicā€¦this is here for openHAB cloud.

Hi,

I have installed a local instance of Openhab cloud on a Ubuntu server. I also want to connect Habdroid to it allowing me to have notifications and better authentication. The following links do work: http://XXX.XXX.XXX.XXX:3000/basicui/index.html, http://XXX.XXX.XXX.XXX:3000/classicui/index.html and http://XXX.XXX.XXX.XXX:3000/habpanel/index.html.
Unfortunately I cannot connect Habroid. However it works if I use the shared solution ā€œwww.myopenhab.orgā€.
Any ideas?

Hi,

@Fdewaele,

you need to give habDroid your machines adress like http://your-IP:8080.

Did you try this? What is the error?

BR Mehmet

Hi all,

I am able to setup a local instance of openhab cloud, and run it on a vagrant box. The cloud website is functional and I can access via localhost:3000. Now I have added the cloud connector to openHab, the cloud server url to localhost:3000, the cloud website still display the openhab is offline. I see the debug log is pinging:

2017-03-10T07:50:40.564Z - debug: openHAB-cloud: Checking for offline openHABs (0)

I checked the uuid and secret are both set already. Anything else Iā€™m missing? I tried myopenhab.org and on there I can make it online.

Did you ever get an answer to the question " how to make yourself admin" ??

Iā€™m running the makeadmin.js script on my own openhabcloud installation but get a MongoDB auth error

I still have problems and get the following log.
I have followed the quick start desciption, get this error

bt@OpenHab:/home/Unbuntu/openhab-cloud$ sudo node app.js
2017-06-19T21:55:21.396Z - info: openHAB-cloud: Backend service is starting upā€¦
2017-06-19T21:55:21.405Z - info: openHAB-cloud: Backend logging initializedā€¦
2017-06-19T21:55:21.889Z - info: openHAB-cloud: Initializing XMPP connection to GCM
2017-06-19T21:55:22.334Z - info: openHAB-cloud: Mailer will emulate sending in development environment
2017-06-19T21:55:22.491Z - info: openHAB-cloud: Connecting ro Redis at 127.0.0.1:6379
2017-06-19T21:55:22.818Z - info: opneHAB-cloud: Trying to connect to mongodb at: mongodb://:@127.0.0.1/openhab?poolSize=100
2017-06-19T21:55:22.832Z - info: openHAB-cloud: Scheduling a statistics job (every 5 min)
express deprecated app.configure: Check app.get(ā€˜envā€™) in an if statement app.js:203:5
express deprecated app.configure: Check app.get(ā€˜envā€™) in an if statement app.js:207:5
express deprecated app.configure: Check app.get(ā€˜envā€™) in an if statement app.js:210:5
connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20
connect deprecated limit: Restrict request size at location of read node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15
connect deprecated methodOverride: use method-override npm module instead app.js:219:21
2017-06-19T21:55:22.946Z - info: openHAB-cloud: IFTTT is configured, app handling IFTTT capabilitiesā€¦
Option polling duration is not valid. Please refer to the README.
node_redis: Deprecated: The AUTH command contains a ā€œundefinedā€ argument.
This is converted to a ā€œundefinedā€ string now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
2017-06-19T21:55:22.970Z - info: openHAB-cloud: express server listening on port 3000
2017-06-19T21:55:22.976Z - info: openHAB-cloud: Redis connect response: OK
2017-06-19T21:55:22.977Z - info: Redis is ready
node_redis: Warning: Redis server does not require a password, but a password was supplied.
2017-06-19T21:55:22.999Z - error: openHAB-cloud: Error while connecting from openHAB-cloud to mongodb: MongoError: field missing/wrong type in received authenticate command
2017-06-19T21:55:22.999Z - error: openHAB-cloud: Stopping openHAB-cloud due to error with mongodb

@Borre_Tharaldsen Did you solve your problem ? I have the same errorā€¦

@MARZIMA Can you help ?

Regards
Jƶrg

@vbbaby3 @Borre_Tharaldsen

I think you must remove the mongo user and passwort config entries completely in the config, so that it doesnt try to use it.

Can you check if that helps?

BR Mehmet

Great that worked for me :ok_hand:

It does not help. Then I got this:

Hi @Borre_Tharaldsen,

Did you maybe remove all mongo related stuff from config? Make sure only user and passwort is removedā€¦and NOT mongo host etc.
(also make sure that you Donā€™t leave commas alone in config while removing attributes from conf)

BR Mehmet

That helps. No I can start the instans.
I still get to errors, but I donā€™t know if they mean anything

node_redis: Deprecated: The AUTH command contains a ā€œundefinedā€ argument.
This is converted to a ā€œundefinedā€ string now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
2017-08-02T21:14:41.578Z - info: openHAB-cloud: express server listening on port 3000
2017-08-02T21:14:41.585Z - info: openHAB-cloud: Redis connect response: OK
2017-08-02T21:14:41.586Z - info: Redis is ready
node_redis: Warning: Redis server does not require a password, but a password was supplied.
2017-08-02T21:14:41.604Z - info: openHAB-cloud: Successfully connected to mongodb
2017-08-02T21:14:41.668Z - warn: openHAB-cloud: GCM XMPP error: XMPP authentication failure
2017-08-02T21:15:00.379Z - info: openHAB-cloud: every5min statistics collection job started
2017-08-02T21:15:00.409Z - info: openHAB-cloud: every5min statistics collection job finished
2017-08-02T21:15:41.202Z - debug: openHAB-cloud: Checking for offline openHABs (0)
2017-08-02T21:15:41.203Z - debug: openHAB-cloud: Checking orphaned rest requests (0)
2017-08-02T21:16:40.887Z - debug: openHAB-cloud: Checking for offline openHABs ( 0)

But what is the admin password or default user?
I am on the login screen

Hi guys,

this might be a stupid question. @MARZIMA where can I find the quickstart guide you are referring to?
I found


but it doesnā€™t mention anything about renaming config-production.json to config.json and after starting openhab-cloud it just fails because it cannot connect to mongo db (only solved when creating user manually, but you mentioned above that this shouldnā€™t be needed, or at least someone should remove the user/pass from the config file - which I havenā€™t tested). Is the quickstart guide just outdated? If so, any chance I can make changes, like in wikipedia? Sorry I am new to this forum and github.

Stefan

1 Like