Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

question about multi-user & export/restore issues please don't hate me

A topic by Band created Jul 07, 2022 Views: 244 Replies: 6
Viewing posts 1 to 4

My friend and I really do want to make good use of this program, as it offers everything that we were looking for with our project. But there are some major issues keeping us from being able to do so. I have been struggling this entire time to get the multi-user function to work. That's almost 6 hours wasted now. I just want to clarify a couple things so that maybe we can get to work without anymore hassle.

1) Do all parties need to have couchdb installed to get multiuser working?

2) Do we need a domain name for CORS, or are able to use our port IP (clicking on the link that is meant to lead to couchdb's CORS documentation just leads to an inactive page)?

3) I would like more clarification in general on the steps you need to take to get multiuser up and running. Not even couchdb's documentation is intuitive enough,. It just makes my head hurt. 
 What do you mean by "connectivity of each user to a server"? 
Distinct user name in which program? CouchDB? Drafft? The drafft database alone? All of the above? 
What do you mean by "init a project by the same name"?
Enable CORS and then what? Choose "Restrict to specific domains" and enter in the domain name that you never knew you needed until that moment? Or Choose "All domains(*)" draw a blood pentagram on your computer screen and utter some random incantation?
Provide pictures. Be a little more elaborate. Please. I have a headache.

4) are you aware that exporting databases causes them to basically self-destruct? I was considering just using that as an alternative workaround for the multi-user issues, but instead barely anything is recovered and I get this error when I try to restore the database: 

Error restoring backup file: TypeError: Cannot convert undefined or null to object

I'm really not trying to complain or anything. I just want to be able to use this program for the project my friend and I have been working on. If not for these things, it would be otherwise perfect.

Developer (2 edits)

Hello Band, I’m sorry to hear you are having issues setting this up. Thank you for the detailed feedback!

1) Do all parties need to have couchdb installed to get multiuser working?
Not really, it should be on a server or on a single pc, this instance will be now the “couchdb server” each drafft app will be a client.

2) Do we need a domain name for CORS, or are able to use our port IP (clicking on the link that is meant to lead to couchdb’s CORS documentation just leads to an inactive page)?
CORS is always complicated, check: https://docs.couchdb.org/en/stable/config/http.html?highlight=cors#cors you can work with just IP address without issues I think.

*What do you mean by “connectivity of each user to a server”? *
Each user should be able to “reach” the server via http/https

*Distinct user name in which program? CouchDB? Drafft? The drafft database alone? All of the above? * In drafft there is a username option (look for “options” in the main menu)

What do you mean by “init a project by the same name”?
Every user should create a project that has the same name. Click on ProjectManager -> Create New Project. this will ensure each user is pointing to the same database.

(4) That sounds like a bug! if there’s any chance that you could provide me some sample export that would be great.

Thank you again for the feedback! I will try to record some videos and update docs this weekend!

hot damn, I didn't expect such a quick response!

I still seem to be having trouble getting the multiuser up and running (CORS has me REALLY stumped), so I think I'll wait for the videos you mentioned to be available before I try again.

As for the export/restore bug, I dunno what I did, but suddenly things are working just fine and I can't seem to recreate it. I'll have to keep an eye out to see if it doesn't come up again, but I suspect it has something to do with the portable version. I know I had downloaded the installer instead, and now both versions seem to work.

I'll try putting the portable version on my laptop when I get it back from (insert name of person borrowing laptop), and see if I can't recreate the issue there.

I managed to get remote replication working but it took trying a number of things to get it sorted. Thought I'd share in case it helps.

I set up CouchDB on a remote server (Debian) as a 'standalone' setup with the bind address of 0.0.0.0, if you use 127.0.0.1 I don't believe it allows external connections. If you go to the IP & CouchDB port you should see a JSON response.

For setting this up in Drafft I had to use the server's IP URL & port, so http://123.123.123.123:5984. I do have a domain set up on the server but Drafft didn't seem to like it on one of my computers, the other seemed to work.

I'll have to try that out ASAP.  Thanks for the advice!

Developer (1 edit)

Thanks @defenestr8me for the extra input.
@Band, I added a new video to the docs, hope it helps!

(+1)

thank you! It really did help, my friend and I are up and running with no problem <3