jQuery-File-Upload fails with somewhat large files - jquery-file-upload

Trying to use this project: https://github.com/blueimp/jQuery-File-Upload/
Our application server is a FreeBSD 11.2 with Apache 2.4.39 and PHP 7.2.17. I've downloaded their demo and receive the error net::ERR_CONNECTION_RESET in the browser console when trying to upload anything large enough to exceed 22 seconds exactly. It does appear to be server related as I've downloaded the same demo to another CentOS7 server where same file upload succeeds.
Although I have checked all my PHP variables for max upload size and memory limit, etc., would this demo be subject to PHP variables? I found the RequestReadTimeout Apache setting in the server that fails, not present in the working server, so I thought it could be the culprit, but I changed this setting from...
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
To this...
RequestReadTimeout header=60-120,MinRate=500 body=120,MinRate=500
...and restarted Apache, but the same result. The developers on this server believe this issue only started after recent updates to the server were done that included Apache 2.4.33 upgraded to Apache 2.4.39. The PHP version did not change, however, there were many other packages updated as well as security patches to the FreeBSD OS. Can someone suggest what could fix this issue?
--UPDATE--
Okay, this is easily duplicated. I spun up a VM with a fresh install of FreeBSD 11.2, installed Apache 2.4.39 and the demo of this project. I adjusted these settings in the demo app to allow a large mp4 video to be uploaded...
acceptFileTypes: /(\.|\/)(gif|jpe?g|png|mp4)$/i,
maxFileSize: 999000000,
...and receive the same Unknown error at exactly 22 seconds into the download progress of an mp4 file of ~493MB. There must be a setting in Apache that needs to allow more time or other limit. And perhaps a change to the FreeBSD Apache 2.4 port somewhere between 2.4.33 and 2.4.39. My developers say this all started after that update.

Well, the RequestReadTimeout setting in Apache was the culprit. I had to completely disable, now it works.

same issue here - to fix, on a Centos 7 system, comment out this line:
LoadModule reqtimeout_module modules/mod_reqtimeout.so
from the 00-base.conf file, then restart httpd

Related

Testlink Test cases location with Wamp server

I had a problem with my WAMP server not being online so after some hours changing values on Httpd.conf i was finally able to make it go online after all, with all of it's services too. But when i try to access localhost it only says "It's working!" and i can't access the testlink webpage. I had already done about 350 test cases manually into testlink so I REALLY want to get that back. I made a backup before the server went down of the entire WAMP directory but i have no idea where the test cases are located. They are not saved as they were named in TestLink. Anyone can show me the way?
thanks!
If when you run localhost and it say "It's working!" then you have another version of Apache installed on this machine, and that is the one that is running and NOT the WAMPServer version of Apache.
As you are obviously learning, stick to one Apache per machine. So uninstall the other Apache completely. It would also be a good idea to look for another MYSQL as well. They travel in groups normally.

GWT 2.7 Super Dev Mode not working while testing on the same network

I recently began using GWT 2.7 in Eclipse Luna and I was running my projects seamlessly while testing them in localhost:8888, the thing is, when I tried to test them (any of them, even a new app with only the autogenerated content) with another device on the same local network using (pc running eclipse ip):8888 I get a message like this:
The page at (ip):8888 says: Couldn't load (app) from Super Dev Mode server at http://(ip):9876. Please make sure this server is ready. Do you want to try again?
This also happens when I try to access to the app in the pc running eclipse with (its own ip):8888.
I've checked these four similar questions, but they didn't have any really helpful answers, these are a few things I've tried or discovered already:
I enabled the 9876 port on the firewall
I've deleted the .nocache.js and .devmode.js so that they're generated again
I noticed that when this problem occurs it's because the browser can't get the (ip):9876/recompile-requester/(app) file
I tried deploying the app to GAE and it doesn't work there either, nothing that happens on the modules Java code runs (And for some reason, I get a "Uncaught java.lang.ClassCastException" message on the chrome console, but this only happens on the deployed version, it doesn't happen on localhost:8888 or in (local ip):8888)
But nothing has worked and the four questions I mentioned are pretty much the only things related to this I've found, so I really don't know what else to try.
As Thomas pointed out, the problem I had was that from GWT 2.6 onwards, if you want to test from other devices in the same network, you have to whitelist the addresses you'll be using in each *.gwt.xml file using a command line like this:
<set-configuration-property name="devModeUrlWhitelistRegexp" value="http://(localhost|127\.0\.0\.1|192\.168\.150\.(\d{1,3}))(:\d+)?/?.*" />
I also had to add a -bindAddress 0.0.0.0 attribute to the run config for it to work.

Jboss taking long time to start

I am using jboss-4.0.5.GA for project deployment, but it is hanging at startup by displaying message
Trying to install an already registered mbean: jboss.management.local
it is showing this for 6 minutes and it takes total 7-8 minutes to start.
If I start server without deploying application, then also it's taking 7 to 8 min.
You seem to have corrupted the JBoss installation, highly reccomended to use a fresh installation and deploy your application rather than debug this.
I use Jboss 4.2.2 which is taken from a zipped folder. Today I have renamed the existing setup and tried unzipping again and use a fresh copy. This didn't work out as expected and server is in starting mode for several minutes and thrown error in the end. So removed this fresh setup and used the old one and it worked like a gem, though not sure where is the problem here.

remove apple server app on osx 10.8

I normally develop in ruby and serve my developement site with pow.cx.
For some client work I have to work with php and drupal. I had quite a bit of set up problems and incompatibilities between apache / php / Mamp and my pow server.
I've tried to set things up as mentioned there:
https://github.com/37signals/pow/wiki/Running-Pow-with-Apache
When I leave Mamp on port 888 everything is fine, but when i want to run mamp and pow on port 80 i start to have regular problems.
To try to fix the issue I have installed Apple Server app.
I now regret it.
If i turn websites on in the server app. Server takes over my pow url.
If i turn websites off, i can't access the pow url at all (says i have to turn websites on).
If i remove the Server app completely and restart, i can access Pow again, but Mamp refuse to start apache, saying that it can't resolve the domain name set up by the Server App.
So Is there a way to remove and clean the Server app setup completely?
I'm not sure what the cleanest way to remove the Apple Server app. But at least I manage to get Mamp work again.
I had ot add an alias in my /etc/hosts files with the current name of my local machine
127.0.0.1 my-lovely-mac
and now Mamp Apache is all happy again

Nginx + PHP5-FPM break some web app which works on Apache + PHP5

I have a vps with Debian 6.0.5, installed with Nginx + PHP5-FPM using package from dotdeb using a setup script introduced by a blog. Everything works like charm for my wordpress and phpmyadmin.
Now, I wanted to install beanstalkd into the vps, and decided to use some PHP web app to manage beanstalkd. I've installed phpBeanstalkdAdmin and Beanstalkd console. Both failed to run properly.
phpBeanstalkdAdmin returns a page like
phpBeanstalkdAdmin
Home
About
layout()->content?>
Beanstalkd console displayed an empty tube once server is configured. Before that, the error message is also missing.
When I install both in my local machine running XAMPP, which is Apache + PHP5, and point the configuration to my vps' beanstalkd, it works. Further more, before configuration Beanstalkd console would display proper error message unlike when running on Nginx + PHP5-FPM.
I've tried to use XDebug and didn't find any error or anything wrong when stepping through both web app. Both web app utilizing Zend Framework. I didn't find any specific setup which is required to run Zend Framework on Nginx + PHP5-FPM, and have tried various addition of the basic configuration such as fixing Path_Info & PHP_SELF
I would really love to use Nginx instead of Apache for my vps as I have a small box.
Any insight or guide on this issue is much appreciated.
Check the value of PHP's short_open_tag on both (should be listed in phpinfo). My guess is you need to turn it on for your VPS.