Closed js802025 closed 4 years ago
Looks like you need to install git. The other messages are just warnings.
I think you are right, while I have you when I go to your hosted version every so often it calls a 502 web err. So I was wondering how to host it myself or wanted to at least make you aware of this error. Thanks for any suggestions.
Yeah the server often runs out of memory because it's cheap. It's not trivial to host, but others have done so. I suggest looking through the closed issues on GitHub, where others have asked about this and some suggestions can be found.
downloaded couch but got this: name: 'CouchError', message: 'unauthorized: You are not a server admin.', error: 'unauthorized', reason: 'You are not a server admin.', headers: { 'cache-control': 'must-revalidate', 'content-length': '64', 'content-type': 'application/json', date: 'Wed, 18 Mar 2020 22:06:49 GMT', server: 'CouchDB/3.0.0 (Erlang OTP/22)', 'x-couch-request-id': '9691f113d4', 'x-couchdb-body-time': '0', status: 401 } }
Can you tell me what the database password should be?
Treason does not use a database username or password. In the version of Couch I am using (2.x), there is no username or password by default. It looks like Couch 3.x may have introduced a default username and password (admin
/password
). I suggest you configure Couch to disable this. (Check the docs to find out how). Alternatively, you could edit dataaccess-couch.js
and pass the username/password into the cradle.Connection()
call. (Check the Cradle docs to find out the syntax.)
Example of username and password
dataaccess-couch.js
var connection = new (cradle.Connection)('http://127.0.0.1', 5984, { auth: { username: 'admin', password: 'admin' } });
P.S. have u tried hosting with Heroku?
@js802025 I think Heroku would cost 2-3x the price of my VPS
If you're just looking to host a game yourself you can also just chop out the couchdb logic. I did that because I'm tossing it on my heroku to play with my friends and don't need a leaderboard. Somewhat orthogonal from the original ticket here though.
I have actually just committed a similar change, on the live
branch, to disable couch because it causes too many problems with the server running out of ram.
Lol I literally just made a new branch called dn-optional-couchdb
to do this. Will take a look at that branch. Thoughts on merging it to master?
Anyways, in the original spirit of the title of this issue I put up #34
@dnathe4th This is now merged into master, couchdb is no longer needed.
When I try to compile on windows I get this: