[dspace-tech] Re: Deploy Dspace 7.4 with Add HTTPS support

2023-01-16 Thread Mohammad S. AlMutairi
Hi Vinicio,

Never seen that redirection error happening in DSpace but in Wordpress long 
time ago. You need to provide more information about your dspace version 
and setup because everything seems right. Try the redirects.sh script you 
see here https://www.liquidweb.com/kb/troubleshooting-too-many-redirects/ 
... it should give you some hints what causing the redirection.



On Tuesday, January 17, 2023 at 3:29:13 AM UTC+3 Vinicio Gramkow wrote:

>
> Hello everyone! I have the same problem, I performed all the steps above 
> and I am having the following error when trying to access dspace:
>
> ERR_TOO_MANY_REDIRECTS
>
>
> dspace.cfg
>
> dspace.server.url = https://mydomain.com/server
> dspace.ui.url = https://mydomain.com
>
> config.yml
>
> rest:
>ssl: true
>host: mydomain.com
>port: 443
>nameSpace: /server
>
> ui:
>ssl: false
>host: localhost
>port: 4000
>nameSpace: /
>
> When I use yarn test:rest I get http code 200 correctly.
>
> apache configuration file
>
> 
>   ServerName mydomain.com
>   Redirect / https://mydomain.com/
> 
>
> 
>   ServerName mydomain.com
>   LogLevel warn
>   ErrorLog ${APACHE_LOG_DIR}/mydomain.com.error.log
>   CustomLog ${APACHE_LOG_DIR}/mydomain.com.access.log combined
>   ProxyRequests on
>   SSLEngine on
>   SSLProxyEngine on
>   SSLCertificateFile /etc/ssl/certs/server.crt
>   SSLCertificateKeyFile /etc/ssl/private/server.key
>   SSLCompression off
>   SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
>   SSLCipherSuite 
> ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM>
>  
> SSLHonorCipherOrder off
>   SSLSessionTickets off
>   ProxyPreserveHost on
>   RequestHeader set X-Forwarded-Proto https
>
> 
> AddDefaultCharset Off
> Require all granted
> 
>
>   ProxyPass /server http://localhost:8080/server
>   ProxyPassReverse /server http://localhost:8080/server
>   ProxyPass / http://localhost:4000/
>   ProxyPassReverse / http://localhost:4000/
>
> 
>
> What could I be doing wrong? I've been trying to do this for two weeks. 
> Grateful if anyone can help me.
> Em quarta-feira, 11 de janeiro de 2023 às 10:24:21 UTC-3, 
> m.kussai...@gmail.com escreveu:
>
>>
>> Thank you very much Sir Muhammad. Everything works great. Thanks again!
>>
>> вторник, 10 января 2023 г. в 22:01:03 UTC+6, alo...@gmail.com: 
>>
>>> I'm posting it here in a hope it will help someone else who might need 
>>> clues what should be changed.
>>>
>>>
>>>1. echo "10.17.0.12  repository.kaznu.kz" >> /etc/hosts
>>>2. a2enmod proxy_http proxy_html ssl headers
>>>3. a2dissite 000-default default-ssl
>>>4. Overwrite /etc/tomcat9/server.xml with the attached file 
>>>(server.xml).
>>>5. Overwrite /etc/apache2/sites-available/repository_kaznu_kz.conf 
>>>with the attached file (repository_kaznu_kz.conf).
>>>6. a2ensite repository_kaznu_kz.conf
>>>7. systemctl restart apache2.service
>>>8. systemctl restart tomcat9.service
>>>9. test the frontend (yarn test:rest)
>>>10. build the frontend
>>>11. access your backend by visiting 
>>>https://repository.kaznu.kz/server
>>>12. access the frontend by visiting https://repository.kaznu.kz
>>>
>>>
>>> Cheers
>>> On Tuesday, January 10, 2023 at 1:32:57 PM UTC+3 m.kussai...@gmail.com 
>>> wrote:
>>>
 I type IP adress in google chrome 10.17.0.12  Apache works

 вторник, 10 января 2023 г. в 16:32:21 UTC+6, Мухаметали Кусайынов: 

> I type IP adress in google chrome 10.17.0.12  Apache works
>
> вторник, 10 января 2023 г. в 16:20:24 UTC+6, Мухаметали Кусайынов: 
>
>> Hello everyone! I really need your help. I can't deploy the website. 
>> Please help me! My settings below:
>> Server OS:
>> *Ubuntu server without GUI*
>> Ip address server - *10.17.0.12*
>> I installed* browsh* - is  text-based browser. Dspace was running at* 
>> localhost:4000*
>> Frontend directory location:
>> *~/dspace-angular-dspace-7.4*
>> Backend directory location:
>> */dspace*
>> SSL crt. location:
>> */dspace/ssl*
>> I have included ajp connector in tomcat9 server.xml:
>>   
>>
>>
>>
>>
>>
>> *>  minSpareThreads="25"   enableLookups="false"  
>>  redirectPort="8443"   connectionTimeout="2" 
>>  
>>  disableUploadTimeout="true"   URIEncoding="UTF-8"/>*
>>
>>
>>
>>
>>
>> * >  port="8009"   redirectPort="8443"  
>>  URIEncoding="UTF-8" />*
>>
>> local.cfg location:
>> */dspace/config$*
>> *Local.cfg configuration*
>> dspace.dir=*/dspace*
>> dspace.server.url = *https://repository.kaznu.kz/server 
>> *
>> dspace.ui.url = 

[dspace-tech] Re: Deploy Dspace 7.4 with Add HTTPS support

2023-01-16 Thread Vinicio Gramkow

Hello everyone! I have the same problem, I performed all the steps above 
and I am having the following error when trying to access dspace:

ERR_TOO_MANY_REDIRECTS


dspace.cfg

dspace.server.url = https://mydomain.com/server
dspace.ui.url = https://mydomain.com

config.yml

rest:
   ssl: true
   host: mydomain.com
   port: 443
   nameSpace: /server

ui:
   ssl: false
   host: localhost
   port: 4000
   nameSpace: /

When I use yarn test:rest I get http code 200 correctly.

apache configuration file


  ServerName mydomain.com
  Redirect / https://mydomain.com/



  ServerName mydomain.com
  LogLevel warn
  ErrorLog ${APACHE_LOG_DIR}/mydomain.com.error.log
  CustomLog ${APACHE_LOG_DIR}/mydomain.com.access.log combined
  ProxyRequests on
  SSLEngine on
  SSLProxyEngine on
  SSLCertificateFile /etc/ssl/certs/server.crt
  SSLCertificateKeyFile /etc/ssl/private/server.key
  SSLCompression off
  SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
  SSLCipherSuite 
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM>
 
SSLHonorCipherOrder off
  SSLSessionTickets off
  ProxyPreserveHost on
  RequestHeader set X-Forwarded-Proto https


AddDefaultCharset Off
Require all granted


  ProxyPass /server http://localhost:8080/server
  ProxyPassReverse /server http://localhost:8080/server
  ProxyPass / http://localhost:4000/
  ProxyPassReverse / http://localhost:4000/



What could I be doing wrong? I've been trying to do this for two weeks. 
Grateful if anyone can help me.
Em quarta-feira, 11 de janeiro de 2023 às 10:24:21 UTC-3, 
m.kussai...@gmail.com escreveu:

>
> Thank you very much Sir Muhammad. Everything works great. Thanks again!
>
> вторник, 10 января 2023 г. в 22:01:03 UTC+6, alo...@gmail.com: 
>
>> I'm posting it here in a hope it will help someone else who might need 
>> clues what should be changed.
>>
>>
>>1. echo "10.17.0.12  repository.kaznu.kz" >> /etc/hosts
>>2. a2enmod proxy_http proxy_html ssl headers
>>3. a2dissite 000-default default-ssl
>>4. Overwrite /etc/tomcat9/server.xml with the attached file 
>>(server.xml).
>>5. Overwrite /etc/apache2/sites-available/repository_kaznu_kz.conf 
>>with the attached file (repository_kaznu_kz.conf).
>>6. a2ensite repository_kaznu_kz.conf
>>7. systemctl restart apache2.service
>>8. systemctl restart tomcat9.service
>>9. test the frontend (yarn test:rest)
>>10. build the frontend
>>11. access your backend by visiting https://repository.kaznu.kz/server
>>12. access the frontend by visiting https://repository.kaznu.kz
>>
>>
>> Cheers
>> On Tuesday, January 10, 2023 at 1:32:57 PM UTC+3 m.kussai...@gmail.com 
>> wrote:
>>
>>> I type IP adress in google chrome 10.17.0.12  Apache works
>>>
>>> вторник, 10 января 2023 г. в 16:32:21 UTC+6, Мухаметали Кусайынов: 
>>>
 I type IP adress in google chrome 10.17.0.12  Apache works

 вторник, 10 января 2023 г. в 16:20:24 UTC+6, Мухаметали Кусайынов: 

> Hello everyone! I really need your help. I can't deploy the website. 
> Please help me! My settings below:
> Server OS:
> *Ubuntu server without GUI*
> Ip address server - *10.17.0.12*
> I installed* browsh* - is  text-based browser. Dspace was running at* 
> localhost:4000*
> Frontend directory location:
> *~/dspace-angular-dspace-7.4*
> Backend directory location:
> */dspace*
> SSL crt. location:
> */dspace/ssl*
> I have included ajp connector in tomcat9 server.xml:
>   
>
>
>
>
>
> *  minSpareThreads="25"   enableLookups="false"  
>  redirectPort="8443"   connectionTimeout="2"  
>  disableUploadTimeout="true"   URIEncoding="UTF-8"/>*
>
>
>
>
>
> * port="8009"   redirectPort="8443"  
>  URIEncoding="UTF-8" />*
>
> local.cfg location:
> */dspace/config$*
> *Local.cfg configuration*
> dspace.dir=*/dspace*
> dspace.server.url = *https://repository.kaznu.kz/server 
> *
> dspace.ui.url = *https://repository.kaznu.kz 
> *
> dspace.name = *DSpace KazNU*
>
> *Config.prod.yml configuration*
> config.prod.yml location:
> *~/dspace-angular-dspace-7.4/config$ *
> *ui:*
>   ssl: false
>   host: localhost
>   port: 4000
>   nameSpace: /
>
> *rest:*
>   ssl: true
>   host: repository.kaznu.kz
>   port: 443
>   nameSpace: /server
>
> Next, I will describe in detail how I tried to create a VirtualHost 
> for Dspace.
> I copied the *default-ssl.conf *and created the 
> *repository_kaznu_kz.conf*  in */etc/apache2/sites-available* 
> directory.
>
> VirtualHost 

[dspace-tech] Re: DSpace 7.3 Bulk Upload

2023-01-16 Thread DSpace Technical Support
Hi Tianyi,

What errors are you getting when you try the CLI command? The thing that 
stands out to me first is that I don't think you should use the = in your 
parameters?
When trying from a 7.x UI, make sure you are logged in as an administrator. 
You can find the button in the sidebar menu:

Hope this helps!

Kim


On Tuesday, January 17, 2023 at 2:11:32 AM UTC+13 gutia...@gmail.com wrote:

> Hi all,
>
> I can't see the Batch Import from UI and also have no luck running the 
> "import' command
>
> I follow the guide Importing and Exporting Items via Simple Archive Format 
> 
>
> The command I used:
> [dspace]/bin/dspace import --add --eperson=j...@user.com 
> --collection=CollectionID --source=items_dir --mapfile=mapfile
>
> Please advise.
>
> Thank you,
> tianyi
>

-- 
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/4f6953a5-5938-4d56-af3c-2b13455db156n%40googlegroups.com.


[dspace-tech] DSpace 7.3 Bulk Upload

2023-01-16 Thread Tianyi Gu
Hi all,

I can't see the Batch Import from UI and also have no luck running the 
"import' command

I follow the guide Importing and Exporting Items via Simple Archive Format 


The command I used:
[dspace]/bin/dspace import --add --eperson=j...@user.com 
--collection=CollectionID --source=items_dir --mapfile=mapfile

Please advise.

Thank you,
tianyi

-- 
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/293cf878-e53a-4e21-8e4d-91fc901ca273n%40googlegroups.com.