Swarm failed after test passed

swarming

#1

In trying to run swarm.py (within …/hotgym/prediction/one_gym) I’m getting this error. >

“Can’t connect to MySQL server on %r (%s)” % (self.host, e))
pymysql.err.OperationalError: (2003, ‘Can’t connect to MySQL server on ‘localhost’ ((1045, u"Access denied for user ‘root’@‘localhost’ (using password: NO)"))’)

At first I got the same error from the test_db.py validation script, but I fixed that and got ‘Connection Successful’, by hard coding my password into the file in place of this line:

Configuration.get(“nupic.cluster.database.passwd”)

It seems that this line returns empty (which is the default password), but I did set a password in setting up mysql. Would anyone know where I can change the output of this Configuration.get() line so it returns my actual password instead of empty? Or where I could hard-code around it? Thanks!!


#2

See this file:

http://nupic.docs.numenta.org/1.0.3/api/support/default-config.html

Heed the warning:

<!-- Do not modify this file directly.  Instead, copy entries that you -->
<!-- wish to modify from this file into nupic-site.xml and change them -->
<!-- there.  If nupic-site.xml does not already exist, create it.      -->

#3

Alright this certainly helps! So to my understanding I should:

  1. Instead of modifying nupic-default.xml, make a nupic-site.xml file in the same folder

  2. In this new file put only what I want to change from the default file (which is the currently empty MySQL password):

    https://pastebin.com/vRaypVxj

Does this sound like all I should need? Thanks once again :slight_smile:


#4

That’s right, but the XML in nupic-site.xml will probably need to be well-formed.


#5

Do you think that making the nupic-site file from a copy of the other file with the blank password space replaced with my password would be well formed?


#6

It should be. Are you getting an error?