Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Installation and Troubleshooting FAQs

Anchor
1
1
How do I install Roller? #1

See the Roller Installation Guide, available from the documentation link on the Roller website.

Anchor
2
2
What platforms are supported? #2

"Supported" might be the wrong word because we don't really offer support, but we can tell you what platforms are known to work.

Roller 4 worked on Tomcat 5, Tomcat 6, Sun Web Server, Glassfish 2, MySQL, Derby and PostgreSQL. Some users we able to run on Oracle and DB2 with tweaks to the database creation scripts.

Roller 5 will work on Tomcat 6 and 7, Glassfish 3.0 and 3.1, JBoss AS 6 and WebSphere 8. It should also work with MySQL, Derby, Oracle and DB2 databases.

Tomcat is probably the safest platform for Roller because that's what most people use.

Anchor
8
8
How do I set up an administrative user for my Roller install? #8

The very first user you create will be an admin user. That initial user can then grant and revoke admin rights from any other user.

Anchor
10
10
Why does MySQL reject connections from Roller? #10

If Roller fails to start and you see a message like the one below in your log files (such as the Tomcat catalina.out log file), then you may not have MySQL set up for networking. See this page for more information http://dev.mysql.com/doc/mysql/en/Access_denied.html.

No Format
 
MESSAGE: Data source rejected establishment of connection,  
         message from server: "Host 'localhost.example.com' 
         is not allowed to connect to this MySQL server"
MESSAGE: Attempted reconnect 3 times. Giving up.
MESSAGE: java.sql.SQLException

Anchor
11
11
I get an "Illegal mix of collations" error from MySQL. What's wrong? #11

You probably missed the instructions to set up UTF-8 as the default character encoding. Check out these instructions.

Anchor
12
12
What's this Cannot create JDBC driver of class ' ' for connect URL 'null' all about? #12

It's a long story. Read it here.

Anchor
13
13
Help! I'm seeing "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1" #13

This appears to be due to a MySQL and Connector/J bug that occurs if you use the MySQL 4.1.X server with Connector/J 3.1.X drivers. We recommend that you use the Connector/J 3.0.16 (or later 3.0.X series) drivers with MySQL 4.1.X to avoid this. You can download them from the MySQL site. Drop the jar in your CATALINA_HOME/common/lib and remove any 3.1.X drivers that you have there.

An alternate workaround that will allow you to keep the Connector/J 3.1.X drivers is to disable use of server-side prepared statements by setting the additional property useServerPrepStmts=false in both of the MySQL JDBC URLs in the context configuration.

Roller user Lee Gwun Wai has reported on the roller-user mailing list that this can also occur in the typical ISP-hosted situation where one's database is using UTF-8 but the overall server character set is something other than UTF-8. He suggests dropping the useUnicode=true from all JDBC URLs. We have still only seen this reported with the Connector/J 3.1.X drivers.

Anchor
14
14
Why do I sometimes see a log message "PingQueueProcessor:processQueue | WARNING Skipping current ping queue processing round because we cannot yet determine the site's absolute context url". What does this mean and do I need to do anything about it? #14

This warning appears if the ping queue processor task runs before there have been any requests made to the server and you have not set an explicit site URL in the configuration.

Due to a quirk/limitation of the Servlet API, the webapp is unable to determine the absolute context url unless it is set explicitly in the configuration or until after the first request. It needs the full site url to determine the urls to put in outbound pings. If it can't determine it, it logs this and skips one round of ping processing.

The ping queue processor task runs every five minutes by default. You'll see one of these each time the ping queue task runs until at least one request has been received by Roller.

Most production environments will never see this. You might see this in trial and development if start the server and just let it sit there for awhile. You shouldn't see them after you start doing stuff.

You don't have to do anything about it; things should be fine as soon as your server starts to see any activity. However, you can avoid the message by setting your absolute site url explicitly in "Absolute URL to Site" field in the configuration under "Admin | Configuration".

Anchor
15
15
When I use the "remember me" feature to login, Roller sometime just hangs. How do I fix this? #15

This has been reported on some Linux installations. Koji Lin suggested the gist of the following solution on the roller-user mailing list. The is caused by the java.security.SecureRandom class. On Linux environments it is often set up to use /dev/random as a source of entropy. Reading from the /dev/random device will block when there is not enough entropy available to satisfy a read request. Most linux systems now have /dev/urandom, which will not block and provides adequate security for most sites.

You can set your JRE to use /dev/urandom for all applications by editing the JAVA_HOME/jre/lib/security/java.security file. You can use it for Tomcat only by adding the following Java system property definition on the command line in the Tomcat startup script that invokes Java

No Format
-Djava.security.egd=file:/dev/urandom

or setting this in the JAVA_OPTS environment variable before invoking the Tomcat startup script. You may also want to refer to the Sun bug on this issue

Anchor
16
16
I'm seeing "java.lang.StringIndexOutOfBoundsException: String index out of range: 23". How do I fix it? #16

If you're using PostgreSQL, and you see a stack trace starting like the one below, then this is due to a (well-known) bug in older PostgreSQL JDBC Drivers.

No Format
java.lang.StringIndexOutOfBoundsException: String index out of range: 23
java.lang.String.charAt(String.java:444)
org.postgresql.jdbc2.ResultSet.toTimestamp(ResultSet.java:1653)
org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:398)
org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:617)
...

You need to upgrade to the latest compatible JDBC drivers.

Anchor
17
17
How do I configure roller to use LDAP user authentication #17

It is possible to setup roller to use LDAP Authentication for users created in roller DB. Please check LDAP and SSP FAQ page for more information.

Anchor
18
18
I've set up my MailSession in the context xml file, but I'm getting a ClassNotFoundException or NoClassDefFoundError #18

Check these things:

  • You've downloaded the Java Mail API jars (mail.jar and activation.jar) and placed them in
    Tomcat's common/lib (and not in Roller's WEB-INF/lib).
  • If you're using Tomcat 5.5.20 through 5.5.23, you will probably need the patch for this Tomcat bug