2 issues after setting up DSpace 6.3

124 views
Skip to first unread message

Ashim Kapoor

unread,
Mar 5, 2020, 6:08:11 AM3/5/20
to DSpace Technical Support
Dear all,

[1]. When I try to register a new user in the following link :-


It is taking a very long time.

[2]. When I try to submit an item it again takes a very long time.

I am running DSpace 6.3 on a Debian 10.3 Virtual Machine with 4 GB of RAM. I have java - adoptopenjdk-8-hotspot-amd64. Postgres 11.7. Tomcat9
My /etc/default/tomcat9 has the following lines :
JAVA_HOME =/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64
JAVA_OPTS="-XX:+UseG1GC -Djava.awt.headless=true -Xmx512M -Xms64M -Dfile.encoding=UTF-8"

Can someone please help me ?


Thank you,
Ashim

Bram Luyten

unread,
Mar 5, 2020, 9:58:08 AM3/5/20
to Ashim Kapoor, DSpace Technical Support
Dear Ashim,

can you doublecheck whether your email server is configured correctly?
Both user registration, as well as finalisation of a submission have a trigger to send out an email. Delay in both of these areas could mean that somehow, DSpace is unable to send the emails out.

with kindest regards,

Bram

logoBram Luyten
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Gaston Geenslaan 14, 3001 Leuven, Belgium
DSpace Express Hosting - Open Repository Hosting


--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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/CAGEJAoGi%3DKi_6PG2XQywSCmzpnZ6ttBXtPPiarCm7YuHDTpbmA%40mail.gmail.com.

Adan

unread,
Mar 5, 2020, 10:33:45 AM3/5/20
to dspac...@googlegroups.com
Hi

Check your email configuration, or disable it and try again.
It can be a bottle-neck if it have bad configuration.

Regards
Adan

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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/CAGEJAoGi%3DKi_6PG2XQywSCmzpnZ6ttBXtPPiarCm7YuHDTpbmA%40mail.gmail.com.



Libre de virus. www.avast.com

Ashim Kapoor

unread,
Mar 6, 2020, 7:17:39 AM3/6/20
to Adan, br...@atmire.com, DSpace Technical Support
Dear Bram and Adam,

When I do this [dspace]/bin/test-email

I get this :

About to send test email:
 - To: x...@gmail.com
 - Subject: DSpace test email
 - Server: smtp.gmail.com

It is frozen at this place.

The Email section in local.cfg looks like this (the filled in entries are denoted by xxx) :-

# SMTP mail server (allows DSpace to send email notifications)
mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)
mail.server.username = xxx
mail.server.password = xxx

# SMTP mail server alternate port (defaults to 25)
mail.server.port = 25

# From address for mail
# All mail from the DSpace site will use this 'from' address
mail.from.address = xxx

# When feedback is submitted via the Feedback form, it is sent to this address
# Currently limited to one recipient!
feedback.recipient = xxx

# General site administration (Webmaster) e-mail
mail.admin = xxx

# Recipient for server errors and alerts (defaults to mail.admin)
#alert.recipient = ${mail.admin}

# Recipient for new user registration emails (defaults to unspecified)
#registration.notify =

Ayuka Phanuel

unread,
Mar 6, 2020, 7:36:33 AM3/6/20
to Ashim Kapoor, Adan, br...@atmire.com, DSpace Technical Support
I think you need to change the SMTP Port from default to the GMAIL Ports as below.
Gmail SMTP port (TLS): 587
Gmail SMTP port (SSL): 465

Port 587 is your best bet.



Ashim Kapoor

unread,
Mar 7, 2020, 12:09:51 AM3/7/20
to Ayuka Phanuel, Adan, br...@atmire.com, DSpace Technical Support
Dear Ayuka,

I switched to port 587.

Now I am able to submit an item to a Collection. However I am not able to register a new user. It says "Unable to send email to this address".

Also earlier I never mentioned the ports you have mentioned. Why was it working fine earlier without the ports?

Please see below:-
root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email

About to send test email:
 - To: x...@gmail.com
 - Subject: DSpace test email
 - Server: smtp.gmail.com

Error sending email:
 - Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. d77sm25077809pfd.109 - gsmtp


Please see the DSpace documentation for assistance.



root@DSpace:/home/dspace/dspace-install/bin#

Ashim Kapoor

unread,
Mar 7, 2020, 3:18:53 AM3/7/20
to Ayuka Phanuel, Adan, Bram Luyten, DSpace Technical Support
Hi there,

When I switch to port 465, it allows submission but not user registration.

Here is the output:-


root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email

About to send test email:
 - To: x...@gmail.com
 - Subject: DSpace test email
 - Server: smtp.gmail.com

Error sending email:
 - Error: javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1)


Please see the DSpace documentation for assistance.



root@DSpace:/home/dspace/dspace-install/bin#

Ayuka Phanuel

unread,
Mar 7, 2020, 4:37:42 AM3/7/20
to Ashim Kapoor, DSpace Technical Support

You might need to log in to your Gmail account through a web browser and enable access through less secure apps for this to work if you haven't already.


Ashim Kapoor

unread,
Mar 7, 2020, 5:32:21 AM3/7/20
to Ayuka Phanuel, DSpace Technical Support
I turned less secure apps on and I get :-

root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email

About to send test email:
 - To: x...@gmail.com
 - Subject: DSpace test email
 - Server: smtp.gmail.com

Error sending email:
 - Error: javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1)

Please see the DSpace documentation for assistance.



root@DSpace:/home/dspace/dspace-install/bin#

Ashim Kapoor

unread,
Mar 8, 2020, 1:26:08 AM3/8/20
to Ayuka Phanuel, DSpace Technical Support

Dear Ayuka,

here is the snippet from my local.cfg

#######################
# EMAIL CONFIGURATION #
#######################


# SMTP mail server (allows DSpace to send email notifications)
mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)
mail.server.username = x...@gmail.com
mail.server.password = yyy


# SMTP mail server alternate port (defaults to 25)
mail.server.port = 465


# From address for mail
# All mail from the DSpace site will use this 'from' address
mail.from.address = x...@gmail.com


# When feedback is submitted via the Feedback form, it is sent to this address
# Currently limited to one recipient!
feedback.recipient = x...@gmail.com


# General site administration (Webmaster) e-mail
mail.admin = x...@gmail.com


# Recipient for server errors and alerts (defaults to mail.admin)
#alert.recipient = ${mail.admin}

# Recipient for new user registration emails (defaults to unspecified)
#registration.notify =
mail.extraproperites = mail.smtp.starttls.enable.true

########################



root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email

About to send test email:
 - To: x...@gmail.com
 - Subject: DSpace test email
 - Server: smtp.gmail.com

Error sending email:
 - Error: javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1)

Please see the DSpace documentation for assistance.



root@DSpace:/home/dspace/dspace-install/bin#


Many thanks for your help.
Best,
Ashim

On Sat, 7 Mar 2020 at 21:57, Ayuka Phanuel <ayukap...@gmail.com> wrote:
And you have to add this to your local.cfg
mail.extraproperties = mail.smtp.starttls.enable=true



On Sat, Mar 7, 2020 at 4:38 PM Ayuka Phanuel <ayukap...@gmail.com> wrote:
While using port 587 ?

Alan Orth

unread,
Mar 8, 2020, 3:56:38 AM3/8/20
to Ashim Kapoor, Ayuka Phanuel, DSpace Technical Support
Dear Ashim,

It looks like Gmail isn't working on port 465 (can't connect), whereas port 587 was working, but simply needed you to turn on STARTTLS. Try adding this to your dspace.cfg:

mail.extraproperties = mail.smtp.starttls.enable=true

Regards,

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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.


--

Ashim Kapoor

unread,
Mar 8, 2020, 4:17:29 AM3/8/20
to Alan Orth, Ayuka Phanuel, DSpace Technical Support
Dear Alan,

Here is my local.cfg:-
#######################
# EMAIL CONFIGURATION #
#######################

# SMTP mail server (allows DSpace to send email notifications)
mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)
mail.server.username = x...@gmail.com
mail.server.password = xxx


# SMTP mail server alternate port (defaults to 25)
mail.server.port = 587


# From address for mail
# All mail from the DSpace site will use this 'from' address
mail.from.address = x...@gmail.com

# When feedback is submitted via the Feedback form, it is sent to this address
# Currently limited to one recipient!
feedback.recipient = x...@gmail.com

# General site administration (Webmaster) e-mail
mail.admin = x...@gmail.com

# Recipient for server errors and alerts (defaults to mail.admin)
#alert.recipient = ${mail.admin}

# Recipient for new user registration emails (defaults to unspecified)
#registration.notify =
mail.extraproperites = mail.smtp.starttls.enable=true 

------------- snip ---------------------


root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email

About to send test email:
 - To: x...@gmail.com
 - Subject: DSpace test email
 - Server: smtp.gmail.com

Error sending email:
 - Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. x4sm35270976pgi.76 - gsmtp



Please see the DSpace documentation for assistance.

--------------------------------------------------------------------------------

Why is it still giving the Start TLS error ?

Thank you,
Ashim

Ashim Kapoor

unread,
Mar 9, 2020, 6:18:04 AM3/9/20
to Alan Orth, Ayuka Phanuel, DSpace Technical Support
Can someone please help me ?

I have made changes to local.cfg ( this file has the starttls option)  and not to dspace.cfg

It says -  must issue a start  tls

What should I do ?

Thank you,
Ashim

Ashim Kapoor

unread,
Mar 9, 2020, 7:45:50 AM3/9/20
to Alan Orth, Ayuka Phanuel, DSpace Technical Support
I had misspelled mail.extraproperties.
Reply all
Reply to author
Forward
0 new messages