Cannot Enable Syncing

I have installed Couchbase Server community 4.5.1 (because I need it to support Windows version 7, 8, and 10) and Sync Gateway community 2.5 on Windows 10.
I want to add sync feature for my NativeScript app, which uses a plugin that is based on Couchbase Lite community 2.1.0

Anyways, this issue is not related to NativeScript or the plugin.

The issue is when I run this command for my sync-gateway-config.json file in CMD:

C:\Program Files\Couchbase\Sync Gateway>sync_gateway C:\Users\HomeUser\Desktop\sync-gateway-config.json

The command when running, stucks and freezes at this point:

2019-05-14T16:44:14.045-08:00 [INF] CBGoUtilsLogger: Using plain authentication for user stock-database

sync-gateway-config.json contains this:

{
“adminInterface”: “127.0.0.1:4985”,
“interface”: “127.0.0.1:4984”,
“log”: [“* “],
“databases”: {
“stock-database”: {
“server”: “http://localhost:8091”,
“use_views”:true ,
“bucket”:“stock-database”,
“users”: {
“GUEST”: { “disabled”: false, “admin_channels”: [”*”] }
},
“sync”: function (doc, oldDoc) { if (doc.sdk) { channel(doc.sdk); } }
}
}
}

Is a user with bucket and write and other accesses needed?
In the security page, I can only create a read-only user, but for permissive user I think I have to enable LDAP authentication, which seems only available in Enterprise Edition.

So, how do I solve this problem? Why it stucks and freezes at this in CMD:

2019-05-14T16:44:14.045-08:00 [INF] CBGoUtilsLogger: Using plain authentication for user stock-database

@bbrks Do you know the role to use in this situation?

@vanilla Let me just reiterate that you are using a version of Server that is past its end of support so I’d temper your expectations on the amount of help you will be able to get.

@borrrden I replaced it with Couchbase Server 6.0.0 CE,
You are right.

With the newer version of Couchbase Server, you should be able to follow this getting started guide for setting up your RBAC user and Sync Gateway config:

https://docs.couchbase.com/sync-gateway/2.1/getting-started.html#configure-couchbase-server