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

Mail: Send mail doesn't work (timeout) when used in Safari #1102

Closed
konamac opened this issue Apr 6, 2018 · 34 comments
Closed

Mail: Send mail doesn't work (timeout) when used in Safari #1102

konamac opened this issue Apr 6, 2018 · 34 comments
Labels

Comments

@konamac
Copy link

konamac commented Apr 6, 2018

Authentic Theme 19.12 / Webmin 1.881 / Virtualmin 6.02 / Usermin 1.741 / Centos 7.4.1708

When sending mail using the "Send Mail" button on the Usermin webmail 'Compose Email' screen, the interface freezes at the mail sending page (/mailbox/send_mail.cgi); the red bar animation at the top of the page keeps bouncing back and forth, suggesting activity, but the operation eventually times out and the mail is not sent.

A customer reported this on "latest Mac, latest Safari" and I can duplicate the issue on OS X 10.12.6, Safari 11.1.

Cheers!

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Thanks for reporting, I'll try to reproduce it.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

PS On the same OS X machine, I can successfully send email using both Chrome and Firefox; it's a Safari-specific issue.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

Thanks!

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Unfortunately, it works just fine on my MacBook Air with Safari 11.0.3.

The mail is being reworked now. Did this issue start happening recently, or it's been like this forever for your customer?

@konamac
Copy link
Author

konamac commented Apr 6, 2018

It was just reported yesterday, shortly after I updated to the latest Usermin and then to the latest Authentic (before that, IIRC I was still on Authentic 19.09.2 as I was holding off the theme update until the latest Usermin update came through on the Centos repos.)

@konamac
Copy link
Author

konamac commented Apr 6, 2018

May be a Centos-specific issue?

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Could you open console in Safari and see what happens in Network tab, after you submit the mail?

@konamac
Copy link
Author

konamac commented Apr 6, 2018

It attempts to load sendmail.cgi; this times out after 60 seconds with the error "Failed to load resource: the server responded with a status of 400 (Timeout)". After this, it successfully loads index.cgi.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

(Are there any particular server-side logs you'd like me to check?)

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

What happens if you switch back to Gray Theme?

I don't use sendmail, this is the reason why it works for me. I'll need to do more tests.

Switch themes and try again please.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

Also FYI, just checked and the last time the user successfully sent mail was "5 or 6 days ago" - so before the recent update.
Will try with Gray theme.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

The problem disappears if I use "Gray Framed Theme" - send_mail.cgi loads successfully, and the mail is sent.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

However loading Gray Framed Theme makes me appreciate your beautiful theme all the more ;)

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Wait, no send_mail.cgi is also used with Postfix. Okay. Then I have no idea what's happening.

While it's Usermin and it has limited access, could you create for me a temporary account, so I could login an see what's going on?

Do you have XMPP, Slack or Wire where we could chat and share data securely?

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Can you do the following:

yum downgrade usermin

Clear cache and try again.

Then go to Webmin and upgrade the theme using Theme Configuration, to latest development version.

Then try again. Do you still have an issue?

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Damn, I'm being silly. I haven't upgraded that system to 1.741 when was running the tests.

After upgrade I see an issue too. I will do more investigations later, when I'm home.

Nothing else is needed. Sorry about that.

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

For your information, I'm having issue on Debian but not on Fedora.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

Just back from the gym, sounds like you made more progress than I did ;)
Glad you can duplicate it, irritating that it's varying by distro!

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

In that case, I don't see how it's the theme issue.

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

But I'll investigate more and in case it's the distro I will let guys know.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

I agree it is really weird that it's only happening in Safari if it's a server-side issue!

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

😳 After I installed it on Debian (only Usermin), it didn't load even on Chrome.

It needs more testing. I'll do it a bit later.

@konamac
Copy link
Author

konamac commented Apr 6, 2018

OK, thanks again for getting on this so promptly!

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

I have logged in using Safari to production server and Usermin 1.841 installed from Webmin repo - no issue when sending mail. I'm going to diff two version from different repos to figure things out.

Meanwhile, can you just run

yum reinstall http://download.webmin.com/download/yum/usermin-1.741-1.noarch.rpm

It will install the same version of Usermin but from Webmin repo.

Give it a try please. It's safe to do.

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Look, I have tested it with the system that 'failed' in the afternoon. I just had source files messing with the installation. I can confirm that Virtualmin repo contains exactly the same version of Usermin as Webmin repo.

Simply going in Safari to Develop/Empty Caches fixed my issue.

@iliajie iliajie closed this as completed Apr 6, 2018
@konamac
Copy link
Author

konamac commented Apr 6, 2018

Hiya, I've re-installed usermin as suggested, and I've emptied the caches in Safari, but I'm still seeing the same problem. (The same failure occurs when using the "Save and Edit" button on the Compose Mail screen - which is also invoking send_mail.cgi.)

Are you able to test with a later version of Safari ?

@iliajie
Copy link
Collaborator

iliajie commented Apr 6, 2018

Yes, it was the latest version of Safari. At first part of the day, I had previous version (not sure which one was that) and later, I received big update and tried it again at night, after installing it - all was fine.

Okay, I am afraid I'm gonna need a login. Is that possible? It's not clear what is broken. Guessing could work but it's time consuming.

In the morning I'm going to be busy, with ballet concert for my daughter but later in a day, I could login and see what's going on.

So if you downgrade, like suggested before, what happens? If you downgrade and it works, can you force update the theme (ignoring warning) to the latest development version and see if it would work with previous version of Usermin and latest theme?

@konamac
Copy link
Author

konamac commented Apr 7, 2018

With typically inconvenient timing, I'm actually busy with school holidays for much of the next week myself! I'll set up an email account with usermin login for you and send the details via your website this morning; more detailed changes to the server (which is a production server, so I have to be cautious) I can look at after next week. Thanks and enjoy the ballet!

@iliajie
Copy link
Collaborator

iliajie commented Apr 8, 2018

Kona, I hope you had a good weekend.

Okay, it's getting timed out for me too.

Can you send me complete config file for /etc/usermin/mailbox/config and /etc/usermin/mailbox/uconfig?

@iliajie
Copy link
Collaborator

iliajie commented Apr 8, 2018

I works in Chrome. I'm very surprised. Did you try to force update the theme to the latest development version? Please do it. I'll be able to run tests for a little bit more today still.

@iliajie
Copy link
Collaborator

iliajie commented Apr 15, 2018

Okay, I have done some more tests.

The only difference that I see in headers between Gray Theme and Authentic Theme, the accept header that is set in Gray Theme to:

Accept: text/html,application/xhtml+xml,application/xml

and in Authentic Theme it's set to:

Accept: text/html

I'm reworking mail anyway right now and this issue might be self-resolved in the process of rework. I have also reproduced it in my Safari with my server, so you can delete my test account.

Thank you for reporting.

@iliajie iliajie reopened this Apr 15, 2018
@iliajie iliajie changed the title Usermin / OS X / Safari - problem sending mail Mail: Send mail doesn't work (timeout) when used in Safari Apr 15, 2018
@iliajie iliajie added the bug label Apr 15, 2018
@konamac
Copy link
Author

konamac commented Apr 18, 2018

Thanks again!

@iliajie
Copy link
Collaborator

iliajie commented Apr 26, 2018

Additional ref.: Mailbox not refreshing using Authentic Theme.

@iliajie
Copy link
Collaborator

iliajie commented Apr 26, 2018

Cross referenced. - #431 (comment)

@iliajie iliajie closed this as completed Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants