Comments (7)
From the log output I can tell that the schema compilation fails with an obscure error message.
If you could provide us access to the database (preferably as a copy), I could debug this on my machine to see where the problem is and how to solve it.
from structr.
Sure.
How can I reach out to you (Email?).
How can I get a database copy?
from structr.
If you are using our docker setup (from https://github.com/structr/docker-setup), the default configuration for the database files is that they should be written to ./volumes/neo4j-database
. Creating a ZIP file of that complete folder would be perfect I think.
I'll send you an email so we can exchange the files.
from structr.
Thanks for supplying the database - with it I was able to find the problem.
There is a bug in the schema validation - one of the enum properties contains values which are protected keywords in Java and thus compilation fails. But at runtime this only throws an error when the compilation fails, but the change is still saved.
You can fix this by renaming the enum values of the Gateway type with the following query in the neo4j browser.
I only added a _
as a prefix, you could also capitalize the values or change them another way.
MATCH (n { id: "11ecbe150e6645d28be2222407170b1d" })
set n.format = '_public,_private,_unknown' RETURN n
Again, thank you for helping us find that bug! We will fix the compilation issue - but those Java keywords will still be reserved and will result in a compilation failure. The error handling will improve though.
from structr.
Hi.
we unfortunately do not have access to the neo4j browser due to firewall rules.
Any alternative to get this fixed? I have ssh access to the docker host, but no http to neo4j.
from structr.
SSH access to the docker host should work as well. You could use cypher-shell
, log in with the database credentials and issue the same query. The only difference in cypher-shell is that the command has to be terminated with ;
from structr.
So did I
ubuntux@ubuntu-docker:/docker$ sudo docker-compose exec structr_neo4j cypher-shell
username: neo4j
password: xxxx
Connected to Neo4j using Bolt protocol version 4.4 at neo4j://localhost:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
neo4j@neo4j>
neo4j@neo4j>
neo4j@neo4j> MATCH (n { id: "11ecbe150e6645d28be2222407170b1d" })
set n.format = '_public,_private,_unknown' RETURN n;
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| n |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| (:SchemaReloadingNode:AbstractNode:NodeInterface:AccessControllable:SchemaProperty:PropertyDefinition {hidden: FALSE, indexed: TRUE, notNull: FALSE, lastModifiedDate: 1669822583453, defaultValue: "", lastModifiedBy: "a6995a4bf83d41f594b759fdac3ef85e", dbName: "", format: "_public,_private,_unknown", visibleToAuthenticatedUsers: FALSE, visibleToPublicUsers: FALSE, type: "SchemaProperty", compound: FALSE, createdDate: 1669822558995, createdBy: "a6995a4bf83d41f594b759fdac3ef85e", isCachingEnabled: FALSE, unique: FALSE, propertyType: "Enum", name: "apn_type", id: "11ecbe150e6645d28be2222407170b1d"}) |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row
ready to start consuming query after 52 ms, results consumed after another 88 ms
Set 1 properties
neo4j@neo4j> :exit
Bye!
Structr some seconds after....
structr_1 | 2022-12-10 11:18:09.932 [main] INFO org.structr.core.Services - 5 service(s) processed
structr_1 | 2022-12-10 11:18:09.932 [main] INFO org.structr.core.Services - Registering shutdown hook.
structr_1 | 2022-12-10 11:18:09.932 [main] INFO org.structr.core.Services - Started Structr 4.3-SNAPSHOT 2872d 202210071329
structr_1 | 2022-12-10 11:18:09.932 [main] INFO org.structr.core.Services - ---------------- Initialization complete ----------------
We're back online, hurray.
from structr.
Related Issues (20)
- Could not initialize class org.structr.schema.compiler.NodeExtender on Windows 7 HOT 3
- The connection can't be reached at http://localhost:8082/structr/. Structr server will not start. HOT 2
- How to save as web app HOT 1
- Security Contact Request HOT 2
- Group users shouldn't be self-added HOT 1
- Punctuation characters make simple page crash HOT 2
- What version of Neo4j is supported?
- if query parameter contains 'announce' will no response from rest api HOT 8
- Convert nine variable assignments to the usage of compound operators
- The UI starts to blink endlessly HOT 2
- Feature request/Error: Hardcoded neo4j passwords HOT 2
- make cors origin configurable HOT 3
- Test Smell: it is not a good practice to introduce nondeterministic randomness in test code HOT 1
- feature-request: more expressive error on email duplicate HOT 1
- Display errors on schema save/compile on schema screen
- Structr not starting up anymore HOT 6
- Importing data from other structr instance results in FrameworkException HOT 1
- ERROR org.structr.schema.SchemaService - SchemaNode.modem_type invalid_property_definition Invalid enum type name, must match [a-zA-Z_]{1}[a-zA-Z0-9_]*. HOT 3
- Dependency on nexus.bedatadriven.com ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from structr.