Hi there!
I’m hitting an issue when trying to migrate to Couchbase Server 5.5 with Sync Gateway 2.0, with the following message posted to the console as the last entry, followed by an indefinitely hang:
Using plain authentication for user (MY USERNAME)
I’ve tried both SG 2.0 as well as the current head of the master branch (508346b2dbc3419b1a6141a1ab039fbac31ec391), with the same symptoms. Any ideas welcome.
I create the bucket SG is connecting to as follows:
echo "Creating ${APP_DATA_BUCKET} bucket..."
couchbase-cli bucket-create -c http://127.0.0.1:8091 -u ${APP_ADMIN_USERNAME} -p ${APP_ADMIN_PASSWORD} \
--bucket=${APP_DATA_BUCKET} \
--bucket-type=couchbase \
--bucket-ramsize=512 \
--enable-index-replica=0
couchbase-cli user-manage -c http://127.0.0.1:8091 \
--username ${APP_ADMIN_USERNAME} \
--password ${APP_ADMIN_PASSWORD} \
--set \
--rbac-username ${APP_DATA_BUCKET} \
--rbac-password ${APP_COUCHBASE_RBAC_PASSWORD} \
--roles="bucket_admin[${APP_DATA_BUCKET}],views_admin[${APP_DATA_BUCKET}],query_manage_index[${APP_DATA_BUCKET}],query_select[${APP_DATA_BUCKET}]" \
--auth-domain local
I’ve added the various roles to the user based on the error messages, and also tried the map-reduce view based operation with same symptoms. – with 5.1 the only role I have there is bucket_admin[${APP_DATA_BUCKET}]
with which I’ve had no problems connecting from SG to CB.
{
"log": ["CRUD+","HTTP+","REST+", "Changes+", "Attach+"],
"interface": ":<%- app_gateway_public_port %>",
"adminInterface": ":<%- app_gateway_admin_port %>",
"databases": {
"<%- app_data_bucket %>": {
"server":"http://<%- app_couchbase_hostname %>",
"sync":`<%- sync_fn %>`,
"send_www_authenticate_header": false,
"use_views": false,
"password": "<%- app_couchbase_rbac_password %>",
"allow_conflicts": false,
"num_index_replicas": 0
}
},
"CORS": {
"Origin": [<%- app_allowed_cors_origins.split(';').map(x => `"${x}"`).join(',') %>],
"LoginOrigin": [<%- app_allowed_cors_origins.split(';').map(x => `"${x}"`).join(',') %>],
"Headers": ["Content-Type"],
"MaxAge": 17280000
}
}
Matias