flex amf request not sent out anymore in AIR on Windows - apache-flex

I have a Flex application that runs in the browser and as standalone application with AIR. In our application, you can download a zip file which is generated at the server side containing a report. This zip file can be quite big (multiple GB) and takes a while to download. Basically, we do a HTTP POST from the client side:
m_file = new FileReference();
m_file.download( request, filename );
On the other hand, we send a ping from the client to the server each 15 seconds, to make sure the server is still there. The server responds to the ping with his name. When we do not get a response back in 30 seconds, we show the user a message that the server is down.
Now, the actual problem is that the ping request to the server never gets send while we are downloading the report. The strange thing is that this only happens in Adobe AIR on Windows. It is not a problem on Firefox on Windows. It is also not a problem with AIR on Mac OS X.
I have put some logging around the ping operation to show it:
[trace] 1: Mon Jul 16 16:00:20 GMT+0200 2012
[trace] return : 1: Mon Jul 16 16:00:20 GMT+0200 2012
[trace] 2: Mon Jul 16 16:00:35 GMT+0200 2012
[trace] return : 2: Mon Jul 16 16:00:35 GMT+0200 2012
[trace] 3: Mon Jul 16 16:00:50 GMT+0200 2012
[trace] return : 3: Mon Jul 16 16:00:50 GMT+0200 2012
[trace] 4: Mon Jul 16 16:01:05 GMT+0200 2012
[trace] 5: Mon Jul 16 16:01:20 GMT+0200 2012
[trace] 6: Mon Jul 16 16:01:35 GMT+0200 2012
[trace] 7: Mon Jul 16 16:01:50 GMT+0200 2012
[trace] fault 4: Mon Jul 16 16:02:05 GMT+0200 2012
[trace] fault 5: Mon Jul 16 16:02:05 GMT+0200 2012
[trace] fault 6: Mon Jul 16 16:02:05 GMT+0200 2012
[trace] fault 7: Mon Jul 16 16:02:05 GMT+0200 2012
[trace] 8: Mon Jul 16 16:02:05 GMT+0200 2012
[trace] fault 8: Mon Jul 16 16:02:20 GMT+0200 2012
[trace] 9: Mon Jul 16 16:02:21 GMT+0200 2012
Player session terminated
[AIR Debug Launcher]: Process finished with exit code 1
You can see that operation 1, 2 and 3 ran fine and returned immediately. At that point, we start the report download. Notice how operation 4 does not return immediately. After 15 seconds, operation 5 starts, then 6 and 7, each 15 seconds apart.
Then suddenly, exactly after 1 minute, operation 4 returns into the fault handler as does all the other requests that where started during that 1 minute.
Note that in the background, the HTTP POST keeps running as long as the AIR app keeps running (checked with Charles). The ping request itself does not show up in charles, nor do I see them in the BlazeDS debug loggin if I enable that. It is like the AIR application never even tries to do the ping request on the server.
Is there anybody who has an idea what might be wrong? Any additional things I can check/debug?
I am using Flex SDK 4.5 and Adobe AIR 3.3

Maybe this is due to a HTTP connection limit on Windows. I found this post that describes a similar issue: Adobe AIR HTTP Connection Limit

Related

Debian 9 / Apache 2.4 / Radicale 2.1 / uWSGI

I'm trying to use Radicale via uWSGI and Apache.
After some struggle, I managed to use WSGI for radicale on Apache but I would like to offload the authentication to Apache.
So I created the apache conf as
<VirtualHost *:80>
ServerAdmin xxx#gmail.com
ServerName radicale.domain.com
ProxyPass / uwsgi://127.0.0.1:5232/
<Directory "/etc/radicale">
AllowOverride None
Require all granted
</Directory>
TransferLog /var/log/apache2/radicale_access.log
ErrorLog /var/log/apache2/radicale_error.log
</VirtualHost>
My uwsgi app is
[uwsgi]
http-socket = 127.0.0.1:5232
processes = 2
plugin = python3
#module = radicale
wsgi-file=/etc/radicale/radicale.wsgi
env = RADICALE_CONFIG=/etc/radicale/config
When I call http://radicale.domain.com, I get a generic 500 error but I can't see any errors in the apache error log or the uswgi log.
The uwsgi log shows (in verbose)
Thu May 7 17:40:39 2020 - *** Starting uWSGI 2.0.14-debian (64bit) on [Thu May 7 17:40:39 2020] ***
Thu May 7 17:40:39 2020 - compiled with version: 6.3.0 20170516 on 17 March 2018 15:41:47
Thu May 7 17:40:39 2020 - os: Linux-2.6.32-042stab128.2 #1 SMP Thu Mar 22 10:58:36 MSK 2018
Thu May 7 17:40:39 2020 - nodename: xxx
Thu May 7 17:40:39 2020 - machine: x86_64
Thu May 7 17:40:39 2020 - clock source: unix
Thu May 7 17:40:39 2020 - pcre jit disabled
Thu May 7 17:40:39 2020 - detected number of CPU cores: 8
Thu May 7 17:40:39 2020 - current working directory: /
Thu May 7 17:40:39 2020 - writing pidfile to /run/uwsgi/app/radicale/pid
Thu May 7 17:40:39 2020 - detected binary path: /usr/bin/uwsgi-core
Thu May 7 17:40:39 2020 - setgid() to 33
Thu May 7 17:40:39 2020 - set additional group 125 (redis)
Thu May 7 17:40:39 2020 - set additional group 5003 (ispapps)
Thu May 7 17:40:39 2020 - set additional group 5004 (ispconfig)
Thu May 7 17:40:39 2020 - setuid() to 33
Thu May 7 17:40:39 2020 - your processes number limit is 256137
Thu May 7 17:40:39 2020 - your memory page size is 4096 bytes
Thu May 7 17:40:39 2020 - detected max file descriptor number: 131072
Thu May 7 17:40:39 2020 - lock engine: pthread robust mutexes
Thu May 7 17:40:39 2020 - thunder lock: disabled (you can enable it with --thunder-lock)
Thu May 7 17:40:39 2020 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/radicale/socket fd 3
Thu May 7 17:40:39 2020 - uwsgi socket 1 bound to TCP address 127.0.0.1:5232 fd 5
Thu May 7 17:40:39 2020 - Python version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
Thu May 7 17:40:39 2020 - *** Python threads support is disabled. You can enable it with --enable-threads ***
Thu May 7 17:40:39 2020 - Python main interpreter initialized at 0x7fc12c963dd0
Thu May 7 17:40:39 2020 - your server socket listen backlog is limited to 100 connections
Thu May 7 17:40:39 2020 - your mercy for graceful operations on workers is 60 seconds
Thu May 7 17:40:39 2020 - mapped 218304 bytes (213 KB) for 2 cores
Thu May 7 17:40:39 2020 - *** Operational MODE: preforking ***
Thu May 7 17:40:39 2020 - WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7fc12c963dd0 pid: 23261 (defau
lt app)
Thu May 7 17:40:39 2020 - *** uWSGI is running in multiple interpreter mode ***
Thu May 7 17:40:39 2020 - spawned uWSGI master process (pid: 23261)
Thu May 7 17:40:39 2020 - spawned uWSGI worker 1 (pid: 23267, cores: 1)
Thu May 7 17:40:39 2020 - spawned uWSGI worker 2 (pid: 23268, cores: 1)
How can I debug uwsgi? How can I see why Apache returns the 500 error? Have I done anything wrong with the conf - I find the docs not very useful when it comes to error debugging or understanding how to define modules
Okay, after a week of contemplating, debugging and some swearing, I saw my quite stupid mistake :(
I configured a HTTP socket in UWSGI
http-socket = 127.0.0.1:5232
but specified the uwsgi protocol in Apache ...
ProxyPass / uwsgi://127.0.0.1:5232/

Atmosphere fallback not working?

I am new to atmosphere. So far I have managed to add atmosphere to my existing Tomcat 8 + Spring + Struts2 web application. I used the current version (atmosphere-runtime 2.4.24, atmosphere-spring 2.4.20 and atmosphere.js 2.3.5).
For some sort of simple status page I have already managed to get the SSE transport to work. Using Google Chrome or Mozilla Firefox this works really excellent. I love it!
After having implemeted this I wanted to check the fallback for the browsers uncapable of SSE (Internet Explorer and Edge). In the client logs I can see that atmosphere corretly detects absence of the SSE feature and uses the fallback:
Server Side Events(SSE) is not supported, using request.fallbackTransport (long-polling)
atmosphere.js (3272,21)
Thu May 24 2018 08:54:28 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: ajaxRequest.onreadystatechange, new state: 2
atmosphere.js (3272,21)
Thu May 24 2018 08:54:28 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: ajaxRequest.onreadystatechange, new state: 3
atmosphere.js (3272,21)
Thu May 24 2018 08:54:28 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: ajaxRequest.onreadystatechange, new state: 4
atmosphere.js (3272,21)
Thu May 24 2018 08:54:29 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: ajaxRequest.onreadystatechange, new state: 2
atmosphere.js (3272,21)
Thu May 24 2018 08:54:29 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: Firing onOpen
atmosphere.js (3272,21)
Atmosphere connected using long-polling
utils.js (879,3)
Thu May 24 2018 08:54:29 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: Firing onOpen
atmosphere.js (3272,21)
Thu May 24 2018 08:54:29 GMT+0200 (Mitteleuropäische Sommerzeit) Atmosphere: ajaxRequest.onreadystatechange, new state: 3
atmosphere.js (3272,21)
But even though I can debug the server-side and see the message being written to the AtmosphereResource no data reaches the client.
This is how I initialize the atmosphere connection on client-side:
request = {
url: '<s:url value="/public/sse/ci" />',
contentType: "application/json",
method: 'POST',
logLevel: 'debug',
transport: 'sse',
reconnectInterval: 5000,
fallbackTransport: 'long-polling'
};
Can anyone give me a hint for the right direction?
Kind regards,
Sebastian
Okay.
Finally I got it working. Like in this stackoverflow question I had added the TrackMessageSizeInterceptor in my server configuration but not in the client configuration.
Maybe someone else comes here to read the answer.

hubot shell not loading scripts and packages

Hubot works when I have an adapter, but when I try to do local development using Shell none of the scripts or packages are loaded.
This works:
root#dev:~/hubot# bin/hubot forever start -w --watchDirectory ${PWD} --watchIgnore ${PWD}/*.log --pidfile ${PWD}/hubot.pid -l ${PWD}/hubot.log -a -c coffee node_modules/.bin/hubot --adapter slack
Strangely, when I try to do local development and testing with:
root#dev:~/hubot# bin/hubot
[Thu Apr 07 2016 00:33:10 GMT+0000 (UTC)] INFO hubot-redis-brain: Using default redis on localhost:6379
eve>
eve> help
usage:
history
exit, \q - close shell and exit
help, \? - print this usage
clear, \c - clear the terminal screen
None of my scripts or modules are showing when I type help in shell. But when I do this in slack, I see all the available scripts and modules:
eve <user> doesn't have <role> role - Removes a role from a user
eve <user> has <role> role - Assigns a role to a user
eve adapter - Reply with the adapter
eve delete reminder <action> - Delete reminder matching <action> (exact match required)
eve deploy <gitsha> to production - Runs Jenkins Phase 1 deployment.
eve echo <text> - Reply back with <text>
eve flip production pools - Flips the yin and yang production pools
eve help - Displays all of the help commands that Hubot knows about.
eve help <query> - Displays all help commands that match <query>.
eve list jobs - List current cron jobs
eve new job "<crontab format>" <message> - Schedule a cron job to say something
eve new job <crontab format> "<message>" - Ditto
eve new job <crontab format> say <message> - Ditto
eve ping - Reply with pong
** Update 1: I turned on debug level logging, and I can see the scripts are being parsed, but the scripts aren't available to me when executing their commands :(**
[Thu Apr 07 2016 00:46:44 GMT+0000 (UTC)] DEBUG Loading adapter shell
eve> [Thu Apr 07 2016 00:46:44 GMT+0000 (UTC)] DEBUG Loading scripts
from /root/hubot/scripts [Thu Apr 07 2016 00:46:44 GMT+0000 (UTC)]
DEBUG Parsing help for /root/hubot/scripts/example.coffee [Thu Apr 07
2016 00:46:44 GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/scripts/prod_deploy.coffee [Thu Apr 07 2016 00:46:44
GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/scripts/remindme.coffee [Thu Apr 07 2016 00:46:44 GMT+0000
(UTC)] DEBUG Parsing help for /root/hubot/scripts/team_tools.coffee
[Thu Apr 07 2016 00:46:44 GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/scripts/update.coffee [Thu Apr 07 2016 00:46:44 GMT+0000
(UTC)] DEBUG Loading scripts from /root/hubot/src/scripts [Thu Apr 07
2016 00:46:44 GMT+0000 (UTC)] DEBUG Loading hubot-scripts from
/root/hubot/node_modules/hubot-scripts/src/scripts [Thu Apr 07 2016
00:46:44 GMT+0000 (UTC)] DEBUG Loading external-scripts from npm
packages [Thu Apr 07 2016 00:46:45 GMT+0000 (UTC)] DEBUG Parsing help
for /root/hubot/node_modules/hubot-diagnostics/src/diagnostics.coffee
[Thu Apr 07 2016 00:46:45 GMT+0000 (UTC)] INFO hubot-redis-brain:
Using default redis on localhost:6379 [Thu Apr 07 2016 00:46:45
GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/node_modules/hubot-redis-brain/src/redis-brain.coffee [Thu
Apr 07 2016 00:46:45 GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/node_modules/hubot-auth/src/auth.coffee [Thu Apr 07 2016
00:46:45 GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/node_modules/hubot-help/src/help.coffee [Thu Apr 07 2016
00:46:45 GMT+0000 (UTC)] DEBUG Parsing help for
/root/hubot/node_modules/hubot-cron/src/scripts/cron.coffee
Update 2: I realized part of my problem was that in the bin/hubot file explicitly has my bot name as eve, while I have been trying it with evedev, my development hubot name. However, I'm still wondering why the help command does not show all the available commands, but when I'm in Slack, it does.
As answer to your Update 2, you need to put the bot's name before you type help, like this:
myhubot> help
usage:
history
exit, \q - close shell and exit
help, \? - print this usage
clear, \c - clear the terminal screen
vs
myhubot> myhubot help
myhubot> Shell: myhubot adapter - Reply with the adapter
myhubot animate me <query> - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead.
myhubot echo <text> - Reply back with <text>
myhubot help - Displays all of the help commands that Hubot knows about.
myhubot help <query> - Displays all help commands that match <query>.
myhubot image me <query> - The Original. Queries Google Images for <query> and returns a random top result.
myhubot map me <query> - Returns a map view of the area returned by `query`.
myhubot mustache me <url|query> - Adds a mustache to the specified URL or query result.
myhubot ping - Reply with pong
myhubot pug bomb N - get N pugs
myhubot pug me - Receive a pug
myhubot the rules - Make sure hubot still knows the rules.
myhubot time - Reply with current time
myhubot translate me <phrase> - Searches for a translation for the <phrase> and then prints that bad boy out.
myhubot translate me from <source> into <target> <phrase> - Translates <phrase> from <source> into <target>. Both <source> and <target> are optional
ship it - Display a motivation squirrel
You can check your current robot name in bin/hubot
Looks like exec node_modules/.bin/hubot --name "botname" "$#"
With above setting the bot name will be botname

Meteor deploy only half works, with no error messages

I'm using meteor deploy with a little test app, and I'm finding that it sort of works, but doesn't complain about anything in the logs, so I'm not sure what to do next.
For example, the home page doesn't render, while accounts-entry is able to render only the password field of the sign-up page (not the email one)! It's really quite weird.
I'm using the npm package to include a node module, however removing this doesn't seem to make any difference.
I'm not sure where to look next to debug this?
The code is here:
https://github.com/jimmytidey/observatory
The app is here:
http://test_observatory.meteor.com
The logs look absolutely normal I think:
[Sun Jan 05 2014 11:07:59 GMT+0000 (UTC)] INFO HIT / 46.65.36.129
[Sun Jan 05 2014 11:07:59 GMT+0000 (UTC)] INFO HIT /f1db89943c1358003f76977ed6df57e9adf2aaa2.css 46.65.36.129
[Sun Jan 05 2014 11:07:59 GMT+0000 (UTC)] INFO HIT /537d85f650bdfb82439bc7d0c9e073f7b16684d6.js 46.65.36.129
[Sun Jan 05 2014 11:07:59 GMT+0000 (UTC)] INFO HIT /f1db89943c1358003f76977ed6df57e9adf2aaa2.css 46.65.36.129
[Sun Jan 05 2014 11:08:00 GMT+0000 (UTC)] INFO HIT /537d85f650bdfb82439bc7d0c9e073f7b16684d6.js 46.65.36.129
[Sun Jan 05 2014 11:08:48 GMT+0000 (UTC)] INFO HIT / 46.65.36.129
[Sun Jan 05 2014 11:08:53 GMT+0000 (UTC)] INFO HIT /sign-in 46.65.36.129
[Sun Jan 05 2014 11:08:59 GMT+0000 (UTC)] INFO HIT /sign-up 46.65.36.129
[Sun Jan 05 2014 11:09:34 GMT+0000 (UTC)] INFO HIT / 46.65.36.129
[Sun Jan 05 2014 11:09:39 GMT+0000 (UTC)] INFO HIT /sign-up 46.65.36.129
[Sun Jan 05 2014 11:10:51 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 46.65.36.129
The errors seem to be on the client side, see the javascript console on your browser while visiting the page.
Errors with meteor logs only display the errors on the server side
The error seems to be a misspelling in Template.coffee for the word Template. (See https://github.com/jimmytidey/Observatory/blob/master/client/views/home/home.coffee#L1). I sent you a PR too.
This syntax error stops all of the code after it from running. This is why the router does not register its routes and nothing appears on the screen.
Silly typo ;-)

trouble configure jradius on Radius Server

I've installed and configure free radius on my ubuntu 12.04.
Now i want to configure my freeradius with jradius server.
I follow from coova documentation from here
http://www.coova.org/JRadius/FreeRADIUS
That step explain that i must add some configuration on etc/freeradius/radiusd.conf and /etc/freeradius/sites-enabled/default.
Now when i try to running my radius server i got error message like bellow :
Thu Mar 7 11:56:26 2013 : Debug: server { # from file /etc/freeradius/radiusd.conf
Thu Mar 7 11:56:26 2013 : Debug: modules {
Thu Mar 7 11:56:26 2013 : Debug: Module: Checking authenticate {...} for more modules to load
Thu Mar 7 11:56:26 2013 : Debug: (Loaded rlm_digest, checking if it's valid)
Thu Mar 7 11:56:26 2013 : Debug: Module: Linked to module rlm_digest
Thu Mar 7 11:56:26 2013 : Debug: Module: Instantiating module "digest" from file /etc/freeradius/modules/digest
Thu Mar 7 11:56:26 2013 : Debug: Module: Checking authorize {...} for more modules to load
Thu Mar 7 11:56:26 2013 : Debug: (Loaded rlm_preprocess, checking if it's valid)
Thu Mar 7 11:56:26 2013 : Debug: Module: Linked to module rlm_preprocess
Thu Mar 7 11:56:26 2013 : Debug: Module: Instantiating module "preprocess" from file /etc/freeradius/modules/preprocess
Thu Mar 7 11:56:26 2013 : Debug: preprocess {
Thu Mar 7 11:56:26 2013 : Debug: huntgroups = "/etc/freeradius/huntgroups"
Thu Mar 7 11:56:26 2013 : Debug: hints = "/etc/freeradius/hints"
Thu Mar 7 11:56:26 2013 : Debug: with_ascend_hack = no
Thu Mar 7 11:56:26 2013 : Debug: ascend_channels_per_line = 23
Thu Mar 7 11:56:26 2013 : Debug: with_ntdomain_hack = no
Thu Mar 7 11:56:26 2013 : Debug: with_specialix_jetstream_hack = no
Thu Mar 7 11:56:26 2013 : Debug: with_cisco_vsa_hack = no
Thu Mar 7 11:56:26 2013 : Debug: with_alvarion_vsa_hack = no
Thu Mar 7 11:56:26 2013 : Debug: }
Thu Mar 7 11:56:26 2013 : Error: /etc/freeradius/radiusd.conf[644]: Failed to link to module 'rlm_jradius': file not found
Thu Mar 7 11:56:26 2013 : Error: /etc/freeradius/sites-enabled/default[71]: Failed to load module "jradius".
Thu Mar 7 11:56:26 2013 : Error: /etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section.
What should i do to solve this problem ?
Thanks
Check if compile with the parameter "--with-rlm_jradius" while installing FreeRADIUS.
Check if instantiate the jradius in instantiate section in radiusd.conf
Check if set up your jradius config well in your radiusd.cong or in another .conf file.
These are the most common factors when your encounter troubles while installing them.
Okis
rlm_jradius has not been marked as stable, and so is not available in the standard debian packages for the v2.x.x branch.
https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/src/modules/stable
You will need to build the module from source. Substitute the git checkout line for the version of the server you are using.
git clone git#github.com:FreeRADIUS/freeradius-server.git
git checkout release_2_2_0
./configure --with-rlm_jradius
cd src/modules/rlm_jradius
make
cp -r .libs/rlm_jradius*.so /usr/lib/freeradius/
cp jradius.conf /etc/freeradius/modules/
Note that rlm_jradius is not currently available in FreeRADIUS version 3.0, and that the v2.2.x branch will soon be deprecated.
In case others run across this thread, JRadius support is included in the freeradius package for Ubuntu 12.10 - Ubuntu 16. It was removed in Ubuntu 17, since they updated to version 3 of FreeRADIUS, and the JRadius support was not ported to version 3.
https://packages.ubuntu.com/search?keywords=freeradius

Resources