IQSS / dataverse-docker

Dataverse 6.2 on Docker with integrated services called "Archive in a box" and could be used both as demo and production system and easily integrated with other services.
57 stars 45 forks source link

On M1/M2 Mac, Exception while deploying the app [dataverse] : Filesystem WatchService is unavailable #85

Open pdurbin opened 1 year ago

pdurbin commented 1 year ago

I just cloned the repo (I'm on 8319b3d) and ran bash ./demostart.sh but the war file failed to deploy with the following error:

[#|2023-04-12T22:07:36.424+0000ESC[1;93m|WARNING|ESC[0mPayara 5.2021.1|ESC[1;94mfish.payara.boot.runtime.BootCommand|ESC[0m_ThreadID=1;_ThreadName=main;_TimeMillis=1681337256424;_LevelValue=900;| Boot Command deploy failed PlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment: Exception while deploying the app [dataverse] : Filesystem WatchService is unavailable. Please see server.log for more details. [name=dataverse |#]

Here is the full log: logs.txt

I'm on an M2 Apple chip and these issues seem related:

kitchenprinzessin3880 commented 1 year ago

same here (i am using Mac M1) have you managed to get the docker container running?

pdurbin commented 1 year ago

@kitchenprinzessin3880 nope but I was just hanging out with @4tikhonov and @poikilotherm at #dataverse2023 and I'm hoping we can switch dataverse-docker to the M1/M2-friendly images described here some day: https://preview.guides.gdcc.io/en/develop/container/app-image.html (note especially the "Processor Architecture and Multiarch" section).

@kitchenprinzessin3880 for now maybe you could give this a try: https://preview.guides.gdcc.io/en/develop/container/dev-usage.html

More info at https://ct.gdcc.io

kitchenprinzessin3880 commented 1 year ago

@pdurbin fab! I will test it today..thanks ;)

kitchenprinzessin3880 commented 1 year ago

@pdurbin I can run the instance now locally. however, i am getting two errors

  1. dev_bootstrap> 2023-06-14T03:13:31Z ERR Expectation failed error="failed to establish an http connection, caused by: Get \"http://dataverse:8080/api/info/version\": dial tcp: lookup dataverse on 127.0.0.11:53: no such host" address=http://dataverse:8080/api/info/version
  2. when i upload the logo - Caused by: java.nio.file.AccessDeniedException: /opt/payara/../docroot. i check the container, the docroot folder is not created.

any idea?

pdurbin commented 1 year ago

@kitchenprinzessin3880 hi! Thanks for testing! The first error is probably just an annoyance. It's just the bootstrap container checking if Dataverse is up yet (over and over again). Then it does its thing. You're welcome to create an issue about this if you like, in the main repo: https://github.com/IQSS/dataverse/issues

The second issue is very real. These containers are still under development! Please feel free to create an issue about this too, also in the other repo. (Update: for now I started this thread: https://dataverse.zulipchat.com/#narrow/stream/375812-containers/topic/collection.20logos.2C.20AccessDeniedException)