Hi Caryn,
If you are going to use shell command ls for this purpose, I have a
suggestion to reduce manual editing:
ls --ignore=contents --ignore=dublin_core.xml > contents
Not every version of linux supports this switch. If your linux does, it
is possible to write a script to recursively run this command through
all sub-dirs. Then all contents files creation can be finished in a second.
What editor you are using to edit the contents files? IMHO, file
encoding is still the main suspect in the issue.
Best,
Allen Lam.
HKU Hub Administrator, http://hub.hku.hk
Caryn Neiswender wrote:
> Hi, Allen~
>
> Thanks for the tip! I actually did notice this was an issue with some
> of the contents files (I tried using a variety of methods to generate
> the contents file). In the end, the most effective method was to do ls
> >contents, then remove the contents and dublin_core.xml line (very
> time consuming for 1,027 items). However, this actually didn't solve
> the issue... It seems like quite a strange (and lurking) issue!
>
> I was on a deadline, so I figured out a way to complete the load
> without resolving the issue. Once I have a moment or two, I'll go
> back and see what I can do to actually fix the problem.
>
> Thanks again,
> Caryn
>
>
>
> -------- Original Message --------
> Subject: Re: [Dspace-tech] DSpace Import Issues
> From: Allen Lam <[email protected]>
> To: [email protected]
> Date: 2/18/2010 1:39 AM
>> Hi Caryn,
>>
>> I am not sure if it is helpful. Just give a pointer to let you check
>> against.
>>
>> From your description, the error could be caused by incorrect
>> character encoding in your file that is named as "contents".
>> Make sure this "contents" file is **plain text**, with ANSI/ASCII
>> contents and NOT saved in unicode or UTF-8 encoding.
>>
>> UTF-8 encoded text files have 3 extra bytes at the head and this
>> could cause problem for the import program to process correctly.
>>
>> Best,
>> Allen Lam.
>> HKU Hub Administrator, http://hub.hku.hk
>>
>>
>> Caryn Neiswender wrote:
>>
>>> Hello, All~
>>>
>>> I'm encountering a strange import issue, that I'm hoping someone on
>>> the list can help me track down.
>>> The command: /dspace/bin/import -a -e {email address} -c 10575/11 -s
>>> /dspace/import -m /dspace/import/test
>>> DSpace Version: 1.5.2
>>>
>>> When I run a test run, everything looks perfectly fine, and multiple
>>> items seem to be added. When I run it live, I keep getting "file not
>>> found". While the error message is the same, the system sometimes
>>> can't locate the contents file, sometimes the PDF, and sometimes the
>>> license. I do a ls on the directory, and all files are there (and
>>> non-blank).
>>> I have been able to load a few files, mostly through doing things
>>> like renaming the file (and adjusting the contents file),
>>> re-creating the contents file (either by hand, typing the file
>>> names, or using ls >contents, then removing the contents and
>>> dublin_core.xml lines). The system reads the metadata just fine -
>>> it just can't seem to find the files. I also checked ownership on
>>> the import directory - all directories and files are owned by dspace.
>>>
>>> Any help you can provide would be extremely appreciated!!!
>>> Thanks,
>>> Caryn
>>>
>>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>>> Caryn Neiswender
>>> Digital Projects Specialist
>>> UC Irvine Libraries
>>> (949) 824-9086
>>>
>>> Curiosity sends us out
>>> To a world both larger and smaller
>>> Than what we know and believe in
>>> With a passion for finding an answer
>>> Or at least understanding our questions.
>>> -Excerpt from Julia Alvarez's "Why I Am in Love with Librarians."
>>>
>>> ------------------------------------------------------------------------------
>>>
>>>
>>> SOLARIS 10 is the OS for Data Centers - provides features such as
>>> DTrace,
>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>> http://p.sf.net/sfu/solaris-dev2dev
>>> _______________________________________________
>>> DSpace-tech mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech