Re: [Dspace-tech] DSpace Security

2013-06-05 Thread Francis Kayiwa
>
> If your servlet container (e.g. Tomcat) already has an account, that
> account should own the DSpace files.  You only need to create a user
> "dspace" if you are installing Tomcat from source and can't decide
> what to name its account.  (In that case I would name it "tomcat" and
> let the DSpace files be owned by "tomcat".  There's nothing
> significant about a user named "dspace".)
>
> Anyway, whatever owns Tomcat should own DSpace and vice versa.  If
> your distribution creates an account when installing Tomcat, use that
> for DSpace as well.  Trying to make it work with two separate accounts
> is painful and unnecessary, as is trying to rejigger Tomcat to run as
> a different account than what your package manager used to install it.

BOOM! *light bulb turns on!* Thanks a ton for this Mark. I learned
this "the hard way" and never did understand the motivation until now.
We happen to use a distro *cough cough* Red Hat ;-) that always
overwrote the permissions on upgrade and I can now safely purge my
"homegrown" scripts.


--
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Need checklist for changing server access hostname for a DSpace server

2013-02-24 Thread Francis Kayiwa
On Sun, Feb 24, 2013 at 8:23 AM, Sims, Richard B  wrote:
> We need to change the hostname of our DSpace server. I'm the operating 
> systems guy at our site (not a DSpace expert), assisting the DSpace 
> administrator in this task. I've searched extensively for a procedure or 
> checklist for doing this, but surprisingly have found nothing of substance.
>
> Through file system inspection, I perceive that the following physical 
> elements have to change:
> - Apache: httpd.conf: ServerName
> - DSpace:
>dspace.cfg: dspace.hostname, email addresses, 
> authentication.shib.logout-url
>dspace/handle-server/contactdata.dct: contact_email, org_name, contact_name

I learned this the hard way. You will need to contact handle.net to
re-generate a new sitebundle.zip for your site. handle.net does not
rely on DNS names and uses the IP address of the machine. So either
keep the same IP of the current machine if you are going to do this as
you describe above. Or contact them with the IP address of the new
machine.


Cheers,
./fxk

-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] changing host names

2012-12-17 Thread Francis Kayiwa
On Mon, Dec 17, 2012 at 9:10 AM, Shafer, Philip  wrote:
> We have been discussing changing the host name of our Dspace instance, I
> know this a pretty trivial thing to do as far as Tomcat and Dspace config
> files are concerned, how would this affect our Handle registration?  Do we
> need to contact the folks at the Handle.net to notify them of the change?

Yes you do. One thing to note (it may not matter for you but we
learned this the hard way) is that handle.net depends on IP and *NOT*
DNS.

It is otherwise mostly trivial process which the link that helix84@
gave you will walk you through.

./fxk

--
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] debugging import utility

2012-11-12 Thread Francis Kayiwa
On Fri, Nov 09, 2012 at 12:08:59PM -1000, Daniel Ishimitsu wrote:
> Hi Francis,
> 
> Try using the parent directory like "-s /home/kayiwa/etd/" and "-m
> /home/kayiwa/etd/etd20121106.map"
> 
> ./import -a -e kay...@uic.edu -t -c 123456789/8765 -s /home/kayiwa/etd/ -m
> /home/kayiwa/etd/etd20121106.map

Curious and at least I am getting the error below now.

java.sql.SQLException: bad_dublin_core schema=dc, type material
at org.dspace.content.Item.update(Item.java:1640)
at
org.dspace.content.InstallItem.installItem(InstallItem.java:160)
at
org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:774)
at
org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:608)
at
org.dspace.app.itemimport.ItemImport.main(ItemImport.java:500)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:212)
java.sql.SQLException: bad_dublin_core schema=dc, type material

Will see about getting to the bottom of that.

Cheers,
./fxk

> 
> 
> Daniel Ishimitsu
> Hamilton Library, DNS
> University of Hawaii at Manoa
> 
> 
> 
> On Thu, Nov 8, 2012 at 3:00 PM, Francis Kayiwa 
> wrote:
> 
> > On Fri, Nov 09, 2012 at 12:20:06AM +0100, helix84 wrote:
> > > On Thu, Nov 8, 2012 at 10:42 PM, Francis Kayiwa
> > >  wrote:
> > > > We are attempting to import items in the `Simple Archive Format`
> > >
> > > Hi Francis,
> > >
> > > while I don't know the answer, I'm sure the person who will answer you
> > > would want to know the DSpace version you're using.
> >
> > Good point. I am running 1.6.2
> >
> > >
> > > > imported. Is there a way to make the import utility run verbose? Any
> > > > other hints to help in troubleshooting what we could be missing?
> > >
> > > Unfortunately, there's no hint of a "verbose" flag:
> > >
> > >
> > https://wiki.duraspace.org/display/DSDOC18/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-ImportingItems
> >
> > Thanks again.
> >
> > ./fxk
> >
> > >
> > >
> > > Regards,
> > > ~~helix84
> > >
> > > Compulsory reading: DSpace Mailing List Etiquette
> > > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >
> > --
> > Give all orders verbally.  Never write anything down that might go into a
> > "Pearl Harbor File".
> >
> >
> > --
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_nov
> > ___
> > DSpace-tech mailing list
> > DSpace-tech@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >

-- 
f u cn rd ths, u r prbbly a lsy spllr.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] debugging import utility

2012-11-08 Thread Francis Kayiwa
On Fri, Nov 09, 2012 at 12:20:06AM +0100, helix84 wrote:
> On Thu, Nov 8, 2012 at 10:42 PM, Francis Kayiwa
>  wrote:
> > We are attempting to import items in the `Simple Archive Format`
> 
> Hi Francis,
> 
> while I don't know the answer, I'm sure the person who will answer you
> would want to know the DSpace version you're using.

Good point. I am running 1.6.2

> 
> > imported. Is there a way to make the import utility run verbose? Any
> > other hints to help in troubleshooting what we could be missing?
> 
> Unfortunately, there's no hint of a "verbose" flag:
> 
> https://wiki.duraspace.org/display/DSDOC18/Importing+and+Exporting+Items+via+Simple+Archive+Format#ImportingandExportingItemsviaSimpleArchiveFormat-ImportingItems

Thanks again.

./fxk

> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Give all orders verbally.  Never write anything down that might go into a
"Pearl Harbor File".

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] debugging import utility

2012-11-08 Thread Francis Kayiwa
G'day,

We are attempting to import items in the `Simple Archive Format`

They are properly exported from our vireo instance. We are running into
problems because the test and actual imports reveal no problems. (my
definition of problem being errors spit back at me)

These are the `tee'd` files.

./import -a -e kay...@uic.edu -t -c 123456789/8765 -s
/home/kayiwa/etd/1/ -m /home/kayiwa/etd/1/etd20121106.map**Test Run** -
not actually importing items.
Destination collections:
Owning  Collection: UIC Dissertations and Theses
Adding items from directory: /home/kayiwa/etd/1/
Generating mapfile: /home/kayiwa/etd/1/etd20121106.map
***End of Test Run***

and

$ ./import -a -e kay...@uic.edu -c 123456789/8765 -s /home/kayiwa/etd/1/
-m /home/kayiwa/etd/1/etd20121106.map
Destination collections:
Owning  Collection: UIC Dissertations and Theses
Adding items from directory: /home/kayiwa/etd/1/
Generating mapfile: /home/kayiwa/etd/1/etd20121106.map

The generated mapfile is empty and as you can guess nothing is actually
imported. Is there a way to make the import utility run verbose? Any
other hints to help in troubleshooting what we could be missing?

Cheers,
./fxk
-- 
The time for action is past!  Now is the time for senseless bickering.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] mod_proxy_ajp and Tomcat and 5xx errors

2012-11-05 Thread Francis Kayiwa
On Mon, Nov 5, 2012 at 3:36 AM, Vlastimil Krejcir  wrote:
>   Hi,
>
>   it's again and again - try to search dspace-tech archives, it has been
> already discussed. And don't be sad, this is probably not your fault and
> you're not alone who observer this behaviour. The solution is to have a
> "guard" testing periodically if Tomcat is running. In case Tomcat doesn't
> respond you need to restart it.
>
>   Have a nice day

Thanks. Since my monitor reports an average of every 20 or so minutes
I felt pretty sure it was something about my settings.

regards,
./fxk



>
>   Vlastik
>
> 
> Vlastimil Krejčíř
> Library and Information Centre, Institute of Computer Science
> Masaryk University, Brno, Czech Republic
> Email: krejcir (at) ics (dot) muni (dot) cz
> Phone: +420 549 49 3872
> ICQ: 163963217
> Jabber: kre...@jabber.org
> --------
>
>
> On Sun, 4 Nov 2012, Francis Kayiwa wrote:
>
>> Hey all
>>
>> I am wondering if anyone can help shed light on this. We have
>>
>> Red Hat Enterprise Linux Server release 6.3
>> Apache 2.2.15 (Red Hat package)
>> Tomcat (Apache Tomcat Version 6.0.36)
>> Apache forwards request via AJP
>>
>> We seem to encounter frequent crashes that remain unpredictable to me
>> at the moment. As best as I can determine Tomcat is not processing
>> these `fast enough` based on the errors in the Apache logs
>>
>> We keep seeing these errors
>>
>> [Sun Nov 04 03:16:09 2012] [error] proxy: AJP: failed to make
>> connection to backend: localhost
>> [Sun Nov 04 03:16:16 2012] [error] (111)Connection refused: proxy:
>> AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed
>> [Sun Nov 04 03:16:16 2012] [error] ap_proxy_connect_backend disabling
>> worker for (localhost)
>> [Sun Nov 04 03:16:16 2012] [error] proxy: AJP: failed to make
>> connection to backend: localhost
>>
>> Below are what I think are the pertinent parts of the config files
>> which I will gladly share on request.
>>
>> 
>> StartServers   8
>> MinSpareServers5
>> MaxSpareServers   20
>> ServerLimit  256
>> MaxClients   256
>> MaxRequestsPerChild  4000
>> 
>>
>> 
>>ServerName tld.domain.name
>>DocumentRoot /path/to/home
>>ErrorLog /var/log/httpd/error.log
>>CustomLog /var/log/httpd/access.log combined
>>
>>ProxyRequests Off
>>
>>ProxyPass  /Shibboleth.sso !
>>ProxyPass / ajp://localhost:8009/ max=256 retry=60
>>ProxyPassReverse / ajp://localhost:8009/
>> 
>>
>> > UIEncoding="UTF-8" tomcatAuthentication="false" enableLookups="false"
>> connectionTimeout="12" packetSize="22528" maxThreads="256" />
>>
>> Is there anything there that looks unreasonable? Any recommendations?
>> My (mis?)reading of the dspace documentation is that mod_proxy_ajp has
>> the most reliable results. It certainly is that way on all our dev
>> machines.
>>
>> regards,
>> ./fxk
>>
>> --
>> "Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
>> nights..." --Homer Simpson
>>
>>
>> --
>> LogMeIn Central: Instant, anywhere, Remote PC access and management.
>> Stay in control, update software, and manage PCs from one command center
>> Diagnose problems and improve visibility into emerging IT issues
>> Automate, monitor and manage. Do more in less time with Central
>> http://p.sf.net/sfu/logmein12331_d2d
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>



--
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] mod_proxy_ajp and Tomcat and 5xx errors

2012-11-04 Thread Francis Kayiwa
Hey all

I am wondering if anyone can help shed light on this. We have

Red Hat Enterprise Linux Server release 6.3
Apache 2.2.15 (Red Hat package)
Tomcat (Apache Tomcat Version 6.0.36)
Apache forwards request via AJP

We seem to encounter frequent crashes that remain unpredictable to me
at the moment. As best as I can determine Tomcat is not processing
these `fast enough` based on the errors in the Apache logs

We keep seeing these errors

[Sun Nov 04 03:16:09 2012] [error] proxy: AJP: failed to make
connection to backend: localhost
[Sun Nov 04 03:16:16 2012] [error] (111)Connection refused: proxy:
AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed
[Sun Nov 04 03:16:16 2012] [error] ap_proxy_connect_backend disabling
worker for (localhost)
[Sun Nov 04 03:16:16 2012] [error] proxy: AJP: failed to make
connection to backend: localhost

Below are what I think are the pertinent parts of the config files
which I will gladly share on request.


StartServers   8
MinSpareServers5
MaxSpareServers   20
ServerLimit  256
MaxClients   256
MaxRequestsPerChild  4000



ServerName tld.domain.name
DocumentRoot /path/to/home
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined

ProxyRequests Off

ProxyPass  /Shibboleth.sso !
ProxyPass / ajp://localhost:8009/ max=256 retry=60
ProxyPassReverse / ajp://localhost:8009/




Is there anything there that looks unreasonable? Any recommendations?
My (mis?)reading of the dspace documentation is that mod_proxy_ajp has
the most reliable results. It certainly is that way on all our dev
machines.

regards,
./fxk

--
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-11-01 Thread Francis Kayiwa
On Fri, Oct 26, 2012 at 3:18 PM, helix84  wrote:
> What's your version of DSpace, JDK, Tomcat, Maven and Ant?

Fixed this by using the upstream instead of the Redhat packaged
version of Tomcat. Future readers will keep their sanity by ditching
the

yum install

and using the binary from the Apache Tomcat.

Thanks for all suggestions. Will continue to be puzzled why one
identical machine works while another fails but I don't argue with
results.

./fxk




-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-26 Thread Francis Kayiwa
On Fri, Oct 26, 2012 at 1:13 PM, helix84  wrote:
> On Fri, Oct 26, 2012 at 8:05 PM, Francis Kayiwa
>  wrote:
>> Thanks again. I have to ask. You DO SLEEP!? Yes? :-)
>
> Every now and then when it's slow on dspace-tech I get bored and take
> a catnap :)
>
>>  ls -l /services/indigo/dspace/webapps/xmlui
>
> Your output looks about right. What DSpace version are you using?
>
>>> Also, you can try doing "mvn clean package" instead of "mvn package"
>>> and then redeploy (ant update).
>>
>> More on this...
>
> What I'm suggesting here (it's a a bit of a wild shot, actually) is
> that some problem might have occured while building DSpace. What this
> does is it cleans the source directory to get rid of old build
> results, then rebuilds DSpace webapps from source. Then you need to
> run ant update to deploy the webapps to a locations specified in
> dspace.cfg. Then try restarting Tomcat again.
>
> Apropos, what's your value of dspace.dir in dspace.cfg?

dspace.dir = /services/indigo/dspace

Thanks for your patience. No really. :-)

Same results sadly. I think it is time for a fresh attempt at deploying this.

./fxk

>
> Regards,
> ~~helix84



-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-26 Thread Francis Kayiwa
On Fri, Oct 26, 2012 at 12:35 PM, helix84  wrote:
> Can you send me the output of
> ls -l /services/indigo/dspace/webapps/xmlui

Thanks again. I have to ask. You DO SLEEP!? Yes? :-)

 ls -l /services/indigo/dspace/webapps/xmlui
total 76
drwxr-xr-x  4 tomcat tomcat  4096 Oct 25 11:32 aspects
drwxr-xr-x  2 tomcat tomcat  4096 Oct 25 11:32 common
-rwxr-xr-x  1 tomcat tomcat  6806 Oct 25 11:31 exception2html.xslt
drwxr-xr-x  2 tomcat tomcat  4096 Oct 25 11:32 i18n
drwxr-xr-x  3 tomcat tomcat  4096 Oct 25 12:46 META-INF
-rwxr-xr-x  1 tomcat tomcat 40636 Oct 25 11:31 sitemap.xmap
drwxr-xr-x  3 tomcat tomcat  4096 Oct 25 11:32 static
drwxr-xr-x 12 tomcat tomcat  4096 Oct 25 11:32 themes
drwxr-xr-x  6 tomcat tomcat  4096 Oct 26 06:01 WEB-INF


>
> Also, you can try doing "mvn clean package" instead of "mvn package"
> and then redeploy (ant update).

More on this...

./fxk

-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
The Windows 8 Center 
In partnership with Sourceforge
Your idea - your app - 30 days. Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-26 Thread Francis Kayiwa
On Fri, Oct 26, 2012 at 6:20 AM, helix84  wrote:
> The SEVERE messages are what you're after. E.g.:
>
> "Document base /services/indigo/dspace/webapps/oai does not exist or
> is not a readable directory"
>
> This means that Tomcat can't read the DSpace webapp, most likely
> because of a permission problem.
>
> 1) Make sure the path is correct
> 2) Make sure the whole dspace directory (/services/indigo/dspace/) is
> owned by the same user as Tomcat, e.g. say your user is "tomcat6" and
> group "tomcat6", then do "chown -R tomcat6:tomcat6
> /services/indigo/dspace/"

Strange this. It is owned by tomcat. I went as far as making the
permissions world writeable while trouble shooting and still get the
same results.

./fxk


-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
The Windows 8 Center 
In partnership with Sourceforge
Your idea - your app - 30 days. Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-26 Thread Francis Kayiwa
On Thu, Oct 25, 2012 at 4:44 PM, helix84  wrote:
> On Thu, Oct 25, 2012 at 11:38 PM, Francis Kayiwa
>  wrote:
>> and I attempted the second one with the same results. So yes I have
>> done both and you read that correctly.
>
> OK. Just pick one.

Done.

>
>> tail /var/log/tomcat6/catalina.out
>
> The output is too short. It indicates that you just stopped Tomcat. So
> delete the file, start Tomcat, wait until it's fully started (you can
> watch it using "tail -f /var/log/tomcat6/catalina.out"), then attach
> the whole file.

Indeed it is too short. A URI to the logs can be found here.

https://gist.github.com/3958191

Cheers,
./fxk


-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-25 Thread Francis Kayiwa
On Thu, Oct 25, 2012 at 4:30 PM, helix84  wrote:
> On Thu, Oct 25, 2012 at 11:19 PM, Francis Kayiwa
>  wrote:
>> No matter which of the following I go to oai, sword, jspui, xmlui I
>> get a 404 resource not found.
>
> Now we're getting somewhere!
>
> What's connectors do you have enabled in server.xml? Do you actually
> have a connector on port 8080?
>
>  ...
>
>
> I assume you do, otherwise this wouldn't work:
>
>> Tomcat starts. When I install tomcat6-webapps and rename ROOT.xml in
>> the contexts to _notROOT.xml it displays the "It Works" Tomcat page.
>
> So the problem would be that Tomcat is running, but for some reason
> doesn't give access to the DSpace webapps.
>
> Did you know that there are actually 2 ways to specify context? One is
> in server.xml and the other one is using so colled context fragments,
> xml files in Catalina/localhost/  Which approach are you using?
> Because you forst mentioned
>
>> We tried to enter the
> ...
>> directly on server.xml
>
> and then you mentioned ROOT.xml, which is one of the context
> fragments. The problem might be that you're trying to combine both.
>
> Also, there are 2 logs, one is the tomcat log (last log is always in
> catalina.out) and the other one is [dspace]/log/dspace.log. To debug
> why a webapp doesn't load you need to look at the Tomcat log. Try
> looking there again. If you can't make heads or tails of it, send the
> relevant part (after restart) as an attachment.

Sorry for not being clear. I followed the instruction in the manual
initially and placed the Contexts within server.xml

When it failed to work and while looking about I came across

http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg13335.html

and I attempted the second one with the same results. So yes I have
done both and you read that correctly. This is the result of my
catalina.out

tail /var/log/tomcat6/catalina.out
Oct 25, 2012 4:26:46 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sword]
has not been started
Oct 25, 2012 4:26:46 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/dspace-oai]
has not been started
Oct 25, 2012 4:26:46 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr]
has not been started
Oct 25, 2012 4:26:46 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has
not been started
Oct 25, 2012 4:26:46 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

./fxk

-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-25 Thread Francis Kayiwa
On Thu, Oct 25, 2012 at 4:06 PM, helix84  wrote:
> On Thu, Oct 25, 2012 at 10:58 PM, Francis Kayiwa
>  wrote:
>> Does it show anything at all when you enter the
>>> DSpace URLs? Is anything in the logs? What if you raise the log level
>>> to debug?
>>
>> heh! This is what I am looking for?
>
> You didn't answer the question. What do you see when you enter
> http://yourdspace.com:port/one_of_the_webapps ? A blank page?

No matter which of the following I go to oai, sword, jspui, xmlui I
get a 404 resource not found.


What if
> you telnet to that port?

I get Name or service not known on port 8080


 Connection refused? No HTTP response after
> you make a GET request? Response headers, but no body?
>
> I'm trying to find something here to hang on to.

wget --spider http://localhost:8080
Spider mode enabled. Check if remote file exists.
--2012-10-25 16:18:18--  http://localhost:8080/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
Remote file does not exist -- broken link!!!



>
>
> Sorry for not having provided the link just yet, but it may not be
> necessary depending on your answer to the previous questions.
>
> https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-TurningonDebugging(optional)

Thanks for this.

./fxk



-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-25 Thread Francis Kayiwa
On Thu, Oct 25, 2012 at 3:54 PM, helix84  wrote:
> On Thu, Oct 25, 2012 at 10:38 PM, Francis Kayiwa
>  wrote:
>> *the production one* [0] fails to work with dspace.
>
> Hi Francis,
> what exactly does "fails to work" mean?

Ideally I would like to see the Dspace Application but sorry for not
being clear.

You have to be more specific.
> Does Tomcat start?

Tomcat starts. When I install tomcat6-webapps and rename ROOT.xml in
the contexts to _notROOT.xml it displays the "It Works" Tomcat page.


Does it show anything at all when you enter the
> DSpace URLs? Is anything in the logs? What if you raise the log level
> to debug?

heh! This is what I am looking for?

>
>
> Did you enter the Context tags in the correct place, i.e. these tags?
> 
> 

Yes I did.

>
> Just thought I'll ask because I can't think of anything else.
>
>> The strange thing right now is I have an identical but currently down
>> machine that I was able to get running.
>
> Did you manage to get it running by putting Contexts into server.xml?
> Again, just asking.


I get the same error. Which makes me suspect that it is something I
have... but need to be shoved on how to debug tomcat to produce more
verbose logs.

./fxk

-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Contexts on Dspace and Apache Tomcat6

2012-10-25 Thread Francis Kayiwa
Hey all I have a stumper here. Mostly because only one of my machines
*the production one* [0] fails to work with dspace.

The scenario is:

We tried to enter the









directly on server.xml and it failed. We followed this well reasoned
argument against it and use the Contexts as highlighted here

http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg13335.html

and we still get the same results.

The strange thing right now is I have an identical but currently down
machine that I was able to get running. Thanks for sending me tips on
debugging tomcat (Redhat's yum version) which otherwise shows now
error except the


HTTP Status 404

description The requested resource () is not available.

./fxk
-- 
"Beer busts, beer blasts, keggers, stein hoists, A.A. meetings, beer
nights..." --Homer Simpson

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] dspace default statistics

2007-04-04 Thread Francis Kayiwa
In the default dspace installation, what exactly does the error below mean?

Passed log directory is not a directory

According to the install documentation. All one would have to do is
customize the perl scripts stat-general etc.,

My assumptions here are one is supposed to set the directory in
dstat.cfg to point to the location of the file

dspace.log -yes?

Certainly the original file seems to suggest that.

With that done the perl scripts will run. I am running this in dspace 1.3.n

thanks in advance.

./fxk

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech