FAQ / Common Mistakes & Errors

PreviewService is crashing with 500:

org.edu_sharing.repository.server.authentication.AuthenticationFilterPreview.doFilter(AuthenticationFilterPreview.java:149)
 org.edu_sharing.repository.server.authentication.GuestFilter.doFilter(GuestFilter.java:65)
 org.edu_sharing.repository.server.authentication.ContextManagementFilter.doFilter(ContextManagementFilter.java:54)

You probably accessing your repository with an other domain than specified in your homeApplication.properties.xml. Make sure to specify the right domain and access it via this domain. If you access it via an other domain, your session cookie will be stored for this domain while the primary domain is not aware of this cookie and so will fail to login.

The user regulary gets logged out after clicking items

You probably did not set the property to allow multiple tickets per user. 

Open /opt/alfresco-5.0d/tomcat/shared/classes/alfresco-global.properties and add

authentication.ticket.useSingleTicketPerUser=false

After that, start alfresco again.

Postgres fails with invalid multibyte character for locale

Caused by: org.springframework.dao.DataIntegrityViolationException:
### Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: invalid multibyte character for locale
Hint: The server's LC_CTYPE locale is probably incompatible with the database encoding.
### The error may exist in alfresco/ibatis/#resource.dialect#/query-people-common-SqlMap.xml
### The error may involve alfresco.query.people.select_GetPeopleCannedQuery-Inline
### The error occurred while setting parameters
### SQL: select childNode.uuid as uuid from alf_child_assoc assoc join alf_node childNode on (childNode.id = assoc.child_node_id) left join alf_node_properties prop1 on (prop1.node_id = childNode.id and prop1.qname_id = 1) left join alf_node_properties prop2 on (prop2.node_id = childNode.id and prop2.qname_id = 1) left join alf_node_properties prop3 on (prop3.node_id = childNode.id and prop3.qname_id = 1) where assoc.parent_node_id = 1 and lower( prop1.string_value || ' ' || prop2.string_value || ' ' || prop3.string_value || ' ' || ' ') like lower('1') escape E'\\' order by prop1.string_value ASC
### Cause: org.postgresql.util.PSQLException: ERROR: invalid multibyte character for locale

Run dpkg-reconfigure locales and remove all small-written "uft8" options and just use "UTF-8" options (e.g. de_DE.UTF-8)

Umlauts or special characters display "?"

Run dpkg-reconfigure locales and remove all small-written "uft8" options and just use "UTF-8" options (e.g. de_DE.UTF-8)