A couple thing I notice in error logs that look strange:

1. error reading status line from remote server localhost:4000
*Not sure why localhost is called remote server.*

2. error reading from remote server returned by 
/xmlui/handle/12345/1169/browse
*I have /xmlui/ in many lines in my logs.  It's like it got carried over 
during my migration from 4.x to 7.x.*


apache2 error.log:
[Wed Nov 30 00:00:29.299436 2022] [mpm_event:notice] [pid 42668:tid 
140076046756928] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f 
mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
[Wed Nov 30 00:00:29.299542 2022] [core:notice] [pid 42668:tid 
140076046756928] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 30 00:40:24.120247 2022] [proxy_http:error] [pid 66062:tid 
140075878815488] (104)Connection reset by peer: [client [ipaddress]:58455] 
AH01102: error reading status line from remote server localhost:4000, 
referer: https://mydomain.com
[Wed Nov 30 00:40:36.111457 2022] [proxy:error] [pid 66061:tid 
140076013307648] [client [ipaddress]:64193] AH00898: Error reading from 
remote server returned by /items/11e6a424-55bc-4d36-a9b7-ec4ab0985eb9
[Wed Nov 30 00:42:41.476436 2022] [proxy:error] [pid 66061:tid 
140075778103040] [client [ipaddress]:31578] AH00898: Error reading from 
remote server returned by /xmlui/handle/12345/1169/browse
[Wed Nov 30 00:50:12.311975 2022] [proxy:error] [pid 66062:tid 
140075786495744] [client [ipaddress]:61442]  AH00898: Error reading from 
remote server returned by /xmlui/handle/12345/95/search-filter

dspace.log:
INFO  aeda8ec0-3510-4e45-876d-d8c1f7854c55 
db1d80cb-b03a-4711-b5ff-7ba3b806ccef 
org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request 
[GET /server/api/authz/authorizations/search/object] originated from /xmlui/
search-filter?field=subject&filter_0=2016&filter_1=non-profit&filter_relational_operator_0=equals&filter_relational_operator_1=equals&filtertype_0=dateIssued&filtertype_1=subject&starts_with=n

I suppose I need to fix these before moving forward?

On Wednesday, November 23, 2022 at 12:12:35 a.m. UTC-4 Night Librarian 
wrote:

> Turns out, the problem is not limited to pdf.  All accdb, docx, mp3, pptx, 
> xlsx files also fail to download.  Their download completion goes to near 
> 100%, after which I get an error.  So, none of our items is downloadable!
>
> At the same time, css, html and xml files (we had a couple of these in one 
> submission) download w/o problems.
>
> On Tuesday, November 22, 2022 at 11:36:59 p.m. UTC-4 Night Librarian wrote:
>
>> Thank you for the suggestion.  I tried downloading the file in Edge, 
>> Chrome and Firefox on a Windows PC from home (via VPN) and on the Ubuntu 
>> machine itself that runs DSpace.  I did it before and after logging as 
>> admin.  I tried inPrivate/Incognito mode. In all cases, the pdf opens in 
>> the browser and I can read it in its entirety, but when I click "Download", 
>> it goes to 773 kb out of 776, and then I get a finelename.pdf.crdownload 
>> file downloaded and a message that the browser couldn't download the file.
>>
>> When I try in Safari and Chrome on iPhone, after viewing the PDF, when I 
>> click on download, I see "err_connection_closed", but that probably doesn't 
>> explain why it wouldn't download even on the server itself.  dspace.log has 
>> many lines, including these:
>>
>> INFO  3834015a-5783-403d-ba1b-085b68787b0e 
>> 64a217ee-6830-48b5-8558-d6140a123bc9 
>> org.dspace.usage.LoggerUsageEventListener @ 
>> [email protected]::view_item:handle=12345/1916
>>
>> INFO  unknown 778fd02b-07ff-4e37-a846-561a88054545 
>> org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request 
>> [GET /server/opensearch/search/search] originated from unknown
>>
>> INFO  08de3499-a27b-474b-aa4c-07fbf0f066cf 
>> 5d55a1b2-1984-4213-a061-39e7a6e4cff2 
>> org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request 
>> [GET /server/api/system/scripts/metadata-import] originated from /
>>
>> WARN  08de3499-a27b-474b-aa4c-07fbf0f066cf 
>> 5d55a1b2-1984-4213-a061-39e7a6e4cff2 
>> org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ 
>> Authentication is required (status:401 exception: Access is denied at: 
>> org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:73))
>>
>> INFO  08de3499-a27b-474b-aa4c-07fbf0f066cf 
>> a300fb4f-141b-42b9-a403-1352ba5844a1 
>> org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request 
>> [GET /server/api/core/items/6a40502a-a91b-4154-8f5f-19fd4ed69288] 
>> originated from /
>>
>> INFO  08de3499-a27b-474b-aa4c-07fbf0f066cf 
>> 98bdb7b6-51ff-4b43-91dc-d36d1a40d668 
>> org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request 
>> [GET /server/api/authz/authorizations/search/object] originated from 
>> /items/6a40502a-a91b-4154-8f5f-19fd4ed69288/full
>>
>> WARN  unknown unknown org.dspace.app.rest.security.jwt.JWTTokenHandler @ 
>> XXX.XXX.XXX.XXX tried to use an expired or non-valid token
>>
>> INFO  unknown 21ea0a82-e9a2-4235-89a9-2043f6411e07 
>> org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request 
>> [GET 
>> /server/api/core/bitstreams/137aabe1-6fb9-49d9-8fe6-e3ff81332964/content] 
>> originated from 
>> https://mydomain.com/server/api/core/bitstreams/137aabe1-6fb9-49d9-8fe6-e3ff81332964/content?authentication-token=eyJhbGciOiJIUzI1NiJ9.eyJlaWQiOiJiZWMwYWNmMS04NDFjLTRiNmQtYmM5Yi02OTQ0OWU2OWRjMWIiLCJzZyI6W10sImF1dGhlbnRpY2F0aW9uTWV0aG9kIjoicGFzc3dvcmQiLCJleHAiOjE2NjkxNzA2NDB9.0jKqlv027PbO4QTgGWx06swXby_oKee-qsIRsUmlPRM
>>
>>
>> Finally, browser's console shows these 2 lines:
>>
>> The response for '
>> https://mydomain.com/server/api/discover/search?configuration=default' 
>> has the self link 'https://ec.msvu.ca/server/api/discover/search'. These 
>> don't match. This could mean there's an issue with the REST endpoint 
>> main.3bafce0befaeaf6e.js:1:181849
>>
>> The response for '
>> https://mydomain.com/server/api/core/items/e56a5422-b32b-4000-95dd-86467ef21c35/bundles?size=9999'
>>  
>> has the self link '
>> https://ec.msvu.ca/server/api/core/items/e56a5422-b32b-4000-…es?embed=primaryBitstream&embed=bitstreams/format&size=1000'.
>>  
>> These don't match. This could mean there's an issue with the REST endpoint 
>> main.3bafce0befaeaf6e.js:1:181849
>>
>> Can any of this be relevant?
>> On Tuesday, November 22, 2022 at 3:57:25 p.m. UTC-4 [email protected] 
>> wrote:
>>
>>> Seems like it is either a browser or a connection issue. Try another 
>>> browser or go into Incognito/InPrivate/Private mode and try it.
>>>
>>> On Tuesday, November 22, 2022 at 10:13:28 PM UTC+3 Night Librarian wrote:
>>>
>>>> I have 7.4 on Ubuntu 20.04, with Tomcat 9. I can view pdfs in the 
>>>> browser but downloading doesn't work and I end up with 
>>>> finelename.pdf.crdownload files.  I don't see errors in dspace.log, only 
>>>> [info] and [warn] entries.
>>>>
>>>> Where should I look first to fix it?
>>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/daf26465-46ec-46fe-b44b-d6c6d277532fn%40googlegroups.com.

Reply via email to