-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows line breaks in sync function cause SG to fail #783
Comments
…this is an issue for users writing SG config files on MS Windows, see #783 for an example
Tested this on Azure Ubuntu 12.04.5 box and Couchbase Sync Gateway/1.1.0(28;86f028c) still fails to start with windows line breaks. Have to run through cygwin dos2unix command to get sync gateway to start after editing the config file on windows. Error: |
Can you upload your breaking config to a gist and post a link to this ticket. Andy |
It's for our company's database, so for security reasons I would prefer not to upload the file. Would a snippet be sufficient? |
Any valid self contained config.json that exhibits the issue would be fine. Andy |
Just tested with this config and same issue with same error: I upgraded from SG Community 1.0.2 to SG Enterprise 1.1.0 by doing dpkg -r on the old sync gateway package, and then dpkg -i on the new package. |
That config worked on MAC OS X, but I didn't see any \r chars, it possible they got stripped when unpacking the archive. I'm going to run the same config with SG on Ubuntu 12. |
The steps I use to update our config are:
I have to run dos2unix to on the config file before copying it to the server though to fix the endline chars for unix. |
I have reproduce this issue on 1.1.0 enterprise binary release. Release note says that "#783 Windows line breaks in sync function cause SG to fail" is included, but it is not. Testing against latest master, Sync Gateway starts without error. |
Reclosing this ticket, issue with release build is tracked in new issue #987 |
…this is an issue for users writing SG config files on MS Windows, see #783 for an example
Multi-line sync functions in config files that are stored with Windows line breaks aren't parsed properly by Sync Gateway.
More details here:
https://issues.couchbase.com/browse/CBSE-1778
The text was updated successfully, but these errors were encountered: