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

Solr error when running dev dataverse container #179

Closed
ekraffmiller opened this issue Sep 22, 2023 · 2 comments · Fixed by #180
Closed

Solr error when running dev dataverse container #179

ekraffmiller opened this issue Sep 22, 2023 · 2 comments · Fixed by #180

Comments

@ekraffmiller
Copy link
Contributor

When starting the dataverse container from dev_env, there is an error creating a new dataverse.
Steps to reproduce:
./rm-env.sh
./run-env.sh 9692-files-api-extension-display-data
login as dataverseAdmin
create a dataverse
error message:
Screenshot 2023-09-22 at 10 54 31 AM

Exception in solr log: solr.log

@pdurbin
Copy link
Member

pdurbin commented Sep 22, 2023

Unfortunately, I'm having trouble reproducing this:

Screen Shot 2023-09-22 at 11 10 10 AM

Here's the output from my run:

output
HMDC-beamish:dev-env pdurbin$ git log --oneline | head -1
c008e4d Merge pull request #176 from IQSS/update-solr-dv6
HMDC-beamish:dev-env pdurbin$ 
HMDC-beamish:dev-env pdurbin$ ./rm-env.sh 
WARNING: The DATAVERSE_IMAGE_TAG variable is not set. Defaulting to a blank string.
WARNING: The DATAVERSE_BOOTSTRAP_TIMEOUT variable is not set. Defaulting to a blank string.
Removing network dev-env_dataverse
WARNING: Network dev-env_dataverse not found.
Removing network dev-env_default
WARNING: Network dev-env_default not found.
HMDC-beamish:dev-env pdurbin$ 
HMDC-beamish:dev-env pdurbin$ 
HMDC-beamish:dev-env pdurbin$ ./run-env.sh 9692-files-api-extension-display-data
INFO - Setting up Dataverse on image tag 9692-files-api-extension-display-data...
INFO - Removing current environment if exists...
Removing network dev-env_dataverse
WARNING: Network dev-env_dataverse not found.
Removing network dev-env_default
WARNING: Network dev-env_default not found.
INFO - Running docker containers...
Creating network "dev-env_dataverse" with driver "bridge"
Creating network "dev-env_default" with the default driver
Pulling dev_dataverse_bootstrap (gdcc/configbaker:unstable)...
unstable: Pulling from gdcc/configbaker
7264a8db6415: Pull complete
2311042be449: Pull complete
e8abc8f2faa9: Pull complete
1766f1611798: Pull complete
b414a8687007: Pull complete
0ea3d163b105: Pull complete
ddf9851eef06: Pull complete
23a75441c190: Pull complete
Digest: sha256:cc97da578e7a2fccd5f4b240baa79104963ff4ab5b1e7fe357c43b723981d735
Status: Downloaded newer image for gdcc/configbaker:unstable
Pulling dev_dataverse (ghcr.io/gdcc/dataverse:9692-files-api-extension-display-data)...
9692-files-api-extension-display-data: Pulling from gdcc/dataverse
44ba2882f8eb: Pull complete
2cabec57fa36: Pull complete
c20481384b6a: Pull complete
bf7b17ee74f8: Pull complete
38617faac714: Pull complete
3a3342509e6b: Pull complete
b580c1160944: Pull complete
4f4fb700ef54: Pull complete
7b246a5aa317: Pull complete
859219ab79f4: Pull complete
3b614e4e8b66: Pull complete
16f0825ec2a2: Pull complete
ede30e2e4ef6: Pull complete
b8c1ba69cdc8: Pull complete
51671916540f: Pull complete
ec7f2a66eaf3: Pull complete
Digest: sha256:c0250c0f25d91518cb94eb4fcd5a8ef18c93dded6745b8fb1434506cfb170cf8
Status: Downloaded newer image for ghcr.io/gdcc/dataverse:9692-files-api-extension-display-data
Building dev_frontend
[+] Building 349.9s (18/18) FINISHED                                                                       
 => [internal] load build definition from dev.Dockerfile                                              0.0s
 => => transferring dockerfile: 41B                                                                   0.0s
 => [internal] load .dockerignore                                                                     0.0s
 => => transferring context: 2B                                                                       0.0s
 => [internal] load metadata for docker.io/library/node:19.6.1-alpine                                 0.5s
 => [build_image  1/11] FROM docker.io/library/node:19.6.1-alpine@sha256:78fa26eb2b8081e9005253e816e  0.0s
 => [internal] load build context                                                                     0.3s
 => => transferring context: 1.44MB                                                                   0.3s
 => CACHED [build_image  2/11] WORKDIR /usr/src/app/packages/design-system                            0.0s
 => [build_image  3/11] COPY ./packages/design-system ./                                              0.7s
 => [build_image  4/11] RUN npm install                                                              61.0s
 => [build_image  5/11] RUN npm run build                                                            48.1s
 => [build_image  6/11] WORKDIR /usr/src/app                                                          0.0s 
 => [build_image  7/11] COPY package.json ./                                                          0.0s 
 => [build_image  8/11] COPY package-lock.json ./                                                     0.0s 
 => [build_image  9/11] COPY .npmrc ./                                                                0.0s 
 => [build_image 10/11] RUN npm uninstall --save-dev lerna                                          188.2s 
 => [build_image 11/11] RUN npm install                                                               8.3s 
 => CACHED [stage-1 2/3] WORKDIR /usr/src/app                                                         0.0s 
 => [stage-1 3/3] COPY --from=BUILD_IMAGE /usr/src/app/node_modules ./node_modules                   13.8s 
 => exporting to image                                                                               11.5s 
 => => exporting layers                                                                              11.5s 
 => => writing image sha256:36845d3c5d00f059b7c025f85ead96469433dbd1a590b63f9657b88b2874d33d          0.0s 
 => => naming to docker.io/library/dev-env_dev_frontend                                               0.0s 

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Pulling dev_smtp (maildev/maildev:2.0.5)...
2.0.5: Pulling from maildev/maildev
df9b9388f04a: Already exists
70c90f7de7cb: Pull complete
f83937c3ce37: Pull complete
98b78bba1d70: Pull complete
ee0959d18bfc: Pull complete
42bcb104f1ff: Pull complete
Digest: sha256:082ec5ee92266c6e17493998ff1bf1c3eb70604b159fbeeaa435ee777f5cc953
Status: Downloaded newer image for maildev/maildev:2.0.5
Creating dev_smtp                ... done
Creating dev_dataverse_bootstrap ... done
Creating dev_solr_initializer    ... done
Creating dev_postgres            ... done
Creating dev_solr                ... done
Creating dev_dataverse           ... done
Creating dev_frontend            ... done
Creating dev_nginx_proxy         ... done
HMDC-beamish:dev-env pdurbin$ 

In the following issue we plan to add more debugging:

@thomasve-DANS
Copy link

thomasve-DANS commented Sep 22, 2023

Tested locally, did the following:

  • Cloned the repo
  • Ran the install instructions (npm install and create assets)
  • Went into dev-env folder
  • Got a correct image tag name from @pdurbin.
  • ./run-env <tag>
  • Waited patiently for it to build*
  • Can't access
  • Blasted my volumes with docker compose -f docker-compose-dev.yml down -v and by removing dev-docker-volumes folder
  • Rebuilt, went better this time
  • Went to http://localhost:8000 (dataverse)
  • Logged in with dataverseAdmin/default password
  • Created dataverse successfully.

*The first time, I had a timeout due to overloading the mac a bit. I tossed out the volumes and the containers for that reason.

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

Successfully merging a pull request may close this issue.

3 participants