Hi Massimiliano,

The errors you are receiving are not making much sense to me.  I've retried all 
the steps listed here on Windows 10:
https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7#TryoutDSpace7-InstallviaDocker

These are all working for me using Windows 10, Docker Desktop v2.2.0.5, and 
Windows Powershell (I've also done some basic testing with Windows Command 
Prompt, and it seems like it works there too).

Please make sure you are running all "docker-compose" commands from the *root 
directory* of the "dspace-angular" project (e.g. C:\dspace-angular\, or 
wherever you placed the code on your local system).  These various commands 
will *not* work in other directories.   Additionally, you should not need to 
run 'yarn' at all when using Docker (as all the necessary yarn commands run 
automatically in Docker).

At a basic level, all you should need to run is:

# Pull down (download) the latest docker images
docker-compose -f docker/docker-compose.yml pull

Then:

# Starts up all Docker images
docker-compose -p d7 -f docker/docker-compose.yml -f 
docker/docker-compose-rest.yml up -d

At this point, you should see an empty DSpace 7 site.  Then you can proceed 
with adding content (per the instructions) and/or adding a new Admin account 
(again, per the instructions on the wiki page).

You may want to step back & try this initial setup again to first ensure those 
two commands result in an empty DSpace 7 site (both the UI on port 3000 and the 
REST API on port 8080).

In order to complete reset everything in Docker, you can run these commands to 
remove all existing images and content:

# First, stop any running containers
docker stop $(docker ps -a -q)

# Then remove all Docker containers, volumes & images
docker system prune --all

# At this point, your Docker install is totally empty and you can start from 
the initial "pull" command followed by the "up -d"

I'm hoping that restarting will show us if things are working as expected, and 
make it easier to debug things step by step.  Currently, it's really difficult 
for anyone to debug this issue, as we don't know exactly where things started 
to go wrong.  It's also possible that things initially failed from a simple 
lack of available memory, and restarting (with increased memory) will cause 
everything to now work.

Good luck, and let us know how it goes.

Tim

________________________________
From: 'Massimiliano CILURZO' via DSpace Technical Support 
<dspace-tech@googlegroups.com>
Sent: Wednesday, April 15, 2020 1:01 PM
To: DSpace Technical Support <dspace-tech@googlegroups.com>
Subject: [dspace-tech] Re: Dpace 7 beta 1 on docker (windows 10)

Hi Tim,

        I have noticed that in the angular log there was an error on yarn:
package.json not found
So I installed again it with yarn install and then yarn update, I have cleared 
the cache with yarn clear cache.
And then the new interface on port 3000 it is visible on the browser.
The interface is started is up but without elements if I do a search the system 
say loading..
If I try to login with 
dspacedemo+sub...@gmail.com<mailto:dspacedemo%2bsub...@gmail.com> dspace the 
system say:
Http failure response for (unknown url): 0 Unknown Error
I have tried to connect to postgres on 5432 but say connection refused.
Even if from the log it seems up.
If I try to create the admin user or load entities the system goes in error. 
for example after
docker-compose -p d7 -f docker/cli.yml run --rm dspace-cli create-administrator 
-e t...@test.edu -f admin -l user -p admin -c en
.the error is:
FileNotFoundError: [Errno 2] No such file or directory: '.\\docker/cli.yml'
cli.yml doesn't exist there are d7.cli.yml or d6.cli.yml.
Best regards
Massimiliano

Il giorno martedì 14 aprile 2020 18:46:43 UTC+2, Tim Donohue ha scritto:
- mostra testo citato -

Il giorno lunedì 13 aprile 2020 09:41:27 UTC+2, Massimiliano CILURZO ha scritto:
Dear All,
     I'm new with Docker, and have tried to install Dspace 7 beta 1 on Docker 
(Windows 10), I have followed the instructions here:
https://wiki.lyrasis.org/display/DSPACE/Try+out+DSpace+7#TryoutDSpace7-InstallviaDocker
If I try to see if everything is up the system say:
$ docker ps -a
CONTAINER ID        IMAGE                                COMMAND                
  CREATED             STATUS                        PORTS                       
                     NAMES
8985988339ee        dspace/dspace-angular:latest         "docker-entrypoint.s…" 
  About an hour ago   Exited (255) 14 minutes ago   0.0.0.0:3000->3000/tcp, 
0.0.0.0:9876->9876/tcp   dspace-angular
c0a4a146fdf2        dspace/dspace:dspace-7_x-jdk8-test   "/dspace-docker-tool…" 
  About an hour ago   Exited (255) 14 minutes ago   8009/tcp, 
0.0.0.0:8080->8080/tcp                 dspace
eca915721325        dspace/dspace-postgres-pgcrypto      "docker-entrypoint.s…" 
  About an hour ago   Exited (255) 14 minutes ago   5432/tcp                    
                     dspacedb
8c404dc2ec06        dspace/dspace-solr                   "docker-entrypoint.s…" 
  About an hour ago   Exited (255) 14 minutes ago   0.0.0.0:8983->8983/tcp      
                     dspacesolr

So I imagine that system is working. But if I try with the browser to go to 
http://localhost:8080 or 3000 the result is "Error connection refused".

Could you give me some advice on what's wrong?
Thanks
Best regards
Massimiliano

--
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/13c33a04-33a7-4850-a62b-92328c19afda%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/13c33a04-33a7-4850-a62b-92328c19afda%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/DM5PR2201MB11488AAD8B9F9D27AB41D4D9EDDB0%40DM5PR2201MB1148.namprd22.prod.outlook.com.

Reply via email to