Jan and Tim,

I'm going to offer some extra information that might help future people. I 
was (am) testing this on a development server with self-signed TLS 
certificates and that was also causing this error to occur. Since  am on a 
development server, I switched everything to SSL=false, and HTTP instead of 
HTTPS and that mostly solved the problems I was having. I will pursue the 
problem later, but I may need to add my organization's internal Root CA 
Certificate to my development server and continue testing.

Of course I had to update all of my settings to match (local.cfg, 
environment.dev.ts, etc)

I don't think a LetsEncrypt Cert would cause this problem, but you never 
know.

--Joel Richard
Smithsonian Libraries and Archives

On Monday, October 4, 2021 at 1:08:06 PM UTC-4 [email protected] wrote:

> Hi Tim,
>
> the files are identical (I also tried a copy of environment.dev.ts to 
> environment.prod.ts), which did not help.
>
> It looks very strange for me, the guide 
> https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-%22No_linkssectionfoundat...%22errorfromUserInterface
>  
> probably will be useful. 
>
> Installed on Debian.
>
> Jan
>
>
> On Monday, October 4, 2021 at 5:32:04 PM UTC+2 Tim Donohue wrote:
>
>> Hi Jan,
>>
>> We have a guide for that error here: 
>> https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-%22No_linkssectionfoundat...%22errorfromUserInterface
>>
>> That said, your REST API at https://sulis53.zcu.cz/server/ "looks 
>> correct" to me, and you can see that it has a "_links" section in the 
>> response.
>>
>> Therefore, I highly suspect something is wrong with your 
>> environment.prod.ts.  Are you SURE it's identical  to environment.dev.ts?  
>> Maybe there's a stray comma or odd space or something that is causing 
>> issues when the configuration is read by `yarn start`?   When `yarn start` 
>> runs, does it say it's using environment.prod.ts, or does it have a message 
>> like "No specific environment file found..."  (if it's the latter, that 
>> means it's having issues reading your environment.prod.ts)
>>
>> It's not immediately obvious to me what the problem is...which is why I 
>> immediately suspect it might be an invalid config file or similar.
>>
>> If you are able to figure out the problem, please do let us know. That 
>> way we can also update our guide about other issues that might cause this 
>> "No _links section found" error.
>>
>> Tim
>>
>> On Monday, October 4, 2021 at 10:23:09 AM UTC-5 [email protected] wrote:
>>
>>> Hello,
>>>
>>> we are installing DSpace7 and unfortunately have problems, which we are 
>>> not able to explain or even resolve.
>>>
>>> Environment file and apache configuration is attached below.
>>>
>>> When running "yarn start:dev", it seems to be working, but when running 
>>> "yarn start" (environment.prod.ts and environment.dev.ts are the same), we 
>>> always get "no _links section found..." error.
>>>
>>> Could you please help us to resolve the problem? What might be the 
>>> difference, which can cause this problem?
>>>
>>> You can even check - "No _links section found at 
>>> https://sulis53.zcu.cz/server/api";, but this link is normally 
>>> accessible.
>>> The testing instance runs here: https://sulis53.zcu.cz:
>>>
>>> Thank you
>>>
>>> With regards
>>>
>>> Jan
>>>
>>>
>>> -------------------------------
>>> environment.*.ts:
>>>
>>> export const environment = {
>>>   ui: {
>>>       ssl: false,
>>>       host: 'localhost',
>>>       port: 4000,
>>>       nameSpace: '/'
>>>   },
>>>   rest: {
>>>       ssl: true,
>>>       host: 'sulis53.zcu.cz',
>>>       port: 443,
>>>       nameSpace: '/server'
>>>   }
>>> };
>>>
>>>
>>> apache:
>>> <VirtualHost _default_:443>
>>>     SSLEngine on
>>>     SSLCertificateFile /etc/letsencrypt/live/sulis53.zcu.cz/cert.pem
>>>     SSLCertificateKeyFile /etc/letsencrypt/live/
>>> sulis53.zcu.cz/privkey.pem
>>>
>>>     ProxyPass /server http://localhost:8080/server
>>>     ProxyPassReverse /server http://localhost:8080/server
>>>
>>>     RequestHeader set X-Forwarded-Proto https
>>>
>>>     ProxyPass / http://localhost:4000/
>>>     ProxyPassReverse / http://localhost:4000/
>>>
>>> </VirtualHost>
>>>
>>

-- 
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/3f75ff70-5715-46a0-bcca-8fec208cc3d2n%40googlegroups.com.

Reply via email to