Author Topic: Connection Reset problem  (Read 6952 times)

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Connection Reset problem
« on: November 11, 2009, 08:29:57 pm »
Does anyone else experience this? (see screenshot) It happens usually within a minute or two while viewing OG documents.  It doesn't happen WHILE the page is loading as the error reports, it happens AFTER  the page has been loaded. 

Is there a timeout setting or something that I can change to prevent this?
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Connection Reset problem
« Reply #1 on: November 12, 2009, 09:48:45 am »
Strange. So you manage to view the document and after a while the document changes to that error page?

Some questions that could help me:
  - Does this happen with other browsers?
  - Does this happen with other web pages?
  - When did this start happening?
  - What version of OpenGoo are you using?
  - What version of firefox are you using?
  - Here I found some possible solutions. Are you using an AVG addon in Firefox? Can you try disabling it?

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Connection Reset problem
« Reply #2 on: November 14, 2009, 05:12:17 pm »
Will test and get back to you with answers for all of these questions, thanks
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Connection Reset problem
« Reply #3 on: November 14, 2009, 07:08:46 pm »
1. tested on IE8, and after the same number of minutes delay, it happened on IE too.
2. never happens on other web pages, including other ajax-enabled sites
3. it started either v1.3 or v1.4, I don't recall exactly.
4. currently using OG v1.5.3
5. I am using Prism under FF v3.5.5, but it happens under native FF v3.5.5 as well.
6. I read that thread for solutions, but I think Prism does not use FF extensions?  As well, I'm not using AVG or any of those extensions.

Because I primarily use Prism, it does not have a status bar at the bottom nor tabs across the top, so in FF I noticed the page loading indicators were there until the timeout message happens (see attachment).

Also, I selected other types of documents, such as web links to documents, jpgs, pdf etc as well as each type of OG tab. Here is the result of my testing:

Overview: loads immediately, then Done okay.
Notes: loads immediately, then Done okay.
Email: loads immediately, then Done okay.
Contacts:loads immediately, then Done okay.
Calendar: loads immediately but shows "Transfering data..." for ~5 min, then Done okay.
Documents:
- OpenGoo html: it loads, but shows "Transfering data..." for ~5 min, then error.
- all other file types including presentations: loads immediately, then Done okay.
Tasks: loads immediately but shows "Waiting for..." forever, but no errors.
Web Links: loads immediately, then Done okay.
Time: loads immediately, then Done okay.
Reporting: loads immediately, then Done okay.

« Last Edit: November 14, 2009, 07:10:52 pm by Pet »
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Karlos

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Connection Reset problem
« Reply #4 on: November 16, 2009, 08:56:27 am »
Hello, I'm having similar problems in OG from external network, i can use xampp examples, xampp init page, phpmyadmin , etc... BUT OG don´t work  and cause the restart server connection error .
Check Apache httpd.conf "winnt_accept: Asynchronous AcceptEx failed" error, if so check this http://www.mydigitallife.info/2006/03/09/winnt_accept-asynchronous-acceptex-failed-error-in-apache-log/

Regards.
Karlos

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Connection Reset problem
« Reply #5 on: November 16, 2009, 09:32:49 am »
@Karlos,
Have you tried that fix? Did it work for you?

@Pet,
Are you using a Windows server?



Karlos

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Connection Reset problem
« Reply #6 on: November 16, 2009, 09:54:07 am »
Now i´m using local network , i wil try in a couple of hours...

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Connection Reset problem
« Reply #7 on: November 16, 2009, 03:33:38 pm »
yes, Windows
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Connection Reset problem
« Reply #8 on: November 16, 2009, 04:24:17 pm »
Pet, can you try the solution in the link posted by Karlos?

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Connection Reset problem
« Reply #9 on: November 17, 2009, 02:23:21 am »
That's for Apache, I'm running IIS
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Karlos

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Connection Reset problem
« Reply #10 on: November 17, 2009, 06:29:16 am »
Now don´t have the httpd.conf  "winnt_accept: Asynchronous AcceptEx failed" error, But OG only works on local Network , continue to investigate ...


Karlos

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Connection Reset problem
« Reply #11 on: November 17, 2009, 09:20:34 am »
My solution:
Quote
I'm not sure if I understood correctly the problem, but it could be that OpenGoo defines a ROOT_URL constant in config/config.php (that you can set during the installation), and this ROOT_URL will be used all over OpenGoo. So if you installed OpenGoo through http://localhost/... the ROOT_URL by default will be that one (unless you specifically change it), and when you try to access OpenGoo through another URL it will redirect you to http://localhost/...

If you need to be able to access OpenGoo through several domains you could define ROOT_URL as the path in the server (e.g., instead of 'http://localhost/path/opengoo' it would be '/path/opengoo'). However, when you receive notification emails with links, these will point to /path/opengoo, which isn't a valid URL on its own.
   

Old post by Ignacio: http://forums.opengoo.org/index.php?topic=1099.0

Now OpenGoo works fine over Internet.
Thanks.


ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Connection Reset problem
« Reply #12 on: November 17, 2009, 12:20:32 pm »
Hi Pet,

Are you accessing OpenGoo through a Proxy or Firewall? Can you try if the problem persists if you access OpenGoo directly from the server? I mean, open a web browser in the server and access the OpenGoo installation.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Connection Reset problem
« Reply #13 on: November 17, 2009, 04:13:09 pm »
I have SPI firewall on my network plus running windows firewall.  I don't have access to the host, it's in another country.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Connection Reset problem
« Reply #14 on: November 23, 2009, 05:40:35 pm »
Hi Pet,

Can you try changing file 'application/controllers/FilesController.class.php' line 1940 onwards from:

Code: [Select]
function display_content() {
$file = ProjectFiles::findById(get_id());
if (!$file instanceof ProjectFile) {
die(lang("file dnx"));
}
if (!$file->canView(logged_user())) {
die(lang("no access permissions"));
}

$content = $file->getFileContent();
$encoding = detect_encoding($content, array('UTF-8', 'ISO-8859-1', 'WINDOWS-1252'));

header("Expires: " . gmdate("D, d M Y H:i:s", mktime(date("H") + 2, date("i"), date("s"), date("m"), date("d"), date("Y"))) . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-Type: " . $file->getTypeString() . ";charset=".$encoding);
header("Content-Length: " . (string) $file->getFileSize());

if ($file->getTypeString() == 'text/html') $content = purify_html($content);

print($content);
die();
}

to:

Code: [Select]
function display_content() {
$file = ProjectFiles::findById(get_id());
if (!$file instanceof ProjectFile) {
die(lang("file dnx"));
}
if (!$file->canView(logged_user())) {
die(lang("no access permissions"));
}

$content = $file->getFileContent();
$encoding = detect_encoding($content, array('UTF-8', 'ISO-8859-1', 'WINDOWS-1252'));

if ($file->getTypeString() == 'text/html') $content = purify_html($content);

header("Expires: " . gmdate("D, d M Y H:i:s", mktime(date("H") + 2, date("i"), date("s"), date("m"), date("d"), date("Y"))) . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-Type: " . $file->getTypeString() . ";charset=".$encoding);
header("Content-Length: " . (string) strlen($content));

print($content);
die();
}