Hi all,

Thanks for the tips on the NGinx setup.  The only reason a sample config 
wasn't documented is because no one provided one :)  I've now updated the 
Install docs to provide a sample NGinx config based on Douglas' comments 
in https://github.com/DSpace/DSpace/issues/8693 

Please give a look, as I haven't tested the config.  Suggested updates are 
welcome:
https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace

Tim


On Tuesday, March 21, 2023 at 6:52:02 AM UTC-5 alo...@gmail.com wrote:

> Hi Douglas,
>
> You are most welcome. Happy you finally got it sorted out. I must thank 
> you too for dragging me into the docker world :-). I had to build DSpace on 
> docker thinking it could be part of the cause but it turned out I could've 
> accomplished the final conclusion if the config file you sent was fed into 
> any Nginx.DSpace 7 lacks any clear instructions or guidelines on how the 
> Nginx web server reverse proxy should be set up for first-timers so I think 
> it will help a lot of people if the Nginx reverse proxy is added besides 
> the Apache example to give a hint of what to start with and to save someone 
> else's time.
>
> Accept my kindest regards,
>
> Mo.
>
> On Monday, March 20, 2023 at 8:47:53 PM UTC+3 Douglas Eder Uno Silva wrote:
>
> Hi Mo!
>
> Man, it worked! Thanks a lot again for the help!
>
> The problem is about the flag *$query_string* i used after the 
> *$request_uri* on *proxy_pass* in the location for the backend. I use 
> this on other applications that I deploy but it seems that for Java/Tomcat 
> works differently.
> When I set your configuration, I tried to debug the reason why it works 
> and when I set the *$query_string *in the proxy_pass, the menu did not 
> display any more. I never thought that this flag could be the source of 
> this problem! I could not believe it when I saw!
> The forwarding of the *$query_string* to the backend container makes the 
> api omit the *_embedded *on requests like 
> https://dspace.uefs.br/server/api/authz/authorizations/search/object?uri=https://dspace.uefs.br/server/api/core/sites/b7f0752f-d24f-43da-9eb8-37c5eca6c101&feature=isCommunityAdmin&embed=feature.
>  
> That was the only difference between my installation and the demo 
> https://demo7.dspace.org. Now we know why!
>
> The working config is attached.
>
> Do you think we can suggest something to improve the DSpace docs? I 
> believe we can emphasize this in topic 17 of the backend installation and 
> topic 8 of the frontend installation in the apache/nginx configuration 
> section.
>
> Thank you again very much for your time, attention and patience.
>
> Em sáb., 18 de mar. de 2023 às 02:30, Mohammad S. AlMutairi <
> alo...@gmail.com> escreveu:
>
> Hi Douglas,
>
> I was able to replicate the issue you have with the administrator menu 
> here and saw there was no menu while logged as an administrator. I can 
> confirm It's caused by how the reverse proxy is configured so try the 
> attached config file instead (It's a working).
>
> Cheers,
>
> Mo.
>
>
>
> On Saturday, March 18, 2023 at 1:47:01 AM UTC+3 Mohammad S. AlMutairi 
> wrote:
>
> Hi Douglas,
>
> Thanks for the info. After getting into docker I see my suggestions won't 
> work. Setting DSpace in Docker is a bit different than how it is on 
> standalone servers. I'm setting a similar environment to yours here trying 
> to help.
>
> Do you get any clues when tailing the logs of angular? (docker logs -f 
> dspace-angular-container-ID)
>
> Mo.
>
> On Tuesday, March 14, 2023 at 3:09:26 PM UTC+3 Douglas Eder Uno Silva 
> wrote:
>
> Hi Mo,
>
> Same behavior. Despite being logged in as an administrator, the 
> administrative menu does not appear. No errors on browser console or in 
> DSpace backend logs that could indicate clues of the problem.
> [image: image.png]
> The previous and updated nginx configuration file is attached.
>
> I have this 'architecture' on the server. I removed some things to 
> simplify the diagram. The server runs an NGinx, the DSpace backend and 
> frontend are containers too. All containers are in the same network.
> [image: image.png]
>
> After configuring DSPACE_UI_HOST = localhost, the nginx container could 
> not connect to the container of the frontend to forward the request.
> Nginx could forward the request only after configuring DSPACE_UI_HOST with 
> 0.0.0.0.
>
> Em ter., 14 de mar. de 2023 às 08:19, Douglas Eder Uno Silva <
> deus...@uefs.br> escreveu:
>
> Hi Mo,
>
> I will test these changes and let you know what happens.
>
> Em ter., 14 de mar. de 2023 às 06:34, Mohammad S. AlMutairi <
> alo...@gmail.com> escreveu:
>
> Hi Douglas,
>
> In addition to the previous message, I noticed you are using a Squid Proxy 
> in your network. You might need to bypass the proxy for the http/https 
> traffic going from the frontend destined to the backend.
>
> ENV http_proxy http://proxy.uefs.br:3128
> ENV https_proxy http://proxy.uefs.br:3128
> ENV NO_PROXY  localhost
>
> https://docs.docker.com/network/proxy/
>
> BR, 
>
> Mo.
>
> On Tuesday, March 14, 2023 at 12:14:53 AM UTC+3 Mohammad S. AlMutairi 
> wrote:
>
> Hi Douglas,
>
> For testing to isolate the cause of this issue. Can you try running the 
> frontend on / instead of the subath /app you are running on and also bind 
> it on the localhost adapter?. I'm suspecting the subpath is because of this 
> old issue ( https://github.com/DSpace/dspace-angular/pull/1488 ). It 
> could also be caused by the reverse proxy setup you have. Just try them to 
> know for sure.
>
>       DSPACE_UI_HOST: localhost
>       DSPACE_UI_PORT: '4000'
>       DSPACE_UI_NAMESPACE: /
>
> ---------------------Nginx Reverse Proxy setup-----------------------------
>   location /server {
>
>     proxy_set_header X-Forwarded-Proto https;
>     proxy_set_header X-Forwarded-Host  $host;
>     proxy_pass http://localhost:8080/server;
>
>   }
>
>   location / {
>
>     proxy_pass http://localhost:4000;
>
>   }
> ------------------End of Nginx Reverse Proxy setup------------------------
>
> Hope it help
>
> Mo.
>
>
> On Mon, Mar 13, 2023 at 6:49 PM Douglas Eder Uno Silva <deus...@uefs.br> 
> wrote:
>
> Hi Mohammad! Thanks in advance for the response! I will share more details 
> about my installation.
>
> I created two Dockerfiles (attached), one for the frontend and another for 
> the backend. Frontend and backend runs is separated containers.
> Env vars are attached below too.
>
> Database migrations returns 'Success' to all. Already make database clean 
> and migrate again and problem persists.
>
> I already checked and the version is 7.5.0 on both frontend and backend as 
> can be seen on image below
>
> I'm here if you need more information..
>
> [image: versao_backend_dspace.png][image: versao_frontend_dspace.png]
> Em segunda-feira, 13 de março de 2023 às 12:19:44 UTC-3, Mohammad S. 
> AlMutairi escreveu:
>
> Hi Douglas,
>
> I'm suspecting you are mixing two different versions of DSpace backend and 
> frontend. You need to provide more details about the OS and how you 
> installed the backend and most importantly how the frontend requirements 
> was installed for any to be able to help. 
>
> You might need to start over the installation by downloading:
>
>
>    - Download DSpace 7.5 Backend: 
>    https://github.com/DSpace/DSpace/releases/tag/dspace-7.5
>    - Download DSpace 7.5 User Interface: 
>    https://github.com/DSpace/dspace-angular/releases/tag/dspace-7.5
>
> Hope it help & Good luck.
>
> Mo.
>
>
>
>
>
> On Monday, March 13, 2023 at 3:19:16 PM UTC+3 Douglas Eder Uno Silva wrote:
>
> Hi again,
>
> Nobody faced this type of problem before? Just me?
> I don't know more what to do to make this adminisration menu shows.
> Lost a month on this and the problem persists.
>
> What am i could be doing wrong? Any ideia, guys? I need help please =(
>
> Em segunda-feira, 6 de março de 2023 às 15:41:28 UTC-3, Douglas Eder Uno 
> Silva escreveu:
>
> Hi everybody,
>
> Anyone have the problem of the admin menu showing few items or not showing 
> at all?
>
> Deploy of DSpace 7.4 results in few items on menu and DSpace 7.5 menu 
> displays nothing.
>
> Backend and frontend seems to be fine. Database migrations returns Sucess 
> on all items, can access HAL Browser, authentication, etc...
>
> The user administrator created by `/dspace/bin/dspace 
> create-administrator` is linked with a group named 'Administrator'
>
> What am i could be doing wrong?
>
> Thank you in advance for your attention and patience.
>
> -- 
> 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/CY2H2Qs6kVM/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/42fe793b-d356-42a6-9ddc-18af2f1b2524n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dspace-tech/42fe793b-d356-42a6-9ddc-18af2f1b2524n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> -- 
> 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/8d36ac26-401b-4baf-ab96-ad6e5760c7f0n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dspace-tech/8d36ac26-401b-4baf-ab96-ad6e5760c7f0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> -- 
> *Douglas Silva*
> *Analista Universitário (**PORTARIA N° 92716 de 27 de agosto de 2019)*
>
> *Universidade Estadual de Feira de Santana (UEFS)*
> *Assessoria Especial de Informática (AEI)*
> *Gerência de Suporte (GSUP)*
>
>
>
> -- 
> *Douglas Silva*
> *Analista Universitário (**PORTARIA N° 92716 de 27 de agosto de 2019)*
>
> *Universidade Estadual de Feira de Santana (UEFS)*
> *Assessoria Especial de Informática (AEI)*
> *Gerência de Suporte (GSUP)*
>
> -- 
> 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/CY2H2Qs6kVM/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/c9fd1726-d1df-4e67-808e-ff65f6d2dd85n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dspace-tech/c9fd1726-d1df-4e67-808e-ff65f6d2dd85n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> -- 
> *Douglas Silva*
> *Analista Universitário (**PORTARIA N° 92716 de 27 de agosto de 2019)*
>
> *Universidade Estadual de Feira de Santana (UEFS)*
> *Assessoria Especial de Informática (AEI)*
> *Gerência de Suporte (GSUP)*
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/a3f7b0d8-86e6-4665-82fa-5fd9669435c1n%40googlegroups.com.

Reply via email to