We recently upgraded to sync gateway 1.2. Since then, we are facing a lot of issues.
Sometimes on starting the sync gateway, it cannot find the bucket. The log statement
Opening db /dbname as bucket "dbname", pool "default", server <http://localhost:8091>
is shown as
Opening db / as bucket "dbname", pool "", server <http://localhost:8091>
So it looks like the bucket is not found.
We have to kill SG process and restart it, and then it works fine.
Sometimes randomly SG log shows error
503 DB under maintainence