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

Fail to import graphson file to Orientdb in Docker #10182

Open
buchuitoudegou opened this issue Mar 5, 2024 · 0 comments
Open

Fail to import graphson file to Orientdb in Docker #10182

buchuitoudegou opened this issue Mar 5, 2024 · 0 comments

Comments

@buchuitoudegou
Copy link

OrientDB Version: 3.2.28

Java Version: jdk8

OS: Docker maven:3.6-jdk8-alpine

Expected behavior

I tried to import a graph in grahson format using the oriendb console.

Actual behavior

The console report the error:

Importing database DATABASE /tmp/freebase_small.json2_noslash.json -format=graphson -merge=true...
Started import of database 'plocal:/srv/db' from /tmp/freebase_small.json2_noslash.json...Error on database import happened just before line 0, column 8
com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Invalid format. Found unsupported tag 'mode'
	at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:234)
	at com.orientechnologies.orient.console.OConsoleDatabaseApp.importDatabase(OConsoleDatabaseApp.java:2550)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:456)
	at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:283)
	at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:144)
	at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:162)

Error: com.orientechnologies.orient.core.db.tool.ODatabaseExportException: Error on importing database 'db' from file: /tmp/freebase_small.json2_noslash.json

Error: com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Invalid format. Found unsupported tag 'mode'

The tag mode should be supported in graphson according to this document

Steps to reproduce

connect env embedded:/srv admin admin;
create database db plocal users (admin identified by 'admin' role admin);
open db admin admin;
import database <my-graphson-file> -format=graphson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant