Re: [Neo4j] how to use ActiveRecord with Neo4j . i am using ActiveRecord with neoid and neography gem .but i am facing an issue with create a record with getting No such ServerPlugin: "GremlinPlugin",
Thank you Michael Hunger On Monday, September 18, 2017 at 7:51:20 AM UTC+5:30, Michael Hunger wrote: > > Best ask in the gitter channel of neo4jrb.io > > Michael > > On Fri, Aug 4, 2017 at 4:09 PM, Nuttu Hariprasad> wrote: > >> >> >> >> hariprasad@Hari:~/Neo4J_Apps/sixth$ rake neo4j:start >> Starting Neo4j... >> WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See >> the Neo4j manual. >> Starting Neo4j Server...WARNING: not changing user >> process [6156]... waiting for server to be ready OK. >> http://localhost:7474/ is ready. >> hariprasad@Hari:~/Neo4J_Apps/sixth$ rails c >> Running via Spring preloader in process 6236 >> Loading development environment (Rails 4.2.3) >> 2.3.0 :001 > Book.create(title:"haripr") >>(0.1ms) begin transaction >> SQL (0.3ms) INSERT INTO "books" ("title", "created_at", "updated_at") >> VALUES (?, ?, ?) [["title", "haripr"], ["created_at", "2017-08-04 >> 14:07:54.288748"], ["updated_at", "2017-08-04 14:07:54.288748"]] >>(0.1ms) rollback transaction >> Neography::NeographyError: NeographyError: >> --message: No such ServerPlugin: "GremlinPlugin", >> --code: 404, >> --stacktrace: , >> --request: {:path=>"/db/data/ext/GremlinPlugin/graphdb/execute_script", >> :body=>"{\"script\":\"q = >> g.v(0).out(neo_subref_rel_type);\\n\\nsubref = q.hasNext() ? >> q.next() : null;\\n\\nif (!subref) {\\n subref = >> g.addVertex([name: neo_subref_rel_type, type: name]);\\n >> g.addEdge(g.v(0), subref, neo_subref_rel_type);\\n}\\n\\n >> >> >> subref\\n\",\"params\":{\"neo_subref_rel_type\":\"books_subref\",\"name\":\"Book\"}}"}, >> >> --index: 0 >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:250:in >> >> `raise_errors' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:222:in >> >> `handle_4xx_500_response' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:193:in >> >> `return_result' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:164:in >> >> `evaluate_response' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:76:in >> >> `block (3 levels) in ' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:89:in >> >> `log' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/connection.rb:67:in >> >> `block (2 levels) in ' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8.0/lib/neography/rest/gremlin.rb:14:in >> >> `execute_script' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid.rb:122:in >> `execute_script_or_add_to_batch' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid/node.rb:73:in >> >> `neo_subref_node' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid/node.rb:134:in >> >> `_neo_save' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid/model_additions.rb:56:in >> >> `neo_save' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid/model_additions.rb:50:in >> >> `neo_save_after_model_save' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:430:in >> >> `block in make_lambda' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:226:in >> >> `block in halting_and_conditional' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:504:in >> >> `block in call' >> ... 20 levels... >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2.3/lib/rails/commands/console.rb:9:in >> >> `start' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:68:in >> >> `console' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in >> >> `run_command!' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in >> >> `' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in >> >> `require' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in >> >> `block in require' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in >> >> `load_dependency' >> from >> /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in >> >> `require' >> from /home/hariprasad/Neo4J_Apps/sixth/bin/rails:9:in `' >>
Re: [Neo4j] how to use ActiveRecord with Neo4j . i am using ActiveRecord with neoid and neography gem .but i am facing an issue with create a record with getting No such ServerPlugin: "GremlinPlugin",
Best ask in the gitter channel of neo4jrb.io Michael On Fri, Aug 4, 2017 at 4:09 PM, Nuttu Hariprasadwrote: > > > > hariprasad@Hari:~/Neo4J_Apps/sixth$ rake neo4j:start > Starting Neo4j... > WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See > the Neo4j manual. > Starting Neo4j Server...WARNING: not changing user > process [6156]... waiting for server to be ready OK. > http://localhost:7474/ is ready. > hariprasad@Hari:~/Neo4J_Apps/sixth$ rails c > Running via Spring preloader in process 6236 > Loading development environment (Rails 4.2.3) > 2.3.0 :001 > Book.create(title:"haripr") >(0.1ms) begin transaction > SQL (0.3ms) INSERT INTO "books" ("title", "created_at", "updated_at") > VALUES (?, ?, ?) [["title", "haripr"], ["created_at", "2017-08-04 > 14:07:54.288748"], ["updated_at", "2017-08-04 14:07:54.288748"]] >(0.1ms) rollback transaction > Neography::NeographyError: NeographyError: > --message: No such ServerPlugin: "GremlinPlugin", > --code: 404, > --stacktrace: , > --request: {:path=>"/db/data/ext/GremlinPlugin/graphdb/execute_script", > :body=>"{\"script\":\"q = g.v(0).out(neo_subref_rel_type);\\n\\n >subref = q.hasNext() ? q.next() : null;\\n\\nif > (!subref) {\\n subref = g.addVertex([name: > neo_subref_rel_type, type: name]);\\n g.addEdge(g.v(0), > subref, neo_subref_rel_type);\\n}\\n\\n > subref\\n\",\"params\":{\"neo_subref_rel_type\":\"books_ > subref\",\"name\":\"Book\"}}"}, > --index: 0 > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:250:in `raise_errors' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:222:in `handle_4xx_500_response' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:193:in `return_result' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:164:in `evaluate_response' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:76:in `block (3 levels) in > ' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:89:in `log' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/connection.rb:67:in `block (2 levels) in > ' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neography-1.8. > 0/lib/neography/rest/gremlin.rb:14:in `execute_script' > from > /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid.rb:122:in > `execute_script_or_add_to_batch' > from > /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid/node.rb:73:in > `neo_subref_node' > from > /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/lib/neoid/node.rb:134:in > `_neo_save' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/ > lib/neoid/model_additions.rb:56:in `neo_save' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/neoid-0.2.1/ > lib/neoid/model_additions.rb:50:in `neo_save_after_model_save' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/callbacks.rb:430:in `block in make_lambda' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/callbacks.rb:226:in `block in > halting_and_conditional' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/callbacks.rb:504:in `block in call' > ... 20 levels... > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2. > 3/lib/rails/commands/console.rb:9:in `start' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2. > 3/lib/rails/commands/commands_tasks.rb:68:in `console' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2. > 3/lib/rails/commands/commands_tasks.rb:39:in `run_command!' > from > /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in > `' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:274:in `require' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:274:in `block in require' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:274:in `require' > from /home/hariprasad/Neo4J_Apps/sixth/bin/rails:9:in `' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:268:in `load' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:268:in `block in load' > from /home/hariprasad/.rvm/gems/ruby-2.3.0/gems/activesupport- > 4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency' > from