+5
Answered
https loading very slow
Hello, did you feel https is loading very slow? I installed the latest version and https usually takes two to three minutes to load, do you have this problem?
Answer
-3
Answer
Answered
Eugene Pankov (Project coordinator) 11 years ago
Fix released
Please include your OS, python-gevent and browser versions
-1
Hello, sorry for reply so late, after some research, I figured out why it is very slow. I install the newest Ajenti in Ubuntu Server 12.04 64bit, following your official Ubuntu installation guide, and I use the Developer Tool of Chrome Browser to observe network actions performed when login into Ajenti. Picture 1 shows the loading process before click LOGIN IN button.
Picture 2 shows after click LOGIN IN button.
resources.js file takes so long time to load, 4.4MB is so big, Chrome Browser loads it twice before login and after, so the result is we should wait a short time waiting for the login page come in front and the main page after click LOGIN IN button.
Picture 2 shows after click LOGIN IN button.
resources.js file takes so long time to load, 4.4MB is so big, Chrome Browser loads it twice before login and after, so the result is we should wait a short time waiting for the login page come in front and the main page after click LOGIN IN button.
Hi John, thank you for the research! Could you please check the transfer size and time of resources.js with e.g. Firefox? And please check which SSL/TLS/encryption is active in your Chrome session.
-1
Hello, Chrome gives me following information:
"Your connection to xxx.com is encrypted with 128-bit encryption
the connection uses TLS 1.2
the connection is encrypted and authenticated using AES_128_GCM and uses
RSA as the key exchange mechanism"
Firefox loading process as following:
Firefox encrypt information:
"Connection Encrypted: High-grade encryption (TLS_RSA_WITH_CAMELLA_256_CBC_SHA, 256bit keys)"
My server's ping time is about 50ms, and has a 1Mbps bandwidth, wget can reach the full bandwidth about 130 KB/s. I have also tested in 2Mbps Ubuntu server(12.04, 64-bit), but also get slow connection.
"Your connection to xxx.com is encrypted with 128-bit encryption
the connection uses TLS 1.2
the connection is encrypted and authenticated using AES_128_GCM and uses
RSA as the key exchange mechanism"
Firefox loading process as following:
Firefox encrypt information:
"Connection Encrypted: High-grade encryption (TLS_RSA_WITH_CAMELLA_256_CBC_SHA, 256bit keys)"
My server's ping time is about 50ms, and has a 1Mbps bandwidth, wget can reach the full bandwidth about 130 KB/s. I have also tested in 2Mbps Ubuntu server(12.04, 64-bit), but also get slow connection.
-2
Same for me on Centos 6.5, python-gevent=0.13.8, latest chrome and firefox and this message in ajenti.err.log : /usr/lib64/python2.6/site-packages/gevent/socket.py:795: DeprecationWarning: gevent.sslold is deprecated; use gevent.ssl instead (install ssl package from PyPI)
from gevent.sslold import ssl, sslerror, SSLObject as SSLType
No problem without https
from gevent.sslold import ssl, sslerror, SSLObject as SSLType
No problem without https
Please check whether
python -c "import gevent.ssl"
yields any errors
python -c "import gevent.ssl"
yields any errors
Same error, it seems to be a python centos problem :
/usr/lib64/python2.6/site-packages/gevent/socket.py:795: DeprecationWarning: gevent.sslold is deprecated; use gevent.ssl instead (install ssl package from PyPI)
from gevent.sslold import ssl, sslerror, SSLObject as SSLType
When i want install ssl mod with pip, i have this error :
pip install ssl
Downloading/unpacking ssl
Running setup.py egg_info for package ssl
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/ssl/setup.py", line 12, in <module>
+ "or earlier.")
ValueError: This extension should not be used with Python 2.6 or later (already built in), and has not been tested with Python 2.3.4 or earlier.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/ssl/setup.py", line 12, in <module>
+ "or earlier.")
ValueError: This extension should not be used with Python 2.6 or later (already built in), and has not been tested with Python 2.3.4 or earlier.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/ssl
Storing complete log in /root/.pip/pip.log
/usr/lib64/python2.6/site-packages/gevent/socket.py:795: DeprecationWarning: gevent.sslold is deprecated; use gevent.ssl instead (install ssl package from PyPI)
from gevent.sslold import ssl, sslerror, SSLObject as SSLType
When i want install ssl mod with pip, i have this error :
pip install ssl
Downloading/unpacking ssl
Running setup.py egg_info for package ssl
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/ssl/setup.py", line 12, in <module>
+ "or earlier.")
ValueError: This extension should not be used with Python 2.6 or later (already built in), and has not been tested with Python 2.3.4 or earlier.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/ssl/setup.py", line 12, in <module>
+ "or earlier.")
ValueError: This extension should not be used with Python 2.6 or later (already built in), and has not been tested with Python 2.3.4 or earlier.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/ssl
Storing complete log in /root/.pip/pip.log
-1
The warning message about installing ssl module is incorrect; it's built into Python 2.6+.
Make sure that you have run command with import gevent.ssl, not import gevent.socket; you shouldn't receive any warnings from gevent/socket.py:795 in it.
Make sure that you have run command with import gevent.ssl, not import gevent.socket; you shouldn't receive any warnings from gevent/socket.py:795 in it.
I'm not stupid, absolutely certain.
at ligne 795 in gevent/socket.py :
try:
from gevent.ssl import sslwrap_simple as ssl, SSLError as sslerror, SSLSocket as SSLType
_have_ssl = True
except ImportError:
try:
from gevent.sslold import ssl, sslerror, SSLObject as SSLType
_have_ssl = True
except ImportError:
pass
at ligne 795 in gevent/socket.py :
try:
from gevent.ssl import sslwrap_simple as ssl, SSLError as sslerror, SSLSocket as SSLType
_have_ssl = True
except ImportError:
try:
from gevent.sslold import ssl, sslerror, SSLObject as SSLType
_have_ssl = True
except ImportError:
pass
-2
I'm convinced that importing gevent.ssl throws ImportError due to some problem, that's why I was asking to try importing it directly. As you can see, ImportError is suppressed, and gevent.sslold is imported instead; gevent.sslold emits "install ssl" warning unconditionally (see source).
+1
What mean fix released?. I got the same problem and I've installded ajenti-v just today.
HTTPS interface is just MEGA slow.
Also, the reources file at https://host:8000/ajenti:static/resources.js takes ages to load.
I really like the Ajenti look and it's functions, but I must know if I can fix the https slow load and avoid 4Mb download for administering server.
I use 3G networks to maintain servers so bandwich it's a must. Other solutions like VestaCP and Sentora loads in seconds. I don't undestand why Ajenti shoulnd't do same.
Best regards.
Customer support service by UserEcho