covidgraph / covidgraph_org

Repo for the public website https://covidgraph.org.
0 stars 0 forks source link

Error importing from zip file #1

Closed Jiros closed 4 years ago

Jiros commented 4 years ago

Morning @amorgner

I'm setting up a Structr instance to see if I can get a bit more familiar with it and maybe look at consolidating the guidance/readmes from the various wikis/repos (something like Gitbook)

I have a VM with structr 3.4.3 installed via deb package and an evaluation licence installed. When I try to import from url using the zip file in the repo I get the following error:

020-05-11 08:02:47.695 [qtp1788388430-71] INFO  org.structr.rest.common.HttpHelper - Downloading from https://github.com/covidgraph/covidgraph_org/raw/master/covidgraph-structr-app.zip
2020-05-11 08:02:52.569 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/security/grants.json
2020-05-11 08:02:56.955 [qtp1788388430-71] INFO  o.s.core.graph.ModificationQueue - doValidation: 1449 ms (1801 modifications)   (1425 ms validation - 21 ms indexing)
2020-05-11 08:02:57.444 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/mail-templates.json
2020-05-11 08:02:57.465 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/widgets.json
2020-05-11 08:02:57.484 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/localizations.json
2020-05-11 08:02:57.519 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/application-configuration-data.json
2020-05-11 08:02:57.543 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/files.json
2020-05-11 08:02:57.551 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/pages.json
2020-05-11 08:02:57.552 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/components.json
2020-05-11 08:02:57.552 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Reading /tmp/296208f2-5d46-4f52-81fb-5c60f0b0376d/covidgraph-structr-app/templates.json
2020-05-11 08:02:57.553 [qtp1788388430-71] INFO  o.s.web.maintenance.DeployCommand - Importing data from schema/ directory
2020-05-11 08:02:57.569 [qtp1788388430-71] WARN  o.s.web.maintenance.DeployCommand - Unable to import schema: null
2020-05-11 08:02:57.574 [qtp1788388430-71] ERROR o.s.web.servlet.DeploymentServlet - Exception while processing request

Are you able to generate a new zip file or is there anythimg else I should be looking at?

Thanks

amorgner commented 4 years ago

Hi @Jiros, that's probably because I use a 3.5 beta version on the covidgraph.org server. Could you please try again with the latest snapshot? We're very close to release 3.5 (to be released probably this week).

Jiros commented 4 years ago

Will do. Thanks @amorgner

Jiros commented 4 years ago

Hi again @jlaenge - bringing the conversation back to the github issue. I still ran into an exception importing the zip file from url. I suspect it may be the java version I have installed (openjdk-11) so can I just check if there is a specific version I should be using for 3.5.1?

Thanks

Jamie

jlaenge commented 4 years ago

@Jiros the java version should be fine. If the java version is not correct, Structr should not start in the first place. So if you have Structr running, that shouldn't be the issue. How did you supply the url? Note that this should be some web-address that is reachable from your browser and not a folder in your local file system. So e.g. something like /home/jakob/Desktop/covidgraph_org/covidgraph-structr-app.zip will not work.

Jiros commented 4 years ago

Deployment Import finished Importing deployment data for module messaging-module

Deployment Import finished: Tue Jun 09 2020 18:20:00 GMT+0100 (British Summer Time) Total duration: 90.36s

Looks like I should have been using the raw url https://github.com/covidgraph/covidgraph_org/raw/master/covidgraph-structr-app.zip and not just copying the link address from the zip file in the folder list https://github.com/covidgraph/covidgraph_org/blob/master/covidgraph-structr-app.zip as this seems to try to load the file in a github page and not to the file itself.

My mistake.

Thanks again for your help getting set up.