nextcloud-user-ispconfig icon indicating copy to clipboard operation
nextcloud-user-ispconfig copied to clipboard

Unexpected error during account creation

Open TonyGravagno opened this issue 4 years ago • 0 comments

I'm completely new to NC and this app. I have ISPConfig working with Roundcube via a plugin that uses the SOAP interface. So that interface and the user/password all work. I'm looking to replace RC with the NC mail app. Note the map_uids=false below. I'm trying to connect as follows: image I set IMAP to 993 and SMTP to 465. For the IMAP user and SMTP user I've tried both the loginID and the email address. The user/password for the mailbox are correct. I'm using them successfully from Outlook.

In config.php I have debug logging active. The stream of log detail includes the following:

"app":"PHP","method":"POST", "url":"/index.php/apps/mail/api/accounts", "message":{"Exception":"Error","Message":"stream_socket_client(): unable to connect to ssl://mail2.domain.tld:143 (Unknown error) at /var/www/aaa/bbb/ccc/ddd/apps/mail/vendor/pear-pear.horde.org/Horde_Socket_Client/Horde/Socket/Client.php#293","Code":0

Note again, despite that error, I set the IMAP port to 993, not 143. And I didn't include a mail2 subdomain in my specs so I don't know where that comes from.

"url":"/index.php/apps/mail/api/accounts","message":{"Exception":"Error", "Message":"stream_socket_client(): Failed to enable crypto at /var/www/aaa/bbb/ccc/ddd/apps/mail/vendor/pear-pear.horde.org/Horde_Socket_Client/Horde/Socket/Client.php#293","Code":0 "url":"/index.php/apps/mail/api/accounts","message":{"Exception":"Error", "Message":"steam_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1408F10B:SSL routines:ssl3_get_record:wrong version number at ...same line...

That's the same line, different errors.

"method":"POST","url":"/index.php/apps/mail/api/accounts","message":"Test-Account-Failed: my_nc_user_id, my.domain, 993, [email protected], none -> Error connecting to mail server.",... "method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications", "message":"User backend OC_User_ISPCONFIG not found.", ...

I'm sure there is more info in the log but it's tough to find with so much detail. Based on a few of these errors I'm guessing there is a missing dependency that does crypo - but no clue which one is missing. I'll look into that until I hear back from you.

I do not see any ISPConfig log activity when clicking connect on the mail app. I'm not sure when your app/plugin activates. I would be happy to set debug tracing wherever you suggest and to report back with any logs. I haven't looked at your code. Sorry - no time, I've been playing user all day on this project. But I will work with you to find out if/when the connection is made with ISPConfig and then what happens after.

Thanks!

NC 20 nui v0.4.7 Installed from NC app UI ISPConfig 3.2 Ubuntu 20

'user_backends' => array(
      0 => array(
          'class' => 'OC_User_ISPCONFIG',
          'arguments' =>
              array(
                  0 => 'https://zz.domain.tld:8080/remote/index.php',
                  1 => 'https://zz.domain.tld:8080/remote/',
                  2 => 'soap_user',
                  3 => 'soap_psw',
                  4 => array(
                         'map_uids' => false
                       )
              ),
      ),
)

TonyGravagno avatar Dec 22 '20 04:12 TonyGravagno