Coder Social home page Coder Social logo

Comments (10)

mustafa-qamaruddin avatar mustafa-qamaruddin commented on July 26, 2024

Hello,

I am having this issue when I run;

docker run --name='alfresco' -d -p 8080:8080
-v $HOME/alfresco_volumes/alf_data:/alfresco/alf_data
-v $HOME/alfresco_volumes/tomcat_logs:/alfresco/tomcat/logs
-v $HOME/alfresco_volumes/content:/content
gui81/alfresco

SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]
java.io.FileNotFoundException: /alfresco/alf_data/keystore/ssl.keystore (No such file or directory)

Should I run the keytool machine to generate the certificate?

http://docs.alfresco.com/4.0/tasks/generate-repo-ssl-keystore.html
http://docs.alfresco.com/4.0/tasks/generate-repo-ca-key.html

I found also this automated script;
https://wiki.alfresco.com/images/f/f5/Create_local_keystores.sample

Regards,
Mustafa Qamar-ud-Din

from docker-alfresco.

mustafa-qamaruddin avatar mustafa-qamaruddin commented on July 26, 2024

Hello,

I received the following error after adding the keystore certifcates;

SEVERE: Error listenerStart
May 28, 2016 4:58:11 AM org.apache.catalina.core.StandardContext startInternal

ERROR [solr.tracker.AbstractTracker] [SolrTrackerScheduler_Worker-39] Tracking failed
java.net.ConnectException: Connection refused

Thanks for your help in advance.

from docker-alfresco.

DamienMure avatar DamienMure commented on July 26, 2024

I'm now using https://github.com/disaster37/rancher-alfresco, which :

  • run alfresco 5.1 .(and I really need this)
  • includes sames stuffs like ones in my previous pull resquests
  • save/restore alf_data at first startup to prevent alfresco from the "/alfresco/alf_data/keystore/ssl.keystore (No such file or directory)" error.

Regards.

from docker-alfresco.

mustafa-qamaruddin avatar mustafa-qamaruddin commented on July 26, 2024

Dear Damien,

Thank you for sharing it with me, but it works only on Rancher stack?!

Regards,

from docker-alfresco.

mustafa-qamaruddin avatar mustafa-qamaruddin commented on July 26, 2024

Dear Damien,

I have run the following commands

First I ran a container:
$docker run --name='alfresco' -d -p 8080:8080
-v $HOME/alfresco_volumes/alf_data:/alfresco/alf_data
-v $HOME/alfresco_volumes/tomcat_logs:/alfresco/tomcat/logs
-v $HOME/alfresco_volumes/content:/content
gui81/alfresco

Then I copied the files from container to my host
$ docker cp ba79858445a641535f1863b886706c2e0b2a4575aeb7db1d0c419a49a5e56e3e:/alfresco/alf_data $HOME/alfresco_copy/alf_data

$ docker cp ba79858445a641535f1863b886706c2e0b2a4575aeb7db1d0c419a49a5e56e3e:/content $HOME/alfresco_copy/content

Then I removed the previous container and run a fresh copy using the ssl keys from the previous one
$ docker run --name='alfresco' -d -p 8080:8080 \
-v $HOME/alfresco_copy/alf_data:/alfresco/alf_data
-v $HOME/alfresco_copy/tomcat_logs:/alfresco/tomcat/logs
-v $HOME/alfresco_copy/content:/content
gui81/alfresco

I believe I made a mistake by removing the container, but what do you suggest, since I am still getting the following error:

SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]
java.io.IOException: Keystore was tampered with, or password was incorrect

Regards,

from docker-alfresco.

DamienMure avatar DamienMure commented on July 26, 2024

Hi.
I do not have much time, so quickly:

  • Yes, I'm using the other container with rancher. But you can run it as is, outside any rancher architecture (as any other container.).. You have examples in the README.
  • If you really want to do it by yourself : at your first step do not use any "-v". If you use "-v $HOME/alfresco_volumes/alf_data:/alfresco/alf_data", you mount an empty directory into your alfresco...So during "docker cp", you also copy an empty directory.
    If you remove "-v", you will be able to copy to original content of alf_data to you $HOME. Then you can use "-v" during the last step to mount it into your brand new alfresco.
  • But the right way to do this is by writing your own Dockerfile:
    -- FROM "gui81/docker-alfresco"
    -- move the alf_data to /somewhereelse
    -- write and add you own ENTRYPOINT.

In this custom entrypoint, you check if alf_data is here. If not, you rename "/somewhereelse" to alf_data. If yes, do nothing. Then, call for the original ENTRYPOINT(/alfresco/init.sh).

Regards.

from docker-alfresco.

mustafa-qamaruddin avatar mustafa-qamaruddin commented on July 26, 2024

Dear Damien,

Thank you for your hints;

I've written a blog about this experience, and I am looking forward to your feedback.

https://mustafamahrous.wordpress.com/2016/05/19/how-to-deploy-alfresco-using-docker-in-3-minutes/

With best regards,

from docker-alfresco.

DamienMure avatar DamienMure commented on July 26, 2024

I would like you to remove my name from your blog and just keep a link to this thread.

I told you how to bypass the issue, but it's not something that should be done for a production environment for many reasons I won't explain here.
You should tell on your blog that is for a ProofOfConcept, not to be used in Production.
(btw, many interesting things to read here to tune alfresco's config/arch: https://docs.alfresco.com/4.2/concepts/master-gs-intro.html)

This thread is dedicated to the issue, so I won't write any more about something else.

Thx.

from docker-alfresco.

mustafa-qamaruddin avatar mustafa-qamaruddin commented on July 26, 2024

Dear Damien,

  • I have removed your name.
  • I left a link to this thread.
  • I added a note that this was only a proof of concept.

Thank you for your help.

P.S. If you may advise what should be used in production on a separate thread if possible, I'd be grateful.

from docker-alfresco.

gui81 avatar gui81 commented on July 26, 2024

I have updated this to bootstrap the data on initial install if you are mounting volumes. Try out the latest version and see if that works better for you.

Yes, this is less than ideal for production use. I don't believe Alfresco is exactly well suited for running in a container in the first place, since it requires several services to be running. It can be done, but a better deployment would not use supervisor and instead run the Docker recommended way, i.e. one service per container. There are many other considerations as well, depending on your definition of production. Nevertheless, we do run with this version in a lab setting to share documents on a very small scale instead of passing DVDs around with data.

from docker-alfresco.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.