Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Changing course catalog url to work for graduate level courses #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AllenHW
Copy link

@AllenHW AllenHW commented Aug 7, 2018

@AllenHW
Copy link
Author

AllenHW commented Aug 7, 2018

I'm having trouble testing the change because backfilling data with make init_data is giving the error:

PYTHONPATH=.. python data/aggregator.py courses
Traceback (most recent call last):
  File "data/aggregator.py", line 381, in <module>
    mongoengine.connect(c.MONGO_DB_RMC)
  File "/root/.virtualenv/rmc/local/lib/python2.7/site-packages/mongoengine/connection.py", line 162, in connect
    return get_connection(alias)
  File "/root/.virtualenv/rmc/local/lib/python2.7/site-packages/mongoengine/connection.py", line 126, in get_connection
    raise ConnectionError("Cannot connect to database %s :\n%s" % (alias, e))
mongoengine.connection.ConnectionError: Cannot connect to database default :
could not connect to localhost:27017: [Errno 111] Connection refused
make: *** [init_data] Error 1

I'm the using Jeff's Docker container, and had run make shell_in_docker and make local - Flow homepage ran successfully on http://localhost:5000/
I had also run mongod --config config/mongodb_local.conf which would stop on:

(rmc) root@70bea721f3e8:/rmc# mongod --config config/mongodb_local.conf
Tue Aug  7 06:10:11.555 [initandlisten] MongoDB starting : pid=94 port=27017 dbpath=./mongodb 64-bit host=70bea721f3e8
Tue Aug  7 06:10:11.555 [initandlisten] db version v2.4.14
Tue Aug  7 06:10:11.555 [initandlisten] git version: 05bebf9ab15511a71bfbded684bb226014c0a553
Tue Aug  7 06:10:11.555 [initandlisten] build info: Linux ip-10-154-253-119 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Tue Aug  7 06:10:11.555 [initandlisten] allocator: tcmalloc
Tue Aug  7 06:10:11.555 [initandlisten] options: { config: "config/mongodb_local.conf", dbpath: "./mongodb", journal: "true", rest: "true" }
Tue Aug  7 06:10:11.562 [initandlisten] journal dir=./mongodb/journal
Tue Aug  7 06:10:11.564 [initandlisten] recover : no journal files present, no recovery needed
Tue Aug  7 06:10:11.704 [websvr] admin web console waiting for connections on port 28017
Tue Aug  7 06:10:11.704 [initandlisten] waiting for connections on port 27017

for at least 10 minutes.

@AyushK1
Copy link
Member

AyushK1 commented Mar 3, 2019

Hi @AllenHW! Thanks for contributing. Are you still having trouble with testing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants