Dspace 7

1,613 views
Skip to first unread message

Nicolas Battaglia

unread,
Jul 2, 2021, 12:28:56 PM7/2/21
to DSpace Technical Support
Hello, i've an issue after installing dpsace, while trying to upload a file in a new item.
After progressbar finished, apperas an error message (Upload failed), and in the browser console gets this response, with 201 status code.
  1. {id: 33, errors: [{message: "error.validation.required",…},…],…}
    1. errors: [{message: "error.validation.required",…},…]
      1. 0: {message: "error.validation.required",…}
      2. 1: {message: "error.validation.filerequired", paths: ["/sections/upload"]}
      3. 2: {message: "java.io.IOException: No existe el fichero o el directorio", paths: ["/sections/upload"]}
        1. message: "java.io.IOException: No existe el fichero o el directorio"
        2. paths: ["/sections/upload"]
    2. id: 33
    3. lastModified: "2021-07-02T16:04:41.403+0000"
    4. sections: {license: {url: null, acceptanceDate: null, granted: false}, upload: {files: []},…}
    5. type: "workspaceitem"
    6. _embedded: {,…}
    7. _links: {,…}


I've installed dpsace in a debian server, following all the installation steps, without any problem. But, in my dspace log havnt't any file. After this, change log4j2 log level to debbug but nothing happens, and in catalina.out log file gets  this 2 errors:


1) 

[2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,223 main ERROR Null object returned for RollingFile in Appenders.
[2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,236 main ERROR Null object returned for RollingFile in Appenders.
[2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,292 main ERROR Unable to locate appender "A1" for logger config "root"
[2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,294 main ERROR Unable to locate appender "A1" for logger config "org.dspace"
[2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,295 main ERROR Unable to locate appender "A2" for logger config "org.dspace.checker"


2) 
java.lang.IllegalArgumentException: Se encontró un carácter inválido en el nombre del método. Los nombres de métodos HTTP deben ser tokens
[2021-07-02 12:13:55] [info]     at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:416)
[2021-07-02 12:13:55] [info]     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:260)
[2021-07-02 12:13:55] [info]     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
[2021-07-02 12:13:55] [info]     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
[2021-07-02 12:13:55] [info]     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
[2021-07-02 12:13:55] [info]     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
[2021-07-02 12:13:55] [info]     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[2021-07-02 12:13:55] [info]     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[2021-07-02 12:13:55] [info]     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2021-07-02 12:13:55] [info]     at java.base/java.lang.Thread.run(Thread.java:829)



any idea?
Thanks in advance


Nicolás

Tim Donohue

unread,
Jul 2, 2021, 1:02:04 PM7/2/21
to Nicolas Battaglia, DSpace Technical Support
Hi Nicolas,

I searched Google for the (english translation of that) error message and found this:
https://stackoverflow.com/a/42319270/3750035

It sounds like it might be an HTTPS issue.  Perhaps either your backend isn't running HTTPS (which is required), or maybe the frontend is sending HTTP requests to the backend?

These are just quick guesses as I've not seen this specific error before after installing DSpace 7.  But, you should double check everything is running HTTPS properly (you can only run HTTP if both the frontend & backend are on localhost, i.e. in a dev environment).  You should also double check the backend's local.cfg and frontend's environment.*.ts both have HTTPS urls specified, etc.  Obviously also make sure Tomcat or Apache is properly setup for HTTPS as well.

If you have other questions, let us know on this list.

Tim

From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Nicolas Battaglia <ing.nicola...@gmail.com>
Sent: Friday, July 2, 2021 11:28 AM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Dspace 7
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/5856b77b-0ab1-4c3f-80df-efe869aa02een%40googlegroups.com.

Mark H. Wood

unread,
Jul 6, 2021, 11:53:29 AM7/6/21
to dspac...@googlegroups.com
On Fri, Jul 02, 2021 at 09:28:26AM -0700, Nicolas Battaglia wrote:
> Hello, i've an issue after installing dpsace, while trying to upload a file
> in a new item.
> After progressbar finished, apperas an error message (Upload failed), and
> in the browser console gets this response, with 201 status code.
>
> 1. {id: 33, errors: [{message: "error.validation.required",…},…],…}
> 1. errors: [{message: "error.validation.required",…},…]
> 1. 0: {message: "error.validation.required",…}
> 2. 1: {message: "error.validation.filerequired", paths:
> ["/sections/upload"]}
> 3. 2: {message: "*java.io.IOException: *No existe el fichero o el
> directorio", paths: ["/sections/upload"]}
> 1. message: "java.io.IOException: No existe el fichero o el
> directorio"
> 2. paths: ["/sections/upload"]
> 2. id: 33
> 3. lastModified: "2021-07-02T16:04:41.403+0000"
> 4. sections: {license: {url: null, acceptanceDate: null, granted:
> false}, upload: {files: []},…}
> 5. type: "workspaceitem"
> 6. _embedded: {,…}
> 7. _links: {,…}
>
>
>
> I've installed dpsace in a debian server, following all the installation
> steps, without any problem. But, in my dspace log havnt't any file. After
> this, change log4j2 log level to debbug but nothing happens, and in
> catalina.out log file gets this 2 errors:
>
>
> 1)
>
> [2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,223 main ERROR Null object
> returned for RollingFile in Appenders.
> [2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,236 main ERROR Null object
> returned for RollingFile in Appenders.
> [2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,292 main ERROR Unable to
> locate appender "A1" for logger config "root"
> [2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,294 main ERROR Unable to
> locate appender "A1" for logger config "org.dspace"
> [2021-07-02 11:59:41] [info] 2021-07-02 11:59:41,295 main ERROR Unable to
> locate appender "A2" for logger config "org.dspace.checker"

This looks like damage to the file 'config/log4j2.xml'. The Logger
elements are expecting to find Appender elements named 'A1' and 'A2'
but no such elements were found. Log files are created by an
Appender. This would explain why you have no DSpace log files.

> java.lang.IllegalArgumentException: Se encontró un carácter inválido en el
> nombre del método. Los nombres de métodos HTTP deben ser tokens
> [2021-07-02 12:13:55] [info] at
> org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:416)

I agree with another post: if I saw "encountered an invalid character in
method name" at the start of a session then the first thing I would
look for is an HTTP/HTTPS mis-match.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Mathieu Pelletier

unread,
Aug 18, 2021, 10:45:00 AM8/18/21
to DSpace Technical Support
Hi there, Nicolas,

Did you ever find your solution?  I am struggling with this problem as well.  Everything else seems to be working okay, but I cannot upload a file when creating an item.  The browser console is not yielding anything helpful.

All the best,
Mathieu

Nicolas Battaglia

unread,
Aug 18, 2021, 11:40:38 AM8/18/21
to Mathieu Pelletier, DSpace Technical Support
Hi Mathieu! Not really. I had that problem using Debian, and the only way I found after several hours of trying was to install dspace on windows

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/6VIGe9xk2oY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/fec1a3fc-5f53-4cbd-b79f-cf512e8aa568n%40googlegroups.com.

Anda

unread,
Oct 25, 2021, 5:22:39 AM10/25/21
to DSpace Technical Support
Hello!

Maybe someone has found a solution for this problem. We use Ubuntu, but can not upload files.

Thanks!
Regards,
Anda

Zhongping Yan

unread,
Oct 25, 2021, 10:07:52 AM10/25/21
to DSpace Technical Support
Make sure DSpace backend has write permission on the server.

Inácio Oliveira

unread,
Nov 24, 2021, 8:24:22 PM11/24/21
to DSpace Technical Support
Hello everyone,

Someone managed to fix this problem. I have the same problem. I installed Dspace7 on ubuntu 20 on AWS, the api and UI interface are working on https perfectly, but I can't upload.

Mariyapillai Jayakananthan

unread,
Nov 25, 2021, 12:33:42 AM11/25/21
to Inácio Oliveira, DSpace Technical Support
Dear All,
I had the same problem. Try the following just give permission to your dspace angular folder

chown -R tomcat:tomcat /home/dspace-7-angular/

Then it worked for me. 


Thanks

M. Jayakananthan (BSc, MSc) 
Research Data Librarian
International Water Management Institute
127, Sunil Mawatha, Pelawatte, Battaramulla, Colombo, Sri Lanka
m.jayak...@cgiar.org, mje...@gmail.com
+94773457556




You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/5d9c603c-73b7-415e-881d-d12663105c7dn%40googlegroups.com.
Message has been deleted

Hüsnü Yildiz

unread,
Jan 2, 2022, 10:18:20 AM1/2/22
to DSpace Technical Support

You can fix this problem by adding "ReadWritePaths=[dspace]" to tomcat service file under the service section. For ubuntu, you can find at /lib/systemd/system/tomcat9.service. Then, please execute the following commands:

systemctl daemon-reload

service tomcat9 restart

After this operation, I uploaded files successfully

odongof...@gmail.com

unread,
Jul 21, 2022, 10:26:13 AM7/21/22
to DSpace Technical Support
Thanks, it worked for me when I was sorting out the error 500 too,

"You can fix this problem by adding "ReadWritePaths=[dspace]" to tomcat service file under the service section. For ubuntu, you can find at /lib/systemd/system/tomcat9.service. Then, please execute the following commands:

systemctl daemon-reload

service tomcat9 restart

After this operation, I uploaded files successfully" 

Reply all
Reply to author
Forward
0 new messages