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

Time response too long when browsing after login. #139

Closed
patricklbs opened this issue Aug 23, 2012 · 12 comments
Closed

Time response too long when browsing after login. #139

patricklbs opened this issue Aug 23, 2012 · 12 comments
Milestone

Comments

@patricklbs
Copy link

Hello,
There is a problem of response time Teampass 2.1.8. The same existed on previous versions (2.1.5).
We have 55 directories, 14 roles, 39 users and 110 passwords around.
When I connect everything is fine, when I want to go where passwords anywhere in the tree response time 1.50 minutes, then everything goes well.

Here is a video counter:

http://youtu.be/k1W_TFhwyvI

I noticed that maybe it had to do with the browser cache, because when I empty it in the air about work, but not all the time.
Can you do something please.
This is very detrimental to us.

Thanks

Patrick.

@patricklbs
Copy link
Author

Oh I believe this issue is the same of this : #135

@nilsteampassnet
Copy link
Owner

Hello

I've done many change in my configurations in order to reproduce.
I've now reproduced it and will start working on it.

Can you confirm that this happens only when you open the "Items" page the 1st time you get connected.
After it works normally until you shut down your web-browser.

Please confirm what I've experienced.

@nilsteampassnet
Copy link
Owner

Can you tell me if you don't have any issues for sending emails?

Check in database the table "emails". Is it empty or not?

Check in your "Apache error log" file. Do you see any error similar to "PHP Fatal error: Maximum execution time" associated to file "sources\class.smtp.php"?

If yes, this is linked to a SMTP setting and emails can't be sent. Sure it should be improved to not "freeze" the browser.

@patricklbs
Copy link
Author

Hello,

For first question that is correct, when I login a first time, doesnt work il I open whatever page. And after works.
For emails it's right doesnt work, in my db it is not empty but I can see :
email not send, for all. Thank you.

you should know that teampass is installed and running with apache ssl fashion.

@nilsteampassnet
Copy link
Owner

Can you disable option "Send notification by email when Item is shown"?

This will disable the automatic email sending.

@mrojas73
Copy link

On my system I have a just tree folders one which has 287 items in it. On first login and upon selecting it, it takes 33 second to complete the browse...then I clicked a smaller folder and back, it took 30 seconds the second time.

Send notification by email when Item is shown has never been enabled on my system.

@nilsteampassnet
Copy link
Owner

Disable also option "Send an email to Admins on User log in"

The problem is only link to this sendmail step. Have you check the table "emails"? Delete existing items.

For your specific time problem, I suggest several things:
1- try creating more folders. For me it makes no sens to have only 3 folders and near 300 items ... but sure I don't know your needs.
2- disable options "Enable copy to clipboard small icons in items page", "Show Description in list of Items". Indeed more details you ask, need more queries.

@mrojas73
Copy link

I disabled those and didn't make much of a difference, I guess it doesn't
bother me too much and I can live with it :)

On Mon, Aug 27, 2012 at 2:18 PM, Nils Laumaillé notifications@github.comwrote:

Disable also option "Send an email to Admins on User log in"

The problem is only link to this sendmail step. Have you check the table
"emails"? Delete existing items.

For your specific time problem, I suggest several things:
1- try creating more folders. For me it makes no sens to have only 3
folders and near 300 items ... but sure I don't know your needs.
2- disable options "Enable copy to clipboard small icons in items page",
"Show Description in list of Items". Indeed more details you ask, need more
queries.


Reply to this email directly or view it on GitHubhttps://github.com//issues/139#issuecomment-8067164.

Live free, live Linux!

@patricklbs
Copy link
Author

I delete all messages in the mail table, I disable "Enable copy to clipboard small icons in items page", "Show Description in list of Items" and "Send an email to Admins on User log in".

This morning I don't know if it comes from the automatic sending of mail, but it works well.

@nilsteampassnet
Copy link
Owner

Yes it comes from this.

I've improved slightly this in 2.1.9, but it is a temporary solution.
In 2.2, I'll implement a real CRON system in order to permit tasks to be scheduled ;-)

nilsteampassnet added a commit that referenced this issue Sep 2, 2012
 * #126-#132-#130-#131-#139-#129-#141-#146
 * Italian translation
 * Find page - focus in search box (contributor: Jay2k1)
nilsteampassnet added a commit that referenced this issue Sep 2, 2012
 * #126-#132-#130-#131-#139-#129-#141-#146
 * Italian translation
 * Find page - focus in search box (contributor: Jay2k1)
@dmilojevic
Copy link

Hi,

I have been experiencing same behavior in different deployment scenarios (x64, x86, physical, virtual...) and found out that there is a message in the apache error log "PHP Notice: Undefined variable: ftp_server in /var/www/sources/admin.queries.php on line 47".
It takes 1 minute before the error happens after login (it is recorded in the log).

Why is teampass trying to access your FTP every time someone logs in and can we somehow replace this behavior?

Since there are some configuration files in the ftp folder, can they be downloaded periodically via cron+curl/wget and accessed locally?

Thank you.

Regards,

Dejan

@nilsteampassnet
Copy link
Owner

Hi

The issue you have is not the same as the one detailled previously.
In your case, you get a time issue due to the fact that TP is trying to reach the TeamPass.net domain in order to get data about last existing version and some other stuff about the tool.
I think that on your server you're blocking the access to internet so that this query isn't successfull. The time you wait depends on the settings you set on your server (for example I think it depends on max_execution_time variable).

If you don't want to get this information, I think you can comment the call LoadCPMInfo(); in load.php file

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants