Advertisement:

Author Topic: Does OSClass script talk back to your server? it seems like if your site goes dn  (Read 3018 times)

mattlok

  • Newbie
  • *
  • Posts: 40
hey

i just noticed something tonight.

When the OSclass site went down tonight for about 45 minutes, my OS Class script would not load, it was stuck trying to pull information.

However, my script is on my own server in my data center.  And i even remoted into my data center just to confirm it was not the server or the area in Canada.

Does my OS Class script website depend on your web servers being up?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Dear mattlock,

Osclass does not depend on our server. The script will made some calls to check if there are updates available but they should be asynchronous and not depend on any external resource (ie. if the server is down, you should be able to load your website).

Which version of osclass are you running?
Could you tell us some more information about your server setup (web server version, OS, PHP version, which extensions/mod are loaded/enabled,...)

Regards

mattlok

  • Newbie
  • *
  • Posts: 40
Hi _Conejo,

I just wanted to add to the information, when the OSClass website came back online, my website started to work immediately. 

Also, during the outage, all my Wordpress sites and other PHP and ASPX sites are working fine.  It was only my OSClass site that was stuck or lagging getting information.  But if i hit the info.php page on that same OSClass wwwroot, it pop-ups no problem, ftp to the wwwroot was no problem.

I also do not have any banner ads that are linked externally - since my site is brand new and on maintenance mode i don't have any supporting banner advertisements that are externally linked.  Just banner images I made .jpg stored in the images folder of the my theme (WizEstate)

I did not reboot or do anything (thinking that there was something that was needed from the OSClass website - either a script or a plugin).

But my stuff is at 151 Front St West, Toronto, Ontario, Canada and it's in the major data center hub for all of Canada.

My room is on a multihomed tier which means I have access to all the fiber connections coming out of the data center (i believe there are 6 OC196 and 12 OC128 - not sure off hand but it's something like that.)  Which also means if one fiber line goes down, the DNS and traffic will re-route automatically to the other channels.  The owner of the Data Center had built it that way for all the tenants in the facility.

The environment the script is running on:

- Windows 2012 r2 with IIS 8.5
- PHP 5.6 (ext GD2, fast CGI, bz2, curl, intl, ldap, mbstring, mysql, mysqli, sockets)
- i am using Websitepanel as the control panel which supports .htaccess
- MySQL 5.6
- has it's own application pool
- OSClass version 3.6.1

I really don't think it's the environment as I have gone through the process of elimination - and the fact that everything came back to normal after your website came back online.

Also i never had updates checked marked so it is not the updates.

The only thing i could think of are the plugins i added from your plugin market which are as follows:
- Embed Youtube videos
-External Links for Osclass
- Google Analytics
- Google Maps
- noCaptcha reCaptcha
- Print PDF
- QR Codes
- Simple Social Share
- User Items Counter
- Required Fields at Registration (disabled for now)
- Rich edit (disabled for now)
- Telephone (disabled for now)

Like I said right now everything is running fast again.

Aficionado

  • Guest
Quote
Also, during the outage, all my Wordpress sites and other PHP and ASPX sites are working fine.  It was only my OSClass site that was stuck or lagging getting information.  But if i hit the info.php page on that same OSClass wwwroot, it pop-ups no problem, ftp to the wwwroot was no problem.

There is NO "info.php" file in ANY Osclass installation.

Also you run Osclass under Windows, and this is NOT recommended (no matter what others may say).
« Last Edit: March 22, 2016, 10:08:32 pm by Aficionado »

mattlok

  • Newbie
  • *
  • Posts: 40
hey

for testing purposes, it is typical to create an info.php page to test if your php is working or not.

https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page

Any developer will tell you that.

Please do you homework before you are quick to judge.....

mattlok

  • Newbie
  • *
  • Posts: 40
further more negative feedback doesn't help a community....

mattlok

  • Newbie
  • *
  • Posts: 40
further, furthermore...

If you understand the nature of the development then you will know your boundaries between Linux and Windows for PHP/Apache2 and IIS.

I did not specifically blame the programming of OSClass.  As a matter of fact it works amazing well on my server and it is very lightweight compared to Wordpress.

And I think that is important to the developers to know how well it works on Windows IIS 8.5 with PHP.

I did not demoted Linux - as a matter of fact we have Casebox (Casebox.org) running on Centos 6.7.

To me both Windows and Linux platforms are just as good.  If you want to be negative and be bias just because of a person's preference then keep it to your own attention...  Because I did not slam on those trival things.

All i was looking was to see if there was some dependencies on the Script that talks back to the OSclass server.

It's just like C-Panel or Parallels, the license constantly talks back to the server to validate.

That's all I was asking..............

Aficionado

  • Guest
further more negative feedback doesn't help a community....

Negative feedback ? I only see negative post from you. I was only trying to help.

Sorry and good luck.


Aficionado

  • Guest


To me both Windows and Linux platforms are just as good.  If you want to be negative and be bias just because of a person's preference then keep it to your own attention...  Because I did not slam on those trival things.



Sure. But running a php script (Wordpress, Osclass, you name it) under Windows should be avoided. Simple as that. And i don't need any lessons from you or anyone. It is my business actually.

Again i was only trying to help.

mattlok

  • Newbie
  • *
  • Posts: 40
I appreciate your help.

But try to understand how it came across.

You said "NO info.php in OSClass installation"

Ok.

Well, in a previous post another user Teseo - had recommended to try creating an info.php to test to see if my DNS or wwwroot was working.

So you statement came across like i was lying about my process of elimination.  Don't get me wrong, maybe you didn't mean it that way and I not trying to start an argument.  But i am trying to explain how it may come across negative.  Sorry.

As far as the Windows subject, well, OSClass should specify right in their documentation that OSClass does not work with Windows they should just allow only RPM installations.

Like I said, if you know your PHP boundaries, and stay within those boundaries then you PHP script will work.  However, with that being said - your PHP will be fairly lightweight.  For example: memcache on PHP is not supported on Windows - so you turn it off and don't use it.

Yes for sure about 70% of the PHP scripts just doesn't work for windows right out of the box.  For sure!  I have Casebox which is a case management software for Law Firms.  That runs on PHP, SOLR5.5 and JRE - 100% will not work on Windows properly and therefore is sitting on Centos 6.7

But there are some small PHP simple file upload scripts on CodeCanyon that works no problems on IIS and PHP.  But they are coded in the boundaries that PHP will work in IIS and that's mostly because they don't call up anything that relates to Apache2 or Linux binaries.

So i am not trying to argue, I am just trying to explain why some people are ok using PHP scripts on Windows and again you have to know those boundaries and it is not for the faint hearted - and sometimes some from PHP.et support will tell you that certain call commands or reference will not work in windows.

Why I choose Windows over my Centos box - simple - I don't have enough room in my Centos box and i really wanted try out OSClass.

So I took a shot at in Windows (since there were no warnings) and it worked no problems first try.  As a matter of I only knew about the OSClass because of Udemy. 

If it works and doesn't break, why worry about it.  I hope this helps clear the air.  I do appreciate all the help from this community and they definitely helped me enough to convert a WizEstate to a regular classified ad site plus much more.

I love the script and hope to contribute more in the future (code wise and donations)

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Relax and calm down, please.

As I said, this is a bit strange, because we already checked and make all request asynchronous. It should be non-blocking and this should not be happening in latest version.
We are a small team and unfortunately we do not have any windows machine to test our code on, I know there are (or were) some issues with windows machines, due to mainly the lack of some libraries and functions that may or may not be available under windows/IIS (like rewrite mod, cron ,...)

mattlok, could you please send the full output of your phpinfo() to desteban@osclass.org ? That would help us a lot.

Regards

mattlok

  • Newbie
  • *
  • Posts: 40
Hi _CONEJO,

No problem I will send it off in a few hours.

I need to get back to sleep.  I had to make a quick post before i forget.

I am in Canada, Eastern Standard Time so it's still night time right now.  But will send in the late morning when i wake up.

Thanks

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Hi mattlok,

there was a similar topic few months ago (and before that, and before...) and the best thing I could think of is to set up a CURL timeout constant, see this if it can help:

https://github.com/osclass/Osclass/pull/1905

To test, you need to block access to osclass.org IP inside your firewall and make comparisons.

Regards,
dev101

mattlok

  • Newbie
  • *
  • Posts: 40
Hey dev101,

Thanks so much for the info.

I will try this out today.

I am relieved to hear that I am not the only one with the similar issue.

i'll be honest I am not sure what CURL does in general but i did see the code in git so i will make the adjustment and see what happens.

I'll update everyone this afternoon.

Thanks again.

mattlok

  • Newbie
  • *
  • Posts: 40
Hi dev101

So i blocked osclass.org ip from the my web server which i confirmed by doing ping test and browser test.

Aside from blocking on the firewall level, i added osclass.org as 127.0.0.1 in host file.  And when i ping it gives me the localhost.

Once that was confirmed, I uploaded the utils.php with the 1 line code added to curl.

Then i test from my home desktop and try to connect to my website and everything seems to be working.

Then i uploaded the original utils.php without the added line code, and re-tested again and everything seems to be working as well.

So the conclusion at the end of the test is that osclass.org is not the cause of the issue.  Which is also a good relief.

What I do remember was that i noticed this when issue when i was  trying to go into the plugin market and the whole site started to stall.

Then I opened another browser and went to the osclass.org and that's when i discovered that the osclass.org site was down.

Then i went back to my site's browser (as it was still stalling to connect) and i tried to go back to my admin panel home page and it still stalled.

Then I closed all my browsers and tried to hit my website home page and it stalled, at the same time i tried back to osclass.org and still it was down.

during that 45 minutes, i tried to also login into my admin page which i was able to every 10 to 15 minutes i would be able to get access to the main admin panel homepage, when i goto select some of the admin categories, some of them i can get in some it would stall.  But i think the stalling would occur again after i click the market section of the either the plugin or the themes.  Then it stalls again forever. 

in between i would keep testing to see if i can go back to my main site homepage and that for sure would not come up, just stalls loading (as i was in maintenance mode so i usually have 1 browser on admin panel, second browser on main homepage site).  I would also check the osclass.org to see when it would come back up (thinking there was some connection between the two).

3 quarters into the troubleshooting, i created an info.php and uploaded it to the wwwroot of my osclass and i was able to hit that no problem, at the same time the homepage was still stalling no matter how many times i restart the browser and clear my cache.  I even went to some of my wordpress site which is on the same server and they worked fine, i tried some of the other non-php websites and they worked fine.  i even recycled the app-pool (no effect), I restarted IIS (no effect), I even rebooted the web server (no effect).

After osclass.org website came back online, everything started to work again.  At that time i really needed to get access to the market plugin to complete my site.  So i was constantly going to that site through the admin panel.

Maybe there is some sort of connection between the admin panel connecting the market plugins / themes  (that's when the issue started).

Right now I am just glad it is working good.  Also, because this is a brand new site, i have no users and listings to slow down the site or put any load on the server.

Well, i hope this information helps.

Thanks again.