aborroy / alfresco-installer

Docker Image to use the Alfresco Docker Installer project
GNU Lesser General Public License v3.0
11 stars 5 forks source link

permission denied #2

Open sergiobaiao opened 1 year ago

sergiobaiao commented 1 year ago

Hi there,

Every single time i run the container i get this message at the end:

Error alfresco-docker-installer

EACCES: permission denied, open '/generated/.env'

Tried to run as root, with sudo, nothing changes. Can you help?

aborroy commented 1 year ago

Please, can you provide additional data to reproduce the issue.

What operative system are you using? From what folder are you running the tool? What Docker version are you using? What is the sequence of commands you type?

Anything would help.

sergiobaiao commented 1 year ago

Oracle Linux 8.4

I`ve created a /docker/alfresco-installer folder Docker version 23.0.0, build e92dd87 $ docker run -it -v $(pwd):/generated angelborroy/alfresco-installer

I just changed the folder permissions to 777 and it seems to have worked. But now i cannot login to alfresco with the password i provided. Even if i leave the default password it cannot login

aborroy commented 1 year ago

How many RAM is allocated to Docker?

sergiobaiao commented 1 year ago

16GB

aborroy commented 1 year ago

When everything is up & ready, what is the output of the command "docker ps"?

sergiobaiao commented 1 year ago

docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 830e0cf48528 nginx:stable-alpine "/docker-entrypoint.…" 26 seconds ago Up 18 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp alfresco-installer-proxy-1 ac822512aa3f alfresco/alfresco-content-app:3.1.0 "/docker-entrypoint.…" 26 seconds ago Up 20 seconds 8080/tcp alfresco-installer-content-app-1 508ec04b7ae7 alfresco-installer-alfresco "catalina.sh run -se…" 26 seconds ago Up 21 seconds 0.0.0.0:2121->2121/tcp, :::2121->2121/tcp, 8000/tcp, 8080/tcp, 0.0.0.0:2433-2434->2433-2434/tcp, :::2433-2434->2433-2434/tcp, 10001/tcp alfresco-installer-alfresco-1 11c9363f103b alfresco/alfresco-transform-core-aio:3.0.0 "/bin/sh -c 'java $J…" 26 seconds ago Up 24 seconds 8090/tcp alfresco-installer-transform-core-aio-1 7dbee8357c5b alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8 "/bin/sh -c './init.…" 26 seconds ago Up 23 seconds 5672/tcp, 61613/tcp, 61616/tcp, 0.0.0.0:8161->8161/tcp, :::8161->8161/tcp alfresco-installer-activemq-1 f2d1c81e8e59 alfresco-installer-solr6 "/bin/sh -c '$DIST_D…" 26 seconds ago Up 24 seconds 8983/tcp, 10001/tcp alfresco-installer-solr6-1 2af3cd8abb3b alfresco-installer-ocrmypdf "/usr/sbin/sshd -D" 26 seconds ago Up 23 seconds 22/tcp alfresco-installer-ocrmypdf-1 6de39e8b04c3 alfresco-installer-share "/usr/local/tomcat/s…" 26 seconds ago Up 23 seconds 8000/tcp, 8080/tcp alfresco-installer-share-1 328f085136af angelborroy/alfresco-tengine-ocr:1.0.0 "/bin/sh -c 'java $J…" 26 seconds ago Up 24 seconds 8090/tcp alfresco-installer-transform-ocr-1

aborroy commented 1 year ago

It looks like all the services all up & ready and required amount of RAM is in place.

May you verify if your problem is described in this video? https://www.youtube.com/watch?v=Dfd4bISsV-Y

sergiobaiao commented 1 year ago

When logging in to content app it show this: image

and on share: image

all containers are running ok:

image

the only thing i could find was in the end of start.sh:

image

aborroy commented 1 year ago

May you share generated files ".env" and "docker-compose.yml"?

sergiobaiao commented 1 year ago

Docker Image versions

ALFRESCO_CE_TAG=7.3.0 SEARCH_CE_TAG=2.0.5.1 SHARE_TAG=7.3.0.1 ACA_TAG=3.1.0 POSTGRES_TAG=14.4 MARIADB_TAG=10.5 TRANSFORM_ENGINE_TAG=3.0.0 ACTIVEMQ_TAG=5.17.1-jre11-rockylinux8

Server properties

SERVER_NAME=localhost

sergiobaiao commented 1 year ago

cat docker-compose.yml

Using version 2 as 3 does not support resource constraint options (cpu*, mem* limits) for non swarm mode in Compose

version: "2"

services: alfresco: build: context: ./alfresco args: ALFRESCO_TAG: ${ALFRESCO_CE_TAG} DB: postgres SOLR_COMMS: secret mem_limit: 7488m depends_on:

sergiobaiao commented 1 year ago

i've made some changes on the docker-compose.yml file. Instead of building, i used the default images from alfresco. After replacing the build fields for the image from alfresco default's community-docker-compose.yml, it worked. But i don't know if i will miss the addons after doing this or if this will give me problems.

phabx003 commented 1 year ago

Hi, I have the same problem. I can't login on /localhost/share. Please I need your help. Thank

aissamb commented 1 year ago

Most of the errors are related to permissions.

  1. alfresco-installer docker try to generate files with uid/gid: 501, if you are using an account with different uid (1000 for eg.) you will get the error.

To avoid the permission denied (/generated) I created a user by forcing the uid/gid before running alfresco-installer.

  1. docker compose up/login problem Is seems that's working, but if you pay attention to the displayed log, most error are "permission denied" ones. You can check the documentation to fix it https://github.com/Alfresco/alfresco-docker-installer#docker-volumes

I extracted the fixes here: sudo chown -R 33007 data/solr-data sudo chown -R 999 data/postgres-data sudo chown -R 999 logs/postgres sudo chown -R 33000 data/alf-repo-data sudo chown -R 33000 logs/alfresco sudo chown -R 33007 data/solr-data

phabx003 commented 1 year ago

Thank, I try it now.

phabx003 commented 1 year ago

Please... uid/gid of the user will be same as the docker group or will just have 501 ?

phabx003 commented 1 year ago

I tried but I have the same problems.

phabx003 commented 1 year ago

I tried but I have the same problems.

BHuck74 commented 1 year ago

Dear all,

I've tried to get Alfresco running for 3 days now and I'm now close to give up and look for another tool. I first tested Alfresco from the regular site. It worked, but I did not understand why there is just no volume management taken into account 🤷‍♂️ Anyway, after this first disappointment, I went to this docker-compose installer but still struggling for jours to get it work. I've tried almost everything but I'm still stuck at login windows, my admin credentials not being accepted. Not a surprise because I see a bunch of Java exceptions in container logs. First issue was about Postgres not being able to create alfresco database. Was not able to solve the permission issue (btw I don't understand how that could happen), then I switched desperately to MariaDB that went up clean but still not able to connect. I've the following error looping endless : alfresco_solr6 container ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@5d332969_Worker-40) [ ] o.a.s.t.AbstractTracker [alfresco / ACL@706871301 / IT #1694077190000] Tracking failure.

At that point, I just have no idea how I could investigate further... Any clue would be appreciated.

Running on Ubuntu 20.04.6 LTS / 32 Gb RAM

# Docker Image versions
ALFRESCO_CE_TAG=7.4.1
SEARCH_CE_TAG=2.0.8
SHARE_TAG=7.4.1
ACA_TAG=4.1.0
POSTGRES_TAG=14.4
MARIADB_TAG=10.5
TRANSFORM_ENGINE_TAG=4.0.0
ACTIVEMQ_TAG=5.17.1-jre11-rockylinux8

# Server properties
SERVER_NAME=[privacy]