Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HestiaCP Install not working #1128

Closed
LIFETAB opened this issue May 12, 2023 · 26 comments
Closed

HestiaCP Install not working #1128

LIFETAB opened this issue May 12, 2023 · 26 comments
Labels
external Issue is outside our code

Comments

@LIFETAB
Copy link

LIFETAB commented May 12, 2023

Describe the bug
I tried to use your v-add-sys-snappymail file to install snappymail on hestiacp, but i get errors.

To Reproduce
Steps to reproduce the behavior:

  1. Install hestiacp
  2. Setup the domain and mail services
  3. Download the integration for hestiacp form this respository
  4. Put it into this directory /usr/local/hestia/bin and give it permissions.
  5. run v-add-sys-snappymail as root user in your terminal

Expected behavior
I expected snappymail to install with no problems

Screenshots
image

Please complete the following information:

I don' know i just used your integration script with hestiacp

  • Browser: [e.g. chromium 100, firefox 100, safari 14, mobile]
  • IMAP daemon: [e.g. courier, dovecot]
  • PHP version:
  • SnappyMail Version:
  • Mode: [e.g. standalone, nextcloud, cyberpanel, docker]

Debug/logging information
there are no except for the screenshot above

@the-djmaze
Copy link
Owner

the-djmaze commented May 12, 2023

Does the following work?
wget "https://snappymail.eu/repository/latest.tar.gz" --retry-connrefused -O "/var/lib/snappymail/snappymail-latest.tar.gz"

@LIFETAB
Copy link
Author

LIFETAB commented May 12, 2023

The command works, but the installation doesn't :/

image

@LIFETAB
Copy link
Author

LIFETAB commented May 13, 2023

Can you fix it or help me out @the-djmaze? Maybe i'm doing something wrong idk.

@the-djmaze
Copy link
Owner

I might could fix it, but i don't have Hestia.
Currently it is draft code and someone might do a better job at it.

Also see hestiacp/hestiacp#2620

the-djmaze pushed a commit that referenced this issue May 16, 2023
the-djmaze pushed a commit that referenced this issue May 16, 2023
@the-djmaze
Copy link
Owner

Try with https://github.com/the-djmaze/snappymail/tree/master/integrations/hestiacp

bin/v-add-sys-snappymail to hestia bin/v-add-sys-snappymail
install/deb/snappymail/install.php to hestia install/deb/snappymail/install.php

the-djmaze pushed a commit that referenced this issue May 16, 2023
@the-djmaze
Copy link
Owner

I see more is needed. Working on it at https://github.com/the-djmaze/hestiacp

@LIFETAB
Copy link
Author

LIFETAB commented May 16, 2023

Could you tell me when you have fixed it? Thank you!

@the-djmaze
Copy link
Owner

I can't as i don't use HestiaCP
Someone should test and finish my code at hestiacp/hestiacp#3590

@the-djmaze the-djmaze added help wanted Extra attention is needed external Issue is outside our code labels May 16, 2023
@LIFETAB
Copy link
Author

LIFETAB commented May 16, 2023

Okay

@jaapmarcus
Copy link

I can't as i don't use HestiaCP

Someone should test and finish my code at hestiacp/hestiacp#3590

Working on it..

It should work right now...

@LIFETAB
Copy link
Author

LIFETAB commented May 17, 2023

I can't as i don't use HestiaCP
Someone should test and finish my code at hestiacp/hestiacp#3590

Working on it..

It should work right now...

yes i managed to get it to work, thank you for your work, but one more thing, the password change plugin failes to change the mail password for hestiacp in the webmail:
image

I have installed and enabled the plugin password change and i also have the hestia driver from this respository, and i configured the plugin to access my hestia host and port

@the-djmaze
Copy link
Owner

When you enable debug log in application.ini or ?admin config.
Then you can see in the log why it fails.

@LIFETAB
Copy link
Author

LIFETAB commented May 17, 2023

Thank you!
I've found the error, the plugin 'change_password' has the settings for hestia: "hestia_host" and "hestia_port". The driver for hestia in /plugins/change-password-hesita/driver.php expects a variable of "hestia_login",.

I would suggest to update this line in the driver for hesita: $sHost = $this->oConfig->Get('plugin', 'hestia_login'); to
$sHost = $this->oConfig->Get('plugin', 'hestia_host');.

@jaapmarcus
Copy link

hestia_login

That fixes the issue...

@LIFETAB
Copy link
Author

LIFETAB commented May 17, 2023

hestia_login

That fixes the issue...

What do you mean? I've changed the line in the driver to get the variable hestia_host from the snappymail plugin and use as the host url of hestia, before that it tried to get the variable hestia_login which is not existing in the plugin configuration, so it tried to access hestia at https://:8083/. Now its working correctly and accessing it with https://[url or ip of hestia]:8083/

@jaapmarcus
Copy link

0ae7b11

@LIFETAB
Copy link
Author

LIFETAB commented May 17, 2023

Oh, nvm I didn't notice you changed it. Btw thank you for such fast work on integrating snappymail into hestia :)

@michelsouzams
Copy link

Is it possible to install on a normal cpanel hosting like rainloop?

@the-djmaze
Copy link
Owner

the-djmaze commented May 23, 2023

jaapmarcus has improved and fixed my attempt and merged it into HestiaCP.

I've added it to the wiki.
https://github.com/the-djmaze/snappymail/wiki/Installation-instructions#hestiacp

@jaapmarcus
Copy link

Will be released with 1.8 ...

@michelsouzams
Copy link

I want to install on a cpanel hosting account, it would not be on WHM. Normal hosting as I already do with Rainloop. It's possible ?

@jaapmarcus
Copy link

In your case you will need to download snappy mail and install it the same way as you did with Rainloop it should work fine.

How ever this is not related to this issue...

@michelsouzams
Copy link

I've tried that, "HTTP ERROR 500" appears.

About the topic, I didn't find anything about it.

@jaapmarcus
Copy link

Create a new issue. It is not related to this issue or HestiaCP

@michelsouzams
Copy link

Thanks!

@the-djmaze the-djmaze removed the help wanted Extra attention is needed label May 23, 2023
@demlasjr
Copy link

demlasjr commented Aug 17, 2023

Hi @the-djmaze,
I just installed snappymail using the v-add-sys-snappymail command, everything installs just well but I cannot login into any email address, either admin panel. This is what I'm getting from the logs. I'm kinda lost trying to debug it.

[2023-08-17 11:25:10.042][a13636a2] [INFO]: [SM:2.28.4][IP:79.117.16.168][PID:224846][Apache/2.4.57 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.9][fpm-fcgi][Streams:tcp,udp,unix,udg,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3][POST https://webmail.test.net/?/Json/&q[]=/0/]
[2023-08-17 11:25:10.043][a13636a2] JSON[INFO]: Action: DoLogin
[2023-08-17 11:25:10.043][a13636a2] POST[INFO]: {"Email":"[email protected]","Password":"******","language":"","signMe":"1","Action":"Login"}
[2023-08-17 11:25:10.043][a13636a2] IMAP[INFO]: Start connection to "tcp://locahost:143"
[2023-08-17 11:25:10.044][a13636a2] IMAP[INFO]: Connect (success)
[2023-08-17 11:25:10.044][a13636a2] IMAP[DEBUG]: 0.00020599365234375 (raw connection)
[2023-08-17 11:25:10.049][a13636a2] IMAP[INFO]: < * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Mail Delivery Agent\r\n
[2023-08-17 11:25:10.049][a13636a2] IMAP[DEBUG]: 0.0058109760284424 (
)
[2023-08-17 11:25:10.049][a13636a2] IMAP[INFO]: > TAG1 AUTHENTICATE PLAIN *******\r\n
[2023-08-17 11:25:12.052][a13636a2] IMAP[INFO]: < TAG1 NO [AUTHENTICATIONFAILED] Authentication failed.\r\n
[2023-08-17 11:25:12.052][a13636a2] IMAP[DEBUG]: 2.002366065979 (TAG1)
[2023-08-17 11:25:12.052][a13636a2] IMAP[WARNING]: MailSo\Imap\Exceptions\NegativeResponseException: AUTHENTICATIONFAILED Authentication failed. in /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ResponseCollection.php:46
Stack trace:
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(542): MailSo\Imap\ResponseCollection->validate()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(465): MailSo\Imap\ImapClient->getResponse()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(181): MailSo\Imap\ImapClient->SendRequestGetResponse()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(298): MailSo\Imap\ImapClient->Login()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(238): RainLoop\Model\Account->netClientLogin()
#5 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(418): RainLoop\Model\Account->ImapConnectAndLogin()
#6 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#7 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#8 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#9 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#10 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#11 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#12 /var/lib/snappymail/index.php(11): include('...')
#13 {main}
[2023-08-17 11:25:12.052][a13636a2] IMAP[NOTICE]: MailSo\Imap\Exceptions\NegativeResponseException: AUTHENTICATIONFAILED Authentication failed. in /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ResponseCollection.php:46
Stack trace:
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(542): MailSo\Imap\ResponseCollection->validate()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(465): MailSo\Imap\ImapClient->getResponse()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(181): MailSo\Imap\ImapClient->SendRequestGetResponse()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(298): MailSo\Imap\ImapClient->Login()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(238): RainLoop\Model\Account->netClientLogin()
#5 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(418): RainLoop\Model\Account->ImapConnectAndLogin()
#6 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#7 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#8 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#9 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#10 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#11 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#12 /var/lib/snappymail/index.php(11): include('...')
#13 {main}

Next MailSo\Imap\Exceptions\LoginBadCredentialsException: AUTHENTICATIONFAILED Authentication failed. in /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php:241
Stack trace:
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(298): MailSo\Imap\ImapClient->Login()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(238): RainLoop\Model\Account->netClientLogin()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(418): RainLoop\Model\Account->ImapConnectAndLogin()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#5 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#6 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#7 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#8 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#9 /var/lib/snappymail/index.php(11): include('...')
#10 {main}
[2023-08-17 11:25:15.039][a13636a2] SERVICE[WARNING]: AuthError[102]
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#5 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#6 /var/lib/snappymail/index.php(11): include('...')
#7 {main}
[2023-08-17 11:25:15.039][a13636a2] SERVICE[WARNING]: - AUTHENTICATIONFAILED Authentication failed. @ /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php#241
[2023-08-17 11:25:15.039][a13636a2] [ERROR]: MailSo\Imap\Exceptions\NegativeResponseException: AUTHENTICATIONFAILED Authentication failed. in /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ResponseCollection.php:46
Stack trace:
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(542): MailSo\Imap\ResponseCollection->validate()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(465): MailSo\Imap\ImapClient->getResponse()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php(181): MailSo\Imap\ImapClient->SendRequestGetResponse()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(298): MailSo\Imap\ImapClient->Login()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(238): RainLoop\Model\Account->netClientLogin()
#5 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(418): RainLoop\Model\Account->ImapConnectAndLogin()
#6 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#7 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#8 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#9 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#10 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#11 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#12 /var/lib/snappymail/index.php(11): include('...')
#13 {main}

Next MailSo\Imap\Exceptions\LoginBadCredentialsException: AUTHENTICATIONFAILED Authentication failed. in /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/MailSo/Imap/ImapClient.php:241
Stack trace:
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(298): MailSo\Imap\ImapClient->Login()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Model/Account.php(238): RainLoop\Model\Account->netClientLogin()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(418): RainLoop\Model\Account->ImapConnectAndLogin()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#5 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#6 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#7 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#8 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#9 /var/lib/snappymail/index.php(11): include('...')
#10 {main}

Next RainLoop\Exceptions\ClientException: AuthError[102] in /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php:429
Stack trace:
#0 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/UserAuth.php(140): RainLoop\Actions->imapConnect()
#1 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Actions/User.php(44): RainLoop\Actions->LoginProcess()
#2 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/ServiceActions.php(142): RainLoop\Actions->DoLogin()
#3 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(132): RainLoop\ServiceActions->ServiceJson()
#4 /var/lib/snappymail/snappymail/v/2.28.4/app/libraries/RainLoop/Service.php(14): RainLoop\Service::RunResult()
#5 /var/lib/snappymail/snappymail/v/2.28.4/include.php(143): RainLoop\Service::Handle()
#6 /var/lib/snappymail/index.php(11): include('...')
#7 {main}
[2023-08-17 11:25:15.039][a13636a2] JSON[INFO]: {"Action":"Login","Result":false,"ErrorCode":102,"ErrorMessage":"","ErrorMessageAdditional":"AUTHENTICATIONFAILED Authentication failed.","epoch":1692271515}
[2023-08-17 11:25:15.039][a13636a2] [INFO]: Memory peak usage: 2MB
[2023-08-17 11:25:15.039][a13636a2] [INFO]: Time delta: 5.0003340244293
[2023-08-17 11:25:15.039][a13636a2] IMAP[INFO]: Disconnected from "tcp://localhost:143" (success)
[2023-08-17 11:25:15.039][a13636a2] IMAP[DEBUG]: 4.9959609508514 (net session)

Any idea? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issue is outside our code
Projects
None yet
Development

No branches or pull requests

5 participants