[Dspace-tech] "Community does not exist" error on Mac OS 10.5 DSpace install

8 views
Skip to first unread message

Kurzenberger, Eric

unread,
Aug 25, 2015, 12:30:31 PM8/25/15
to DSpac...@lists.sourceforge.net
Hello,

I just set up an installation of DSpace 1.5.1 on Mac OS 10.5.6, and I'm getting some errors:

When I run the CreateAdministrator command per the documentation, I get the following response:

"Exception in thread "main" java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1127)
at java.util.regex.Matcher.reset(Matcher.java:284)
at java.util.regex.Matcher.<init>(Matcher.java:205)
at java.util.regex.Pattern.matcher(Pattern.java:879)
at org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:475)
at org.dspace.storage.rdbms.DatabaseManager.find(DatabaseManager.java:445)
at org.dspace.eperson.Group.find(Group.java:695)
at org.dspace.administer.CreateAdministrator.createAdministrator(CreateAdministrator.java:232)
at org.dspace.administer.CreateAdministrator.negotiateAdministratorDetails(CreateAdministrator.java:209)
at org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:113)"

Then, when I go to http://localhost:8080/dspace, I get a 404 page saying the requested resource (/dspace) is not available. My Tomcat 5.5.27 installation appears to be fine. And when I go to http://localhost:8080/jspui, I get the main Dspace page with an Internal System Error message; the dspace log reports the error "relation 'community' does not exist."

I've included a snippet of the log with this email. I'm using Java version 1.5.0_16. Any help would be greatly appreciated.

Cheers,

Eric Kurzenberger
Digital Media Coordinator
Yale School of Architecture
Yale University

dspace_log.txt

Kim Shepherd

unread,
Aug 25, 2015, 12:30:33 PM8/25/15
to Kurzenberger, Eric, DSpac...@lists.sourceforge.net
Hi Eric,

Did you build with "ant fresh_install" after you'd compiled? This ant build target populates the database with the tables/sequences DSpace expects to find... if you've deployed the apps some other way you might find you're still sitting on an empty Dspace database.

Cheers,

Kim.

Kurzenberger, Eric

unread,
Aug 25, 2015, 12:30:36 PM8/25/15
to Kim Shepherd, DSpac...@lists.sourceforge.net
So, I restarted the postgresql server, and after doing so, I was able to run "ant fresh_install" successfully. I now get the initial "Dspace is live!" page when I go to http://localhost:8080/jspui/. I still get the 404 "resource (/dspace) is unavailable" page when going to http://localhost:8080/dspace for some reason, but I don't know if that's a symptom of further problems or not.

Cheers,

Eric

Kurzenberger, Eric

unread,
Aug 25, 2015, 12:30:36 PM8/25/15
to Kim Shepherd, DSpac...@lists.sourceforge.net
Hi Kim,

Thanks for the response. I believe I had done this before, but as part of my troubleshooting, I recreate the dspace directory and database, generated the installation package, and attempted to run "ant fresh_install" again, I got:

"BUILD FAILED: /usr/local/dspace-1.5.1-release/dspace/target/dspace-1.5.1-build.dir/build.xml:380: Java returned: 1"

I've attached the full response I received as a text file.

Thanks for all your help.

Eric


On 3/5/09 4:49 PM, "Kim Shepherd" <ki...@waikato.ac.nz> wrote:

fresh_install_error.txt

Kim Shepherd

unread,
Aug 25, 2015, 12:30:38 PM8/25/15
to Kurzenberger, Eric, DSpac...@lists.sourceforge.net
Hi Eric,

This time, Dspace was unable to connect to the database...
(slightly surprising, I would have assumed by your previous error that Dspace had connected to the DB but just couldn't query 'community' -- however, technically that's still true, we just never saw the actual pgsql error)
Please check [dspace]/config/dspace.cfg and just make sure that the hostname, username and password are correct for your PostgreSQL database, and that pg_hba.conf (in your postgresql data or config dir) is allowing the appropriate host/user to connect to the Dspace database in the appropriate method.

I probably should have reminded to make up existing configs, etc. before running fresh_install, and that [dspace-source]/dspace/config/dspace.cfg is the safest place to keep your local changes.

Cheers,

Kim


> -----Original Message-----
> From: Kurzenberger, Eric [mailto:eric.kur...@yale.edu]
> Sent: Friday, 6 March 2009 11:54 a.m.
> To: Kim Shepherd; DSpac...@lists.sourceforge.net
> Subject: Re: [Dspace-tech] "Community does not exist" error on Mac OS
> 10.5DSpace install
>

Kim Shepherd

unread,
Aug 25, 2015, 12:30:39 PM8/25/15
to Kurzenberger, Eric, DSpac...@lists.sourceforge.net
Ah, that sounds better.
Your main webapp is called 'jspui', 'dspace' was the default name of the JSPUI webapp in 1.4, but this is no longer the case in 1.5
If you want /dspace to stay in the base URL, it's a simple case of renaming the jspui webapp before/while deploying to Tomcat.

So - nothing to worry about, /jspui is the one you want by default anyway.

Cheers,

Kim


> -----Original Message-----
> From: Kurzenberger, Eric [mailto:eric.kur...@yale.edu]
> Sent: Friday, 6 March 2009 12:07 p.m.
> To: Kim Shepherd; DSpac...@lists.sourceforge.net

Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]

unread,
Aug 25, 2015, 12:30:56 PM8/25/15
to Kurzenberger, Eric, Kim Shepherd, DSpac...@lists.sourceforge.net
Is it possible that your postmaster is not running?? The error
indicates the connection to the database is being refused and is one I
get if the postmaster (postgreSQL) is not running.

-----Original Message-----
From: Kurzenberger, Eric [mailto:eric.kur...@yale.edu]
Sent: Thursday, March 05, 2009 5:54 PM
To: Kim Shepherd; DSpac...@lists.sourceforge.net
Reply all
Reply to author
Forward
0 new messages