GithubHelp home page GithubHelp logo

cloyne / docker-rocketchat Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 1.0 25 KB

Slack alternative for cloyne. Docker image extending rocket.chat

Dockerfile 89.87% Shell 10.13%
docker-image rocketchat server3 webapp

docker-rocketchat's Introduction

To start after unexpected reboot:

  1. Verify that the NODE_VERSION environment variable is up to date with rocketchat/base
  2. Fix the SSL symlinks in nginx-proxy:
    docker exec -ti nginx-proxy /bin/bash --login
    cd /ssl
    ln -s letsencrypt/live/chat.cloyne.org/fullchain.pem chat.cloyne.org.crt
    ln -s letsencrypt/live/chat.cloyne.org/privkey.pem chat.cloyne.org.key
    exit
  3. Currently /etc/service/rocketchat/run doesn't start appropriately and has to be started manually from within the container. It takes a minute to load.
     docker exec --user root -ti rocketchat /bin/bash --login
     /etc/service/rocketchat/run
  4. If you get 502 bad gateway, check docker network inspect server3.cloyne.org and confirm the internal IP address of the rocketchat container. Go back into nginx-proxy and make sure the upstream in /etc/nginx/sites-enabled/zzz-virtual.conf matches, then restart nginx with sv restart nginx.

To start from scratch for development

First, run the mongo container.

Then initiate the replica set within the mongo container:

docker exec --user root mongo mongo --eval "rs.initiate()"

Then start the rocketchat service as in step 3 above.

To add users

First, do a csv import according to these instructions. Any new users created this way will start out deactivated. To activate them, you must log into the database:

docker exec --user root -ti mongo /bin/bash --login
root@mongo:/# mongo
rs01:PRIMARY> use rocketchat
rs01:PRIMARY> db.users.update({username: "NAME"}, {$set: {active: true}})

for adding a single user

docker-rocketchat's People

Contributors

andrestepe avatar clonm avatar closoft avatar ecawthon avatar samuelhsu123 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dwtcourses

docker-rocketchat's Issues

Loading screen + mongodb timeout

Symptom: chat.cloyne.org shows the three loading dots and the correct page title (CloyneChat) as set by rocketchat, but never loads.

In /srv/log/rocketchat/current:

=> awaited here:                                                                                                        
    at Promise.await (/Rocket.Chat/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12)
    at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1091:12)
    at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1105:22)
    at Cursor.(anonymous function) [as forEach] (packages/mongo/mongo_driver.js:887:44)
    at OplogObserveDriver._runQuery (packages/mongo/oplog_observe_driver.js:729:16)
    at packages/mongo/oplog_observe_driver.js:699:14
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at packages/meteor.js:620:25
    at runWithEnvironment (packages/meteor.js:1356:24)

repeated many times. Final entry after checking in browser and before force restarting:

 => awaited here:
    at Promise.await (/Rocket.Chat/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12)
    at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1091:12)
    at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1105:22)
    at SynchronousCursor.map (packages/mongo/mongo_driver.js:1115:10)
    at SynchronousCursor.fetch (packages/mongo/mongo_driver.js:1139:17)
    at Cursor.(anonymous function) [as fetch] (packages/mongo/mongo_driver.js:887:44)
    at Object.<anonymous> (packages/matb33_collection-hooks.js:445:81)
    at Object.collection.(anonymous function) [as update] (packages/matb33_collection-hooks.js:146:21) 
    at Collection.update (packages/mongo/collection.js:585:31)                       
    at Collection.Mongo.Collection.(anonymous function) [as update] (packages/dispatch_run-as-user.js:325:19)
    at BaseDb.update (app/models/server/models/_BaseDb.js:229:25)
    at Collection.model.update (app/models/server/models/_BaseDb.js:110:16)
    at AccountsServer._expireTokens (packages/accounts-base/accounts_server.js:1018:16)
    at accounts.expireTokenInterval.Meteor.setInterval (packages/accounts-base/accounts_server.js:1432:14)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
    at packages/meteor.js:620:25
    at runWithEnvironment (packages/meteor.js:1356:24)
  name: 'MongoNetworkError',
  errorLabels: [ 'TransientTransactionError' ],
  [Symbol(mongoErrorContextSymbol)]: {} }
Exception in setInterval callback: SwitchedToQuery{}

Fixed (temporarily?) by restarting mongo container and then re-running rocketchat from within the rocketchat container. Not sure what actually caused this or if it will happen again.

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.