This may also help:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S08#Step_8.5_Setup_Tomcat_server_permissions


*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://scholar.sun.ac.za
http://bit.ly/goodir
http://library.sun.ac.za
http://za.linkedin.com/in/hiltongibson


On 31 March 2014 19:17, Stefanie Behnke <[email protected]> wrote:

> Dear Anja,
>
> after checking all subdirecteries and changing the access rights to
> "tomcat7" instead of "root" the uploading works.
>
> Thank you very much, I would not have found it out myself!
>
> Best regards
> Stefanie
>
> -----Ursprüngliche Nachricht-----
> Von: Anja Le Blanc [mailto:[email protected]]
> Gesendet: Montag, 31. März 2014 16:34
> An: Stefanie Behnke; [email protected]
> Betreff: Re: AW: AW: [Dspace-tech] Problem with bitstream upload
>
> Hi Stefanie,
>
> In the log4j.properties file add a line
> log4j.logger.org.dspace.storage.bitstore=DEBUG, A1
>
> That should change the log level for that java package only (after a
> restart
> of tomcat).
>
> You said the owner of the directory is tomcat7. Have you also checked that
> tomcat7 can read and write to all subdirectories of assetstore?
>
> Best regards,
> Anja
>
>
>
> On 31/03/2014 15:17, Stefanie Behnke wrote:
> > Dear Anja,
> >
> > thanks for your interest.
> >
> > a) assetstore.incoming is not set, so I think it is 0 (zero) and
> > corresponds to the 'assetstore.dir' above:
> > # Asset (bitstream) store number 0 (zero) assetstore.dir =
> > ${dspace.dir}/assetstore
> >
> > b) the owner of that directory is "tomcat7"
> >
> >> You could also switch to log4j to debug mode for package
> > org.dspace.storage.bitstore
> > How can I do this?
> >
> > Thanks again for your help.
> >
> > Best regards
> > Stefanie
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Anja Le Blanc [mailto:[email protected]]
> > Gesendet: Montag, 31. März 2014 15:44
> > An: Stefanie Behnke; [email protected]
> > Betreff: Re: AW: [Dspace-tech] Problem with bitstream upload
> >
> > Hi Stefanie,
> >
> > Well, the error simply said that it can't create a file.
> > At that point the code tries to create a file in the current assetstore.
> > Could you check in your dspace.cfg
> >       a) whether "assetstore.incoming" is set
> >       b) the location of assetstore.dir or asetstore.dir.[the number from
> > a)]
> >
> > Check the permission of that directory tree -- the tomcat user must be
> > able to access that.
> >
> > You could also switch to log4j to debug mode for package
> > org.dspace.storage.bitstore -- this would produce a line in dspace.log
> > with the info of where it tries do create the file:
> > log.debug("Local filename for " + sInternalId + " is
> > "+bufFilename.toString());
> >
> > That is all I could think of for that.
> >
> > Regards,
> > Anja
> >
> >
> > On 31/03/2014 13:56, Stefanie Behnke wrote:
> >> Dear Anja,
> >>
> >> error message on the screen:
> >> Internal System Error
> >>
> >> The system has experienced an internal error. Please try to do what
> >> you were doing again, and if the problem persists, please contact us
> >> so we can fix the problem.
> >>
> >> ------
> >> from the dspace log:
> >>
> >> 2014-03-31 14:41:52,827 INFO
> >> org.dspace.authenticate.LDAPAuthentication @
> >>
> >
> anonymous:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=
> 129.27.218.38:
> >> auth:attempting trivial auth of [email protected]
> >> 2014-03-31 14:41:52,953 WARN
> >> org.dspace.authenticate.LDAPAuthentication @
> >>
> >
> anonymous:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=
> 129.27.218.38:
> >> ldap_authentication:type=failed_auth
> >> javax.naming.AuthenticationException\colon; [LDAP\colon; error code
> >> 49
> >> - Invalid Credentials]
> >> 2014-03-31 14:41:52,953 INFO
> >> org.dspace.authenticate.PasswordAuthentication
> >> @
> >>
> >
> anonymous:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr=
> 129.27.218.38:
> >> authenticate:attempting password auth of [email protected]
> >> 2014-03-31 14:41:52,973 INFO
> >> org.dspace.authenticate.PasswordAuthentication
> >> @
> >> [email protected]:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr
> >> =
> >> 129.27 .218.38:authenticate:type=PasswordAuthentication
> >> 2014-03-31 14:41:52,976 INFO
> >> org.dspace.app.webui.servlet.PasswordServlet @
> >> [email protected]:session_id=C1E9A7CC860353716D89DBFFEBDEFDCF:ip_addr
> >> =
> >> 129.27
> >> .218.38:login:type=explicit
> >> 2014-03-31 14:41:53,003 INFO
> >> org.dspace.app.webui.servlet.MyDSpaceServlet @
> >> [email protected]:session_id=03F65560962C60325F4784644FF62FD5:ip_addr
> >> =
> >> 129.27
> >> .218.38:view_mydspace:
> >> 2014-03-31 14:42:22,390 INFO  org.dspace.content.Bitstream @
> >> [email protected]:session_id=03F65560962C60325F4784644FF62FD5:ip_addr
> >> =
> >> 129.27
> >> .218.38:update_bitstream:bitstream_id=6477
> >> 2014-03-31 14:42:22,390 INFO  org.dspace.content.Bundle @
> >> [email protected]:session_id=03F65560962C60325F4784644FF62FD5:ip_addr
> >> =
> >> 129.27
> >> .218.38:update_bundle:bundle_id=4273
> >> 2014-03-31 14:42:22,393 INFO  org.dspace.content.Item @
> >> [email protected]:session_id=03F65560962C60325F4784644FF62FD5:ip_addr
> >> =
> >> 129.27
> >> .218.38:update_item:item_id=4282
> >> 2014-03-31 14:42:31,039 WARN
> >> org.dspace.app.webui.servlet.InternalErrorServlet @
> >> :session_id=03F65560962C60325F4784644FF62FD5:internal_error:-- URL Was:
> >> http://129.27.218.243:8080/jspui/tools/edit-item
> >> -- Method: POST
> >> -- Parameters were:
> >>
> >> java.io.IOException: No such file or directory
> >>      at java.io.UnixFileSystem.createFileExclusively(Native Method)
> >>      at java.io.File.createNewFile(File.java:947)
> >>      at
> >> edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:486)
> >>      at
> >> org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamSt
> >> o
> >> rageMa
> >> nager.java:300)
> >>      at org.dspace.content.Bitstream.create(Bitstream.java:205)
> >>      at org.dspace.content.Bundle.createBitstream(Bundle.java:384)
> >>      at
> >> org.dspace.app.webui.servlet.admin.EditItemServlet.processUploadBitst
> >> r
> >> eam(Ed
> >> itItemServlet.java:857)
> >>      at
> >>
> >
>
> org.dspace.app.webui.servlet.admin.EditItemServlet.doDSPost(EditItemServlet.
> >> java:160)
> >>      at
> >> org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServl
> >> e
> >> t.java
> >> :115)
> >>      at
> >> org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73)
> >>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> >>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> >> i
> >> cation
> >> FilterChain.java:305)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> >> i
> >> lterCh
> >> ain.java:210)
> >>      at
> >> org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredO
> >> n
> >> lyFilt
> >> er.java:66)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> >> i
> >> cation
> >> FilterChain.java:243)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> >> i
> >> lterCh
> >> ain.java:210)
> >>      at
> >> org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWeb
> >> a
> >> ppServ
> >> letFilter.java:78)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> >> i
> >> cation
> >> FilterChain.java:243)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> >> i
> >> lterCh
> >> ain.java:210)
> >>      at
> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> >> a
> >> lve.ja
> >> va:225)
> >>      at
> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> >> a
> >> lve.ja
> >> va:123)
> >>      at
> >> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
> >> t
> >> orBase
> >> .java:472)
> >>      at
> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> >> a
> >> va:168
> >> )
> >>      at
> >>
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> > va:98)
> >>      at
> >>
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> >>      at
> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> >> v
> >> e.java
> >> :118)
> >>      at
> >>
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > :407)
> >>      at
> >> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
> >> 1
> >> 1Proce
> >> ssor.java:1001)
> >>      at
> >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
> >> A
> >> bstrac
> >> tProtocol.java:579)
> >>      at
> >>
> >
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
> >> 312)
> >>      at
> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> >> j
> >> ava:11
> >> 45)
> >>      at
> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> >> java:6
> >> 15)
> >>      at java.lang.Thread.run(Thread.java:722)
> >> 2014-03-31 14:42:31,056 WARN  org.dspace.app.webui.util.UIUtil @
> >> Unable to send email alert
> >> javax.mail.internet.AddressException: Illegal address in string ``''
> >>      at
> >> javax.mail.internet.InternetAddress.<init>(InternetAddress.java:94)
> >>      at org.dspace.core.Email.send(Email.java:302)
> >>      at org.dspace.app.webui.util.UIUtil.sendAlert(UIUtil.java:419)
> >>      at
> >> org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalError
> >> S
> >> ervlet
> >> .java:54)
> >>      at
> >> org.dspace.app.webui.servlet.InternalErrorServlet.doPost(InternalErro
> >> r
> >> Servle
> >> t.java:62)
> >>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> >>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> >> i
> >> cation
> >> FilterChain.java:305)
> >>      at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> >> i
> >> lterCh
> >> ain.java:210)
> >>      at
> >>
> >
>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> >> java:690)
> >>      at
> >> org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
> >> t
> >> ionDis
> >> patcher.java:479)
> >>      at
> >> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
> >> i
> >> spatch
> >> er.java:402)
> >>      at
> >> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
> >> p
> >> atcher
> >> .java:329)
> >>      at
> >> org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.j
> >> a
> >> va:453
> >> )
> >>      at
> >>
> >
>
> org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:
> >> 399)
> >>      at
> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> >> a
> >> va:191
> >> )
> >>      at
> >>
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> > va:98)
> >>      at
> >>
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> >>      at
> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> >> v
> >> e.java
> >> :118)
> >>      at
> >>
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > :407)
> >>      at
> >> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
> >> 1
> >> 1Proce
> >> ssor.java:1001)
> >>      at
> >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
> >> A
> >> bstrac
> >> tProtocol.java:579)
> >>      at
> >>
> >
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
> >> 312)
> >>      at
> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> >> j
> >> ava:11
> >> 45)
> >>      at
> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> >> java:6
> >> 15)
> >>      at java.lang.Thread.run(Thread.java:722)
> >> ---------
> >>
> >>
> >>
> >> -----Ursprüngliche Nachricht-----
> >> Von: Anja Le Blanc [mailto:[email protected]]
> >> Gesendet: Montag, 31. März 2014 12:35
> >> An: [email protected]
> >> Betreff: Re: [Dspace-tech] Problem with bitstream upload
> >>
> >> Hi Stefanie,
> >>
> >> That is really not a lot of information about your problem. Can you
> >> check for error messages in your DSpace and or Tomcat logs?
> >>
> >> Regards,
> >>
> >> Anja
> >>
> >>
> >> On 31/03/2014 09:52, Stefanie Behnke wrote:
> >>> Dear all,
> >>>
> >>> I am using Dspace 3.1 with jspui and want to upload a bitstream (zip
> >>> file)
> >> to an existing item. That results in an Internal System Error.
> >>>
> >>> Can anyone give me a hint, what went wrong?
> >>>
> >>> thanking you in advance
> >>> Stefanie
> >>>
> >>>
> >>> --------------------------------------------------------------------
> >>> -
> >>> -
> >>> -------- _______________________________________________
> >>> DSpace-tech mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >>> List Etiquette:
> >>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> -
> >> ------
> >> --
> >> _______________________________________________
> >> DSpace-tech mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >> List Etiquette:
> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>
> >>
> >>
> >
> >
> >
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to