Code Monkey home page Code Monkey logo

Comments (12)

lmangani avatar lmangani commented on July 30, 2024

Hi Joe,

There's really no quick install for H7 only containers. Could you confirm what instructions you followed?

from homer-app.

jmordica avatar jmordica commented on July 30, 2024

Yea sorry it was the docker containers. hep7-influx. The only other thing I did was use nginx as a reverse proxy to port 9060. But I tried it without nginx and got the same 503 when trying to auth. The hep5-influx works fine and I can auth with admin/test123 but it seems to use a different backend api.

from homer-app.

lmangani avatar lmangani commented on July 30, 2024

Hi Joe,

Indeed, the API between 5 and 7 is entirely different. The latest containers should all work great as-is unless there are errors intializing. Specifically this one should match your setup:

https://github.com/sipcapture/homer7-docker/tree/master/heplify-server/hom7-hep-influx

from homer-app.

jmordica avatar jmordica commented on July 30, 2024

Yep so all I did is docker-compose up -d and verified that all the containers started properly. I guess I will need to attach to the container running the api/nodejs server and figure out what is going on with it.

from homer-app.

lmangani avatar lmangani commented on July 30, 2024

docker logs --follow homer-webapp should do to get an idea

from homer-app.

jmordica avatar jmordica commented on July 30, 2024

Here we go. Looks like the users isn't getting created:

root@homer:/opt/homer-docker/heplify-server/hom7-hep-influx# docker logs --follow homer-webapp
run-parts: executing /docker-entrypoint.d/00-sed_files.sh
Pre-Flight provisioning completed!
run-parts: executing /docker-entrypoint.d/01-seeding_db.sh
Using environment: development
Knex:warning - migrations failed with error: globalSettingsTable is not defined
ReferenceError: globalSettingsTable is not defined
    at TableBuilder._fn (/app/migrations/20171007143156_Datastructure.js:55:7)
    at TableBuilder.toSQL (/app/node_modules/knex/lib/schema/tablebuilder.js:71:12)
    at SchemaCompiler_PG.createTable (/app/node_modules/knex/lib/schema/compiler.js:62:23)
    at SchemaCompiler_PG.toSQL (/app/node_modules/knex/lib/schema/compiler.js:51:26)
    at SchemaBuilder.toSQL (/app/node_modules/knex/lib/schema/builder.js:57:43)
    at /app/node_modules/knex/lib/runner.js:56:32
    at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
    at /app/node_modules/bluebird/js/release/using.js:185:26
    at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/app/node_modules/bluebird/js/release/promise.js:638:18)
    at PromiseArray._resolve (/app/node_modules/bluebird/js/release/promise_array.js:126:19)
    at PromiseArray._promiseFulfilled (/app/node_modules/bluebird/js/release/promise_array.js:144:14)
    at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:574:26)
    at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/app/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/app/node_modules/bluebird/js/release/async.js:17:14)
Using environment: development
error: relation "users" does not exist
    at Connection.parseE (/app/node_modules/pg/lib/connection.js:545:11)
    at Connection.parseMessage (/app/node_modules/pg/lib/connection.js:370:19)
    at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:113:22)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:601:20)
Seeding completed!
run-parts: executing /docker-entrypoint.d/03-rebuild.sh

> [email protected] start /app
> node bootstrap.js

Server started
Debug: handler, error
    {"msec":2.290091998875141,"error":"Not Found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"Not Found"},"headers":{}},"message":"Not Found"}}
Debug: handler, error
    {"msec":0.466796999797225,"error":"Not Found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"Not Found"},"headers":{}},"message":"Not Found"}}
Debug: handler, error
    {"msec":0.4172740001231432,"error":"Not Found","data":{"data":null,"isBoom":true,"isServer":false,"output":{"statusCode":404,"payload":{"statusCode":404,"error":"Not Found","message":"Not Found"},"headers":{}},"message":"Not Found"}}
Debug: handler, error
    {"msec":12.520929999649525,"error":"fail to get user: select \"guid\", \"hash\" from \"users\" where \"username\" = $1 - relation \"users\" does not exist","data":{"isBoom":true,"isServer":true,"output":{"statusCode":503,"payload":{"statusCode":503,"error":"Service Unavailable","message":"fail to get user: select \"guid\", \"hash\" from \"users\" where \"username\" = $1 - relation \"users\" does not exist"},"headers":{}}}}

from homer-app.

jmordica avatar jmordica commented on July 30, 2024

Everything works fine with hom7-hep-prom-graf

from homer-app.

lmangani avatar lmangani commented on July 30, 2024

@jmordica could you pull the latest sipcapture/homer-app:master container and try again?

from homer-app.

areski avatar areski commented on July 30, 2024

@lmangani the last container for homer-app have an issue with the migration, see 929a045#diff-528c0c313081bc1040c1262dce60b32c

It would be great if you could push an update!

from homer-app.

lmangani avatar lmangani commented on July 30, 2024

@areski could you open a separate issue for that with the case details? We'll look in parallel

from homer-app.

areski avatar areski commented on July 30, 2024

Surely, sorry for hijacking this issue!

from homer-app.

lmangani avatar lmangani commented on July 30, 2024

Closing in preparation for the 7.7 Release. Please re-test your issue using the 7.7. branch or Compose containers and feel free to reopen w/ fresh details if needed. Thanks!

from homer-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.