Skip to content
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

Kong start issue due configuration #986

Closed
jeevaengg21 opened this issue Feb 11, 2016 · 9 comments
Closed

Kong start issue due configuration #986

jeevaengg21 opened this issue Feb 11, 2016 · 9 comments

Comments

@jeevaengg21
Copy link

Getting below error while start kong. As reported in the error line 166 has ngix configuration, but i haven't change anything in that part. Only change i made was cassandra configuration

nginx: |
user {{user}};
worker_processes auto;
error_log logs/error.log error;
daemon on;

ERROR

[INFO] Using configuration: /etc/kong/kong.yml
/usr/local/bin/luajit: did not find expected at document: 1, line: 166, column: 1

stack traceback:
[C]: in function 'load'
/usr/local/share/lua/5.1/kong/tools/config_loader.lua:151: in function 'load_default'
/usr/local/share/lua/5.1/kong/cli/cmds/start.lua:19: in main chunk
[C]: in function 'require'
/usr/local/lib/luarocks/rocks/kong/0.6.1-0/bin/kong:55: in main chunk
[C]: at 0x00404760
jeevanantham@solverubuntulaptop:~$ sudo gedit /etc/kong/kong.yml

@thibaultcha
Copy link
Member

I believe this is #949: bad configuration format.

@jeevaengg21
Copy link
Author

yup, u are correct i revert back the configuration its working now. @Kong It would be more useful if the error information are more precise because i was looking in the wrong part of configuration.

@thibaultcha
Copy link
Member

Yes, it will be the case, as @ajayk was nice enough to provide a patch for this in #949.

@olufemi
Copy link

olufemi commented Mar 8, 2016

This error " did not find expected at document: 1, line: 166, column: 1". I'm also facing in starting kong.
@jeevaengg21 did not really indicate how he resolved this. Or may be you can paste on this blog correct cassandra setting in kong.yml. i'm using redhat server with a public ip.

Please i need your help to resolve this, my client is on me. Thank you.

@Tieske
Copy link
Member

Tieske commented Mar 8, 2016

@olufemi please see #949 probably you have a formatting error in your yml config file. Please check carefully the indentations etc.

@jeevaengg21
Copy link
Author

@olufemi if your running the cassandra in the same machine, do not make any change in kong.yml. so revert all the changes you have done and try again.

@olufemi
Copy link

olufemi commented Mar 14, 2016

Thanks so much @jeevaengg21 , i'm running cassandra on the same machine. As you asked me to do i have restored kong.yum to its defualt. But when i ran "kong start", i got the following response:

[olufemi@localhost ~]$ kong start
[INFO] Kong 0.7.0
[INFO] Using configuration: /etc/kong/kong.yml
[INFO] Setting working directory to /usr/local/kong
[INFO] database...........cassandra keyspace=kong ssl=verify=false enabled=false replication_factor=1 contact_points=127.0.0.1:9042 replication_strategy=SimpleStrategy timeout=5000 data_centers=
[INFO] Leaving cluster..
[ERR] Cassandra error: [Invalid] unconfigured table schema_keyspaces
[ERR] Could not start Kong

Please assist me, what can i do to it, and my cassandra is running.
Also how can i know the status of cassandra from command terminal?

Thank you. Please any body should help.

@martin-dostal
Copy link

@olufemi don't you run Kong against Cassandra 3.x? It is not supported, see #831.

@SandeshSarfare
Copy link

How can I downgrade cassandra version from 3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants