Doh! I didn't export FEDORA_HOME in my tomcat init.d script. Added, restarted, 
and import worked just fine.

Thanks for the friendly reminder to check ones log ;)

-nruest


On 2011-01-21, at 5:28 AM, Steve Bayliss wrote:

> Nick, Scott
> 
> I've tried this locally, using the settings that Nick provided (though I'm
> using embedded Derby, not MySQL).
> 
> It worked fine - this is ingesting on the same machine as Fedora is
> installed.  So I suspect it is a policy issue.  Nick - you said you ingested
> using 'hostname'; did you use the text 'hostname' or the actual hostname as
> per your install.properties?  (FYI I used localhost, but then I installed
> using localhost as the hostname).
> 
> As Scott suggests, I'd take a look at the Fedora and Tomcat logs to see if
> these shed any light.  And the ingest log also.
> 
> Steve
> 
> 
> 
>> -----Original Message-----
>> From: Scott Prater [mailto:pra...@wisc.edu] 
>> Sent: 20 January 2011 17:57
>> To: Support and info exchange list for Fedora users.
>> Subject: Re: [fcrepo-user] ingest demos - 41 out of 41 failed
>> 
>> 
>> Any useful messages in your fedora.log, or catalina.out (if you're 
>> running under Tomcat)?
>> 
>> -- Scott
>> 
>> Nick Ruest wrote:
>>> Hi Scott,
>>> 
>>> I've tried ingesting with; 'localhost', '127.0.0.1', 
>> 'hostname' - none have worked. I also tried your solution 
>> outlined below, and that didn't work either. I'm still 
>> getting 41 out of 41 failed, with the (401)Unauthorized error. 
>>> 
>>> I also tried redeploying and marking the install option for 
>> xamcl policies as false. Restarted Fedora, and still the same 
>> thing. :(
>>> 
>>> -nruest
>>> 
>>> On 2011-01-20, at 9:02 AM, Scott Prater wrote:
>>> 
>>>> I see that you have xacml policies enabled... are you 
>> ingesting with 
>>>> localhost, or your host name?  By default, XACML denies any API-M 
>>>> operations if you're not running the command over the 
>> localhost interface.
>>>> 
>>>> See 
>>>> 
>> https://wiki.duraspace.org/display/FCR30/XACML+Policy+Enforcem
>> ent#XACMLPolicyEnforcement-DEFAULTPOLICIES 
>>>> for more information.  In short, you'll want to copy 
>>>> 
>> $FEDORA_HOME/data//fedora-xacml-policies/repository-policies/d
>> efault/deny-apim-if-not-localhost.xml 
>>>> up to 
>>>> 
>> $FEDORA_HOME/data//fedora-xacml-policies/repository-policies/a
>> llow-apim-myhost.xml, 
>>>> edit it to allow API-M operations from your whitelist of 
>> IPs, delete 
>>>> 
>> $FEDORA_HOME/data//fedora-xacml-policies/repository-policies/d
>> efault/deny-apim-if-not-localhost.xml, 
>>>> and restart fedora (or reload the policies).
>>>> 
>>>> -- Scott
>>>> 
>>>> 
>>>> Nick Ruest wrote:
>>>>> Hi Steve,
>>>>> 
>>>>> Fedora ingest - cd $FEDORA_HOME/client/bin 
>> ./fedora-ingest-demos.sh 
>>>>> hostname 8080 fedoraAdmin mypass http
>>>>> 
>>>>> $FEDORA_HOME/install/install.properties:
>>>>> 
>>>>> #Install Options
>>>>> #Wed Jan 19 14:21:25 EST 2011
>>>>> ri.enabled=false
>>>>> messaging.enabled=false
>>>>> apia.auth.required=false
>>>>> database.jdbcDriverClass=com.mysql.jdbc.Driver
>>>>> ssl.available=false
>>>>> 
>> database.jdbcURL=jdbc\:mysql\://localhost/dev_fedora?useUnicod
>> e\=true&characterEncoding\=UTF-8&autoReconnect\=true 
>>>>> 
>>>>> database.password=xxxxxxxx
>>>>> database.mysql.driver=included
>>>>> database.username=fedora_user
>>>>> fesl.authz.enabled=false
>>>>> tomcat.shutdown.port=8005
>>>>> deploy.local.services=true
>>>>> xacml.enabled=true
>>>>> database.mysql.jdbcDriverClass=com.mysql.jdbc.Driver
>>>>> tomcat.http.port=8080
>>>>> fedora.serverHost=islandora.mcmaster.ca
>>>>> database=mysql
>>>>> database.driver=included
>>>>> fedora.serverContext=fedora
>>>>> llstore.type=akubra-fs
>>>>> tomcat.home=/opt/tomcat6
>>>>> fesl.authn.enabled=true
>>>>> fedora.home=/opt/fedora
>>>>> 
>> database.mysql.jdbcURL=jdbc\:mysql\://localhost/dev_fedora?use
>> Unicode\=true&characterEncoding\=UTF-8&autoReconnect\=true 
>>>>> 
>>>>> install.type=custom
>>>>> servlet.engine=existingTomcat
>>>>> fedora.admin.pass=xxxxxxxxx
>>>>> 
>>>>> thanks!
>>>>> 
>>>>> -nruest
>>>>> 
>>>>> On 11-01-20 07:03 AM, Steve Bayliss wrote:
>>>>>> Hi Nick
>>>>>> 
>>>>>> - how are you doing the ingest?
>>>>>> - how have you got Fedora configured (auth required for 
>> api-a, api-m, 
>>>>>> ssl,
>>>>>> etc - maybe you could post a 
>> $FEDORA_HOME/install/install.properties, 
>>>>>> with
>>>>>> any passwords suitable obfuscated).
>>>>>> 
>>>>>> Steve
>>>>>> 
>>>>>>> -----Original Message-----
>>>>>>> From: Nick Ruest [mailto:rue...@mcmaster.ca]
>>>>>>> Sent: 20 January 2011 11:54
>>>>>>> To: fedora-commons-users@lists.sourceforge.net
>>>>>>> Subject: [fcrepo-user] ingest demos - 41 out of 41 failed
>>>>>>> 
>>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> I'm in the process of setting up a dev environment for 
>> fedora (3.4.1)
>>>>>>> and islandora at the moment. I have fedora up and running
>>>>>>> just fine, but
>>>>>>> I am absolutely stumped on trying to get the demo 
>> objects to ingest.
>>>>>>> I've been able to get them to ingest before on other 
>> setups, but I am
>>>>>>> getting: WARNING: 41 of 41 objects failed.  Check log.
>>>>>>> 
>>>>>>> Sample log output:
>>>>>>> <ingest-from-dir>
>>>>>>> <failed
>>>>>>> file="/opt/fedora/client/demo/foxml/local-server-demos/documen
>>>>>>> t-transform-demo/demo_XML_TO_HTMLDOC.xml">
>>>>>>>     (401)Unauthorized
>>>>>>> </failed>
>>>>>>> <failed
>>>>>>> file="/opt/fedora/client/demo/foxml/local-server-demos/documen
>>>>>>> t-transform-demo/obj_demo_14.xml">
>>>>>>>     (401)Unauthorized
>>>>>>> </failed>
>>>>>>> 
>>>>>>> I've double checked the username and password used against
>>>>>>> fedora-users.xml. Any suggestions?
>>>>>>> 
>>>>>>> thanks!
>>>>>>> 
>>>>>>> -nruest
>>>>>>> 
>>>>>> 
>> --------------------------------------------------------------
>> ---------------- 
>>>>>> 
>>>>>> Protect Your Site and Customers from Malware Attacks
>>>>>> Learn about various malware tactics and how to avoid 
>> them. Understand
>>>>>> malware threats, the impact they can have on your 
>> business, and how you
>>>>>> can protect your company and customers by using code signing.
>>>>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>>>> _______________________________________________
>>>>>> Fedora-commons-users mailing list
>>>>>> Fedora-commons-users@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>>>> 
>>>>> 
>> --------------------------------------------------------------
>> ----------
>>>>> 
>>>>> 
>> --------------------------------------------------------------
>> ----------------
>>>>> Protect Your Site and Customers from Malware Attacks
>>>>> Learn about various malware tactics and how to avoid 
>> them. Understand 
>>>>> malware threats, the impact they can have on your 
>> business, and how you 
>>>>> can protect your company and customers by using code signing.
>>>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>>> 
>>>>> 
>>>>> 
>> --------------------------------------------------------------
>> ----------
>>>>> 
>>>>> _______________________________________________
>>>>> Fedora-commons-users mailing list
>>>>> Fedora-commons-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>>> 
>>>> -- 
>>>> Scott Prater
>>>> Library, Instructional, and Research Applications (LIRA)
>>>> Division of Information Technology (DoIT)
>>>> University of Wisconsin - Madison
>>>> pra...@wisc.edu
>>>> 
>>>> 
>> --------------------------------------------------------------
>> ----------------
>>>> Protect Your Site and Customers from Malware Attacks
>>>> Learn about various malware tactics and how to avoid them. 
>> Understand 
>>>> malware threats, the impact they can have on your 
>> business, and how you 
>>>> can protect your company and customers by using code signing.
>>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>> _______________________________________________
>>>> Fedora-commons-users mailing list
>>>> Fedora-commons-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>> 
>>> 
>>> 
>> --------------------------------------------------------------
>> ----------------
>>> Protect Your Site and Customers from Malware Attacks
>>> Learn about various malware tactics and how to avoid them. 
>> Understand 
>>> malware threats, the impact they can have on your business, 
>> and how you 
>>> can protect your company and customers by using code signing.
>>> http://p.sf.net/sfu/oracle-sfdevnl
>>> _______________________________________________
>>> Fedora-commons-users mailing list
>>> Fedora-commons-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>> 
>> 
>> -- 
>> Scott Prater
>> Library, Instructional, and Research Applications (LIRA)
>> Division of Information Technology (DoIT)
>> University of Wisconsin - Madison
>> pra...@wisc.edu
>> 
>> --------------------------------------------------------------
>> ----------------
>> Protect Your Site and Customers from Malware Attacks
>> Learn about various malware tactics and how to avoid them. Understand 
>> malware threats, the impact they can have on your business, 
>> and how you 
>> can protect your company and customers by using code signing.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>> 
> 
> 
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
> February 28th, so secure your free ArcSight Logger TODAY! 
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

------------------------------------------------------------
Nick Ruest
Digital Strategies Librarian
Vice President - McMaster University Academic Librarians Association

McMaster University
Mills Memorial Library
1280 Main Street West
Hamilton, ON L8S 4L6
Phone: 905.525.9140 ext. 21276
Email: rue...@mcmaster.ca
http://library.mcmaster.ca/contact/ruest-nicholas
http://ruebot.net/
------------------------------------------------------------

"Revolution is not something fixed in ideology, nor is it something fashioned 
to a particular decade.  It is a personal process embedded in the human 
spirit." - Abbie Hoffman


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to