bartonhammond / bartonhammond/snowflake-hapi-openshift

Small mistake in README ?

Open
#4 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
132
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Hi,

Great job with this REPO. Good stuff and awesome docs: +1

I followed your description, but is a small typo:

cp src/config.sample.js src/config.js

I think it must be:
cp src/config.sample.js src/config

Or you have to change to src code:
in src/auth/jwt_strategy.js
..
var Config = require('../config'),

to
var Config = require('../config.js'),

I change the cp statement and the deployment on my own openshift domain works.

I got this error message:
remote: Application 'mysnowflake' failed to start (port 8080 not available)
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 56aa11597628e1102100001b (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/56aa11597628e1102100001b/nodej
remote: #IO:0x00000001445290
remote: #IO:0x00000001445218
remote: )
remote: Deployment completed with status: failure
remote: postreceive failed

So I checked the app logs with: rhc tail -a mysnowflake

RSA 1024 bit CA certificates are loaded due to old openssl compatibility
==> app-root/logs/haproxy.log <==
[WARNING] 027/080641 (292020) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 027/080641 (292020) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 027/081740 (292020) : Stopping proxy stats in 0 ms.
[WARNING] 027/081740 (292020) : Stopping proxy express in 0 ms.
[WARNING] 027/081740 (292020) : Proxy stats stopped (FE: 1 conns, BE: 0 conns).
[WARNING] 027/081740 (292020) : Proxy express stopped (FE: 4 conns, BE: 5 conns).
[WARNING] 027/081740 (334524) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 027/081740 (334524) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 027/082720 (334524) : Server express/local-gear is DOWN for maintenance.
[ALERT] 027/082720 (334524) : proxy 'express' has no server available!

==> app-root/logs/haproxy_ctld.log <==

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the README command that copies src/config.sample.js and compare it with the require path in src/auth/jwt_strategy.js. Confirm which filename the application expects, then ensure the documented setup command matches it and that the deployment instructions no longer lead to the reported configuration problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.