Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:esup:esup_socle_4_c6 [2014/07/22 20:29] procacci@tem-tsp.eu [git custom] |
docpublic:systemes:esup:esup_socle_4_c6 [2015/05/20 16:10] (current) procacci@tem-tsp.eu [build & config properties] |
| |
ensuite, faut-il appliquer ce patch : https://www.esup-portail.org/pages/viewpage.action?pageId=269090823 ? | ensuite, faut-il appliquer ce patch : https://www.esup-portail.org/pages/viewpage.action?pageId=269090823 ? |
| |
| ==== pb LC_COLLATE ==== |
| |
| suite a une mise a jour a chaud sur le container openvz, apres un redemrrage des services (tomcat, postgres ...) le portail ne marchait plus ! |
| |
| uPortal.log: |
| |
| <code> |
| [esup4] WARN [main] Jan/09 09:26:33,041 jdbc.TomcatDataSourceFactory.[] - Failed to register connection pool with MBeanServer. JMX information will not be available for: RawEventsDb |
| org.postgresql.util.PSQLException: FATAL: database locale is incompatible with operating system |
| Detail: The database was initialized with LC_COLLATE "fr_FR.UTF-8", which is not recognized by setlocale(). |
| Hint: Recreate the database with another locale or install the missing locale. |
| </code> |
| |
| cette erreure est expliquée sur http://serverfault.com/questions/491237/postgresql-9-2-invalid-locale-name-on-ubuntu-12-04 |
| |
| où la conclusion est : |
| |
| <code> |
| If PostgreSQL hasn't been restarted after the new locale has been created, that would be the reason. service postgresql restart should suffice. |
| This is presumably due to how locales are implemented in Linux libc. The new locales don't get seamlessly imported into the environment of already running processes. |
| </code> |
| |
| donc simplement en redemarrant la VM , tout repart sans soucis ! |
| |
| ==== acces BD ==== |
| |
ouverture acces BD en mode trust (ident par defaut n'autorise pas ) | ouverture acces BD en mode trust (ident par defaut n'autorise pas ) |
+environment.build.ldap.baseDn=dc=int-evry,dc=fr | +environment.build.ldap.baseDn=dc=int-evry,dc=fr |
+environment.build.ldap.userName=cn=mcibind,ou=system,dc=int-evry,dc=fr | +environment.build.ldap.userName=cn=mcibind,ou=system,dc=int-evry,dc=fr |
+environment.build.ldap.password=mcianony | +environment.build.ldap.password=secret |
environment.build.ldap.pooled=false | environment.build.ldap.pooled=false |
environment.build.ldap.uidAttr=uid | environment.build.ldap.uidAttr=uid |
</code> | </code> |
| |
| |
| |
| ===== group Pags ====== |
| |
| https://wiki.jasig.org/pages/viewpage.action?pageId=52953648 |
| |
| groups sur attributs utilisateur |
| |
| Rechercher les attributs utilisateur dans ldap, les attributs qu'on souhaite mapper pour chaque utilisateur dans ldap. |
| |
| <code> |
| [esup@esup4dev esup-uportal]$ diff /tmp/personDirectoryContext.xml /home/esup/esup-uportal/uportal-war/src/main/resources/properties/contexts/personDirectoryContext.xml |
| 161c161 |
| < <ref bean="uPortalLdapAttributeSource"/> |
| --- |
| > <ref bean="uPortalLdapAttributeSource"/> |
| 242c242 |
| < <!-- Rajout ci-dessous pour retirer le "Unrecognized Person" --> |
| --- |
| > |
| 246,247d245 |
| < <!-- AND NOT FOUND BEFORE ?? --> |
| < <property name="baseDN" value="${ldap.baseDn}" /> |
| 281,285d278 |
| < <entry key="departmentNumber"> <value>departmentNumber</value></entry> |
| < <entry key="Title"> <value>Title</value></entry> |
| < <entry key="employeeType"> <value>employeeType</value></entry> |
| < <entry key="eduPersonScopedAffiliation"> <value>eduPersonScopedAffiliation</value></entry> |
| < <entry key="eduPersonPrimaryOrgUnitDN"> <value>eduPersonPrimaryOrgUnitDN</value></entry> |
| [esup@esup4dev esup-uportal]$ cp /tmp/personDirectoryContext.xml /home/esup/esup-uportal/uportal-war/src/main/resources/properties/contexts/personDirectoryContext.xml |
| </code> |
| |
===== import user ===== | ===== import user ===== |
</code> | </code> |
| |
| ==== import group ==== |
| |
| <code> |
| [esup@esup4dev esup-uportal]$ ant data-import -Dfile=custom/uportal-war/src/main/data/tem-tsp/group_membership/Academics.group-membership.xml |
| [java] INFO [19:13,736] Importing Data from: custom/uportal-war/src/main/data/tem-tsp/group_membership/Academics.group-membership.xml |
| [java] INFO [19:13,867] Imported : file:/home/esup/esup-uportal/custom/uportal-war/src/main/data/tem-tsp/group_membership/Academics.group-membership.xml |
| [java] INFO [19:13,872] Imported : file:/home/esup/esup-uportal/custom/uportal-war/src/main/data/tem-tsp/group_membership/Academics.group-membership.xml |
| [java] INFO [19:13,944] Closing JPA EntityManagerFactory for persistence unit 'PortalDb' |
| [java] INFO [19:13,955] Closing JPA EntityManagerFactory for persistence unit 'AggrEventsDb' |
| [java] INFO [19:13,961] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' |
| |
| BUILD SUCCESSFUL |
| Total time: 22 seconds |
| |
| [esup@esup4dev esup-uportal]$ ant data-import -Dfile=custom/uportal-war/src/main/data/tem-tsp/group_membership/Applications.group-membership.xml |
| ... |
| [java] INFO [21:02,889] Importing Data from: custom/uportal-war/src/main/data/tem-tsp/group_membership/Applications.group-membership.xml |
| [java] INFO [21:03,036] Looking up bean 'counterStore' in ApplicationContext due to context not yet being initialized |
| [java] INFO [21:03,059] Imported : file:/home/esup/esup-uportal/custom/uportal-war/src/main/data/tem-tsp/group_membership/Applications.group-membership.xml |
| [java] INFO [21:03,064] Imported : file:/home/esup/esup-uportal/custom/uportal-war/src/main/data/tem-tsp/group_membership/Applications.group-membership.xml |
| [java] INFO [21:03,140] Closing JPA EntityManagerFactory for persistence unit 'PortalDb' |
| [java] INFO [21:03,152] Closing JPA EntityManagerFactory for persistence unit 'AggrEventsDb' |
| [java] INFO [21:03,160] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' |
| |
| BUILD SUCCESSFUL |
| Total time: 22 seconds |
| |
| </code> |
| |
| ==== import portlet ==== |
| |
| exemple avec portlet esup-filemanager |
| |
| <code> |
| [esup@esup4dev esup-uportal]$ ant data-import -Ddir=custom/uportal-war/src/main/data/tem-tsp/portlet-definition/ -Dpattern=esup-filemanager.portlet-definition.xml |
| ... |
| [java] INFO [19:54,195] Importing Data from: custom/uportal-war/src/main/data/tem-tsp/portlet-definition/ that matches esup-filemanager.portlet-definition.xml |
| [java] INFO [19:54,201] Scanning for files to Import from: custom/uportal-war/src/main/data/tem-tsp/portlet-definition |
| [java] INFO [19:54,244] Found 1 files to Import from: custom/uportal-war/src/main/data/tem-tsp/portlet-definition |
| [java] INFO [19:54,244] Importing 1 files of type <{https://source.jasig.org/schemas/uportal/io/portlet-definition}portlet-definition version="4.0"> |
| [java] INFO [19:54,329] Looking up bean 'referenceEntitySearcher' in ApplicationContext due to context not yet being initialized |
| [java] INFO [19:54,396] Looking up bean 'entityTypes' in ApplicationContext due to context not yet being initialized |
| [java] INFO [19:54,423] Looking up bean 'entityCachingService' in ApplicationContext due to context not yet being initialized |
| [java] INFO [19:54,477] Looking up bean 'authorizationService' in ApplicationContext due to context not yet being initialized |
| [java] INFO [19:54,545] Imported : esup-filemanager.portlet-definition.xml |
| [java] INFO [19:54,549] For a detailed report on the data import see /home/esup/esup-uportal/target/data-import-reports/data-import.txt |
| [java] INFO [19:54,606] Closing JPA EntityManagerFactory for persistence unit 'PortalDb' |
| [java] INFO [19:54,633] Closing JPA EntityManagerFactory for persistence unit 'AggrEventsDb' |
| [java] INFO [19:54,649] Closing JPA EntityManagerFactory for persistence unit 'RawEventsDb' |
| |
| BUILD SUCCESSFUL |
| Total time: 21 seconds |
| </code> |
====== Ancienne doc uPortal 3.2 a faire evoluer ... ====== | ====== Ancienne doc uPortal 3.2 a faire evoluer ... ====== |
| |