Pb d'installation PostGreSQL

cancel
Showing results for 
Search instead for 
Did you mean: 
red_hat
Member II

Re: Pb d'installation PostGreSQL

est quand j'ai fait http://127.0.0.1:8080/share
il me donne la page d'authentification ,
je tappe comme login : alfresco
mot de passe : alfresco

il m'a afficher ce message  d'erreur:

Failed to Login
The remote server may be unavailable or your authentication details have not been recognized.

merci  Smiley Indifferent
bertrandf
Active Member

Re: Pb d'installation PostGreSQL

Si je résume la démarche à suivre (que je n'ai pas testée) :

1- Télécharger le module postgresql-3.2-community.amp Pour télécharger le module directement.

2- Installer le module
2.1- Placer le module dans le dossier /amps/ à la racine de votre Alfresco
2.2- Arrêter votre Alfresco (./alfresco.sh stop)
2.3- Exécuter le script apply_amps.sh

3- Copier la jar (postgresql-8.X-XXX.jdbc3.jar) dans le dossier /tomcat/lib/
https://olex.openlogic.com/package_versions/download/6245?package_version_id=1680&path=openlogic%2Fp...

4- Créer une base de données alfresco dans PostgreSql :
CREATE DATABASE alfresco WITH ENCODING 'UTF8';

5- Créer un utilisateur alfresco (avec comme mot de passe alfresco) :
CREATE USER alfresco WITH PASSWORD 'alfresco';

6- Lui affecter des droits (je ne suis pas sûr de la commande) :
GRANT ALL privileges on database alfresco to alfresco;

7- Editer le fichier alfresco-global.properties
7.1- Commenter les lignes concernant MySQL :
# MySQL connection
#db.driver=org.gjt.mm.mysql.Driver
#db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}
#hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

7.2- Configurer l'accés à la base PostgreSql
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=5432

db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://${db.host}:${db.port}/${db.name}
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.query.substitutions=true TRUE, false FALSE

8- Vérifier que le fichier de configuration de postgresql (pg_hba.conf pour postgres 8.1.3) contient :
host    all    all    127.0.0.1/32    password

9- Do not forget to change the ownership of the directory tree specified in custom-data-location.properties to be owned by the user running the alfresco server.

10- Démarrer l'Alfresco

PS : Il est inutile de poster plusieurs messages à la suite.
PS2 : C'est normal que vous ayez des erreurs 404 puisque votre Alfresco n'a pas démarré…
red_hat
Member II

Re: Pb d'installation PostGreSQL

toujours la méme erreur
404
quand j'ai tapper ./alfresco.sh start voici ce qu'il ma afficher



root@afma-desktop:/opt/Alfresco# ./alfresco.sh start
Using CATALINA_BASE:   /opt/Alfresco/tomcat
Using CATALINA_HOME:   /opt/Alfresco/tomcat
Using CATALINA_TMPDIR: /opt/Alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.10/

est quand j'ai taper .alfresco.sh stop voici ce qu'il ma afficher


root@afma-desktop:/opt/Alfresco# ./alfresco.sh stop
Using CATALINA_BASE:   /opt/Alfresco/tomcat
Using CATALINA_HOME:   /opt/Alfresco/tomcat
Using CATALINA_TMPDIR: /opt/Alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.10/
/opt/Alfresco/tomcat/bin/catalina.sh: 357: /usr/lib/jvm/java-6-sun-1.6.0.10//bin/java: not found
bertrandf
Active Member

Re: Pb d'installation PostGreSQL

toujours la méme erreur 404

C'est pas l'erreur 404 qui importe mais les erreurs présentes dans vos fichiers de log (notamment alfresco.log).

Avez-vous suivi la démarche que j'ai décrite ci-dessus ou bien celles des liens que je vous ai fourni?
Si oui, quels points vous pose ou vous ont posés problème?

C'est la première fois que vous utilisez Alfresco ou avez-vous déjà utilisé des versions antérieures (3Stable, 2.1, …)?


quand j'ai tapper ./alfresco.sh start voici ce qu'il ma afficher
Après avoir fait un ./alfresco.sh start, tapez la commande :
tail -f tomcat/logs/catalina.out
pour afficher le déroulement du démarrage de votre Alfresco
red_hat
Member II

Re: Pb d'installation PostGreSQL

quand je lance alfresco dans la page d'apache tomcat6
http://127.0.0.1:8080/manager/html/start?path=/alfresco
voila ce qu'il ma afficher:
****************************
Messages:
FAIL - Application at context path /alfresco could not be started
FAIL - Encountered exception java.lang.OutOfMemoryError: PermGen space
red_hat
Member II

Re: Pb d'installation PostGreSQL

j'ai taper la commande tail -f tomcat/logs/catalina.out
voila le resultat


INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Aug 6, 2009 11:26:37 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 6, 2009 11:26:37 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Aug 6, 2009 11:57:17 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Aug 6, 2009 11:57:22 AM org.apache.tomcat.util.modeler.Registry registerComponent
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/alfresco,J2EEApplication=none,J2EEServer=none
/opt/Alfresco/tomcat/bin/catalina.sh: 357: /usr/lib/jvm/java-6-sun-1.6.0.10//bin/java: not found

oui c'est la première fois que je travaille avec alfresco
:?
bertrandf
Active Member

Re: Pb d'installation PostGreSQL

A tout hasard avez-vous correctement défini votre variable JAVA_HOME?
Si la réponse est non, vous pouvez ajouter dans alfresco.sh et également dans apply_amps.sh, au début des scripts, la ligne :
export JAVA_HOME=Path vers java
Par exemple :
export JAVA_HOME=/opt/java
red_hat
Member II

Re: Pb d'installation PostGreSQL

voici le fichier alfresco.sh :
*******************************

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.10/"
ALF_HOME=/opt/Alfresco
cd "$ALF_HOME"
APPSERVER="${ALF_HOME}/tomcat"

# Set any default JVM values
export JAVA_OPTS='-Xms128m -Xmx1024m-server'
export JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote"
# Following only needed for Sun JVMs before to 1.5 update 8
export JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions"
#
if [ "$1" = "start" ]; then
  "${APPSERVER}/bin/startup.sh"
#  if [ -r ./virtual_start.sh ]; then
#    sh ./virtual_start.sh
#  fi
#  if [ -r "$ALF_HOME"/start_oo.sh ]; then
#    sh "$ALF_HOME"/start_oo.sh
#  fi
elif [ "$1" = "stop" ]; then
  "${APPSERVER}/bin/shutdown.sh"
#  if [ -r ./virtual_start.sh ]; then
#    sh ./virtual_stop.sh
#  fi
#  if [ -r "$ALF_HOME"/start_oo.sh ]; then
#    killall soffice.bin
#  fi
fi

est voila le fichier apply_amps.sh


#!/bin/sh
# ——-
# Script for apply AMPs to installed WAR
# ——-
ALF_HOME=/opt/Alfresco
export JAVA_HOME="/usr"
export PATH=$PATH;$JAVA_HOME/bin
cd "$ALF_HOME"
APPSERVER="$ALF_HOME"/tomcat
echo "This script will apply all the AMPs in ./amps to the alfresco.war file in $APPSERVER/webapps"
echo "Press control-c to stop this script . . ."
read -p "Press any other key to continue . . ."
java -jar bin/alfresco-mmt.jar install ./amps $APPSERVER/webapps/alfresco.war -directory
java -jar bin/alfresco-mmt.jar list $APPSERVER/webapps/alfresco.war
echo "About to clean out tomcat/webapps/alfresco directory and temporary files…"
echo "Press control-c to stop this script . . ."
read -p "Press any other key to continue . . ."
rm -rf $APPSERVER/webapps/alfresco
sh $ALF_HOME/bin/clean_tomcat.sh
bertrandf
Active Member

Re: Pb d'installation PostGreSQL

Et si vous enlevez le dernier slash dans alfesco.sh :

Remplacer
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.10/"
par
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.10"

Sinon, avez-vous réussi à installer le module postgresql-3.2-community.amp avec un apply_amps ou avez-vous eu des erreurs?
red_hat
Member II

Re: Pb d'installation PostGreSQL

quand je relance :
********************    
http://127.0.0.1:8080/alfresco/

voici l'erreur:
***—-****–**

HTTP Status 503 - This application is not currently available

type Status report

message This application is not currently available

description The requested service (This application is not currently available) is not currently available.
Apache Tomcat/6.0.18