RapidMiner

0 Likes

Read Document (Emails) on RapidMiner Server

Status: Investigating
Hello

I made a process where I read emails with the Operator "Read Documents from Mails". The process is saved in my rapidminer server instance. I use the "explicit" config.

Issue: when I test the process in RapidMiner Studio, it connects successfully and reads all emails. As soon as I submit the process to the server, it breaks with the error "authentication FAILED".

How can this be?

Please help!

Many thanks in advance!
Carolina
14 Comments (14 New)
Comments
RM Staff

Hi @cmaestri,

 

Which versions of Studio and Server are you running? Are they the same? A recent improvement in password encryption might mess with your setup if you use different versions.

 

Best,

Edin

Contributor I

Hi @Edin_Klapic

 

Thanks for getting back to me.

 

Here are the versions:

Studio Free 8.1.000

Server Free 8.1.0

Everything is installed on a Windows Server 2012 R2.

 

The versions are the same, there should not be incompatibilities in that sense...

 

Thaks and regards,

Carolina

RM Staff

Hi @cmaestri,

 

Ok, so we can exclude the version problem.

Just to make sure: You wrote the authentication failed when you submit the process to RapidMiner Server.

What do you mean by that? Saving, Executing via "Run Process on Server", ... ?

 

For further investigation I have 2 requests:

  1. Which email provider do you want to access?
  2. Can you post the logfile of the failing process? It is available through the Web Interface of RapidMiner Server. Please make sure that you remove confidential information.

Best,

Edin

Contributor I

Hi @Edin_Klapic

 

This is the general error message that I receive from RapidMiner:

"Login failed: RapidMiner cannot connect to your IMAP or POP3 server, probably due to a wrong host name, user name or password, or a broken Internet connection."

To your questions:
1- the email address is a "company" email address, and the provider is "www09.servertown.ch"

2- the error log is attached

Thanks for your support!

Bests,
Carolina

RM Staff

Hi @cmaestri,

 

I just realized we were not talking about the version of your Text processing extension on the Server (and the ofc the Job Agent).

Although it might not be the root of this problem we recommend to always use the same extension version in both environments.

 

The error description does not really lead to this but are you sure that your Server has access to the internet?

You can check this by executing the Operator Get Page e.g. on the url http://www09.servertown.ch and store and examine the result.

 

Best,

Edin

Contributor I

Hi @Edin_Klapic

 

The extension Text Processing is the same on Studio as on Server.

The Server does have access to the internet, since I manage to read several web pages and RSS feeds.
The issue is with the emails: not only this one I mentioned you, but also ones from outlook server.

 

What about connection properties? So far I specify only "mail.imap.ssl.enable" and "mail.imap.port". Is there a parameter that allows me to specify e.g. the password? Maybe if the Server gets it in "letters", the login can be successful.

 

What do you think?

Thanks again and regards,

Carolina

RM Staff

Hi @cmaestri

Did you get a chance to read this KB article, related to reading mail from outlook mail?

https://community.rapidminer.com/t5/RapidMiner-Studio-Knowledge-Base/Access-e-mails-with-the-Text-Pr...

 

Cheers,

Contributor I

Hi @Pavithra_Rao

 

yes, indeed I ran into that article few days ago, and implemented what it was suggested. This however did not help, I still get the error "authentication failed" when I submit my process to the server and the server has to execute it.
Again, when I run the process in RM Studio, it works marvellously.

 

The issue is in the RapidMiner Server!

 

Anyone else who can think of any useful connection property to fix this?

Thanks a lot

Carolina

Contributor I

@Edin_Klapic @Pavithra_Rao

 

I found out, after 1 day of investigation, that it is a problem linked to encryption.

 

Indeed, when I run the process in RapidMiner Studio, the program decrypts the password before sending the authentication request.
Whereas in RapidMiner Server, the program sends the request without decrypting the password.

 

I believe, this is a bug that the team should fix.

 

Meanwhile, I try to roll back to the old version of text processing, hoping that it will work.

 

thanks again for the support!!

 

Regards,

Carolina Maestri

RM Staff

Hi @cmaestri,

 

Good you could identify the issue.
Just for clarification: Your were using Version 8.1. of the Text Processing extension on both environments, right?

Because the encryption was introduced with this version of Studio and Server which needed a new version of the Extension.

 

Thanks and Best regards,

Edin