[web2py] Deploying on Linux Azure Web App

2019-05-01 Thread Jason Solack
Hello all, I'm wondering if anyone has experience deploying a web2py application in linux via Azure Web App, I have found this repo: https://github.com/ariassd/web2py.4azure but this is for a windows deployment. Any documentation or direction would be greatly appreciated! Thanks, Jason --

[web2py] 2.17.2 breaking scheduler changes

2018-12-04 Thread Jason Solack
Hello, We've recently updated web2py and now our applications utilizing the scheduler are having errors. We can see there are significant changes to scheduler.py - but not sure if it's just a matter of adding fields to the our tables to bring it back up and running. Thanks for any advice! Ja

[web2py] Re: Future of web2py

2017-11-09 Thread Jason Solack
is this official? we use web2py in production and would love to migrate to python 3. I am just concerned about edge cases that would cause an issuse. On Saturday, November 4, 2017 at 2:53:13 PM UTC-4, Anthony wrote: > > About Python, I know many people are still on Python 2, but to me it's >>

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-27 Thread Jason Solack
to handle 240 > transactions per minute! > > On Thursday, January 26, 2017 at 7:47:51 PM UTC+1, Dave S wrote: >> >> On Thursday, January 26, 2017 at 9:45:20 AM UTC-8, Jason Solack wrote: >>> >>> using mssql, the code itself is in gluon scheduler.py - thi

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Jason Solack
using mssql, the code itself is in gluon scheduler.py - this happens with no interaction from the app On Thursday, January 26, 2017 at 12:03:41 PM UTC-5, Dave S wrote: > > > > On Thursday, January 26, 2017 at 8:44:25 AM UTC-8, Jason Solack wrote: >> >> So the issue

[web2py] Re: Scheduler is_ticker and deadlock issues

2017-01-26 Thread Jason Solack
can manage up to 10, 15 at most. > If you wanna go higher, you need to turn to the redis-backed scheduler. > > On Tuesday, January 24, 2017 at 10:59:31 PM UTC+1, Jason Solack wrote: >> >> Hello all, >> >> I'm having some re-occurring issue with the scheduler.

[web2py] Scheduler is_ticker and deadlock issues

2017-01-24 Thread Jason Solack
Hello all, I'm having some re-occurring issue with the scheduler. We are currently running multiple environments (production, beta) and have several nodes in each environment. If we have scheduler services running on all machines on each node we get a lot of deadlock errors. If we drop each

Re: [web2py] Re: switch to python 3

2016-12-04 Thread Jason Solack
Does not having m2crypto mean auth is less secure or does it just effect x509 authentication? On Sunday, November 6, 2016 at 2:15:08 PM UTC-5, Niphlod wrote: > > the same gain moving any piece of code from python 2 to python 3 (read on > the interwebs, there are a few). > at least now you can c

[web2py] Re: scheduler task_id assigned to multiple workers

2016-09-06 Thread Jason Solack
re referring here and there "when we are load balancing the server"... > are you talking about the server where workers live or the server that > holds the database ? > > On Tuesday, August 30, 2016 at 6:03:56 PM UTC+2, Jason Solack wrote: >> >> the machine is plen

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-30 Thread Jason Solack
with the default heartbeat are easily taken care by a dual core > 4GB RAM backend (without anything beefy on top of that). > > On Tuesday, August 30, 2016 at 5:41:01 PM UTC+2, Jason Solack wrote: >> >> So after more investigation we are seeing that our load balanced server &

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-30 Thread Jason Solack
27;t stably be connected to your backend. > > On Thursday, August 18, 2016 at 7:41:38 PM UTC+2, Jason Solack wrote: >> >> so after some digging what i'm seeing is the sw.insert(...) is not >> committing and the mybackedstatus is None, this happens 5 times and then &g

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Jason Solack
le getting self.w_stats converted to something i can insert via sql. another things i'm noticing is my "distribution" in w_stats is None... Any ideas as to why this is happening? On Thursday, August 18, 2016 at 12:21:26 PM UTC-4, Jason Solack wrote: > > doing that now, what i

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Jason Solack
iphlod wrote: > > turn on workers debugging level and grep for errors. > > On Thursday, August 18, 2016 at 4:38:31 PM UTC+2, Jason Solack wrote: >> >> I think we have this scenario happening: >> >> >> https://groups.google.com/forum/#%21searchin/web2py/task_id

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-18 Thread Jason Solack
different worker_name all in the RUNNING status. > > For a single task to be processed by ALL 12 workers at the same time... is > quite impossible, if everything is running smoothly. And frankly I can't > fathom any scenario in which it is possible. > > > On Wednesday, August 1

Re: [web2py] Re: web3py status

2016-08-17 Thread Jason Solack
I saw a post on the developer forum that the newer version of web2py was mostly Python 3 compatible... Is it possible that there won't be a need for web3py? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

[web2py] High worker count in scheduler_worker table

2016-08-17 Thread Jason Solack
Hello all, this may be typical, but i'm trying to determine if there is an issue with the frequency of my workers dropping out of my scheduler_worker table. At this point my app has been in development for about 2 week and the ids of my workers are abou 550,000. Meaning that these rows have be

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Jason Solack
:41 PM UTC-4, Jason Solack wrote: > > I only see the task_id in the scheduler_run table, it seems to be added as > many times as it can while the run is going... a short run will add just 2 > of the workers and stop adding them once the initial run is completed > > On Wednesday,

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Jason Solack
master data), if your mssql is > "single", there shouldn't absolutely be those kind of problems... > > Are you sure all are crunching the same exact task (i.e. same task id and > uuid) ? > > On Wednesday, August 17, 2016 at 2:47:11 PM UTC+2, Jason Solack

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-17 Thread Jason Solack
I'm using nginx and MSSQL for the db On Wednesday, August 17, 2016 at 3:11:11 AM UTC-4, Niphlod wrote: > > nothing in particular. what backend are you using ? > > On Tuesday, August 16, 2016 at 8:35:17 PM UTC+2, Jason Solack wrote: >> >> task = scheduler.queue

[web2py] Re: scheduler task_id assigned to multiple workers

2016-08-16 Thread Jason Solack
: > > > > On Tuesday, August 16, 2016 at 9:38:09 AM UTC-7, Jason Solack wrote: >> >> Hello all, i am having a situation where my scheduled jobs are being >> picked up by multiple workers. My last task was picked up by all 12 >> workers and is crushing the machin

[web2py] scheduler task_id assigned to multiple workers

2016-08-16 Thread Jason Solack
Hello all, i am having a situation where my scheduled jobs are being picked up by multiple workers. My last task was picked up by all 12 workers and is crushing the machines. This is a load balanced machine with 3 machine and 4 workers on each machine. has anyone experienced something like th

[web2py] Speeding up scheduler assignment time

2016-08-15 Thread Jason Solack
Hell all, i'm currently leveraging the scheduler to do some data processing and i'm finding it takes 5-10 seconds for my task to be assigned. I'm running MSSQL and have immediate set to false (i was getting some deadlock errors). Even when immediate was set to True it was taking 5-10 seconds

[web2py] Help with setting up apps with virutualenv and nginx

2016-07-14 Thread Jason Solack
Hello all, I am trying to get my head around setting up apps with virtual env on my server running nginx. i have found this: http://www.web2pyslices.com/slice/show/1464/setting-up-web2py-in-a-virtual-environment but i am not able to make the connection between running web2py locally and havin

[web2py] Re: SQL Server question, transactions remaining open

2016-06-30 Thread Jason Solack
here if you are not in a web request >> environment. >> >> On Wednesday, June 29, 2016 at 2:57:37 PM UTC+2, Jason Solack wrote: >>> >>> I am, i am passing db into some modules, do i need to be explicit about >>> db.commit within modules? >&g

[web2py] Re: SQL Server question, transactions remaining open

2016-06-29 Thread Jason Solack
I am, i am passing db into some modules, do i need to be explicit about db.commit within modules? On Tuesday, June 28, 2016 at 3:22:42 PM UTC-4, Niphlod wrote: > > are you explicitely calling db.commit() at the end of your taks ? > > On Tuesday, June 28, 2016 at 6:36:02 PM UTC+2,

[web2py] SQL Server question, transactions remaining open

2016-06-28 Thread Jason Solack
Hello all, i am running an app that utilizes the scheduler and i'm seeing a lot of open transaction in SQL server with the last sql command being: IF @@TRANCOUNT > 0 COMMIT BEGIN TRANSACTION any idea where those are being generated and how to close those transactions? Thank you Jason -- Res

[web2py] Re: sequential requests

2016-04-20 Thread Jason Solack
yes, i just ran the script from web2py's github repository and used the setting it provide... it was faster and more stable. On Sunday, April 17, 2016 at 9:34:40 PM UTC-4, kenny c wrote: > > was nignx faster than running on Apache as default setting? -- Resources: - http://web2py.com - http://

[web2py] help setup nssm services in windows

2016-04-19 Thread Jason Solack
Hello all, I'm trying to setup a service in windows to utilize the scheduler. I found this: http://www.web2pyslices.com/slice/show/1614/nssm-webserver-and-scheduler-as-services-in-windows-oses but the version of NSSM is different than the version shown in the example above. I have path (whi

[web2py] Re: sequential requests

2016-04-13 Thread Jason Solack
Quick update on this... I ran the same test with nginx on aws and that works as expected... So I strongly suspect a setting or settings in Apache being the issue -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://

[web2py] Re: sequential requests

2016-04-13 Thread Jason Solack
No database. I took out all the model files. I am just iterating through some lists then sleeping for 5 seconds. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issue

[web2py] sequential requests

2016-04-13 Thread Jason Solack
Hello all, I have set up a simple site on aws to test concurrent requests and it appears i'm getting requests answered sequentially... https://52.207.216.107/ServerTest/default/index I essentially ran the ubuntu setup script and tested it... i have upped the processes and threads in the defau

[web2py] Re: Odd error

2016-04-13 Thread Jason Solack
admin is an application by itself. > > On Tuesday, April 12, 2016 at 9:54:08 PM UTC+2, Jason Solack wrote: >> >> It's running in linux with apache/WSGI, i'm not exactly sure what you are >> asking, how are we launching web2py? >> >> Just to be clear, we&#x

[web2py] Re: Odd error

2016-04-12 Thread Jason Solack
ssions > > how are you running web2py ? > > On Tuesday, April 12, 2016 at 9:07:01 PM UTC+2, Jason Solack wrote: >> >> Hello everyone! >> >> So we have experienced an odd error recently and i'm hoping someone could >> help shed light on what happened

[web2py] Odd error

2016-04-12 Thread Jason Solack
Hello everyone! So we have experienced an odd error recently and i'm hoping someone could help shed light on what happened. We have several applications running on centOS / apache and yesterday we began to experience the apps going down periodically and then coming back up. Another odd thing

[web2py] Re: Issues with site in production environment

2016-04-09 Thread Jason Solack
Thank you for the tip, I will look into running the math as a background service, is the task scheduler the only way to achieve that? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issu

[web2py] Issues with site in production environment

2016-04-09 Thread Jason Solack
Hello all, I am wondering if you all could sense chech my issue for me. I am creating sites that do a fair amount of analytics on large data sets and as such requests may take 30-90 seconds to get a response. My web server has 8 logical cores and once I have over 8 concurrent users they are ess

Re: [web2py] Re: Has anyone done a detailed security analysis or attempted a methodical attack on web2py?

2016-02-24 Thread Jason Solack
Any updates on this? I am in the process of finding a supplier to pen test, wondering if i should be prepared for anything. On Friday, October 9, 2015 at 11:26:55 AM UTC-4, Michael M wrote: > > My company has to have an outside firm Pen test all Web-Service > applications. So I am spinning up

[web2py] Re: examples using ADFS

2016-02-01 Thread Jason Solack
Is there any documentation around using SAML2 with web2py? I'm looking through documentation and searching in the groups and i'm not finding any. thank you! On Friday, January 29, 2016 at 9:04:38 AM UTC-5, Jason Solack wrote: > > Thank you for the reply! I will be chatting

[web2py] Re: examples using ADFS

2016-01-29 Thread Jason Solack
uary 2016 11:17:59 UTC-6, Jason Solack wrote: >> >> Hello everyone, I'm wondering if there are any examples of using web2py >> with ADFS. We have a need to connect to allow users to sign in via ADFS >> and i'm not finding anything within the documentation!

[web2py] examples using ADFS

2016-01-26 Thread Jason Solack
Hello everyone, I'm wondering if there are any examples of using web2py with ADFS. We have a need to connect to allow users to sign in via ADFS and i'm not finding anything within the documentation! Thank you for any guidance, Jason -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Prevent the automatic rendering of LOAD function

2016-01-04 Thread Jason Solack
v with an id: > > > > And to load the component via Javascript: > > $.web2py.component('{{=URL('mycontroller', 'mycomponent1.load')}}', > 'component1'); > > Anthony > > On Monday, January 4, 2016 at 4:56:37 PM UTC-5, Jason Solac

[web2py] Prevent the automatic rendering of LOAD function

2016-01-04 Thread Jason Solack
Hello all, I'm using a lot of LOADs in a current project and i'm wondering if there's a way to not automatically render the LOAD content... as it stands now i'll have a lot of hidden HTML and i'd like to only load the component when i need it. Thank you in advance, Jason -- Resources: - htt

[web2py] Re: submitting the form when updating .load file

2015-12-08 Thread Jason Solack
ton, nor an action or a > method, and nothing in your JS code executes a submit. How exactly do you > expect it to be submitted? It is not clear what you are trying to achieve. > > Anthony > > On Sunday, December 6, 2015 at 8:50:21 PM UTC-5, Jason Solack wrote: >> &g

[web2py] Re: submitting the form when updating .load file

2015-12-07 Thread Jason Solack
when building a form by hand? On Monday, December 7, 2015 at 1:23:00 PM UTC-5, Jason Solack wrote: > > So i tried loading this in the way described above and my form is still > not being submitted to the controller. When i check to see if i can > serialize the form it has valu

[web2py] Re: submitting the form when updating .load file

2015-12-07 Thread Jason Solack
nsure that my form is being submitted to the controller? or is there a way to explicitly submit it? Thank you again and sorry for the confusion! On Sunday, December 6, 2015 at 8:50:21 PM UTC-5, Jason Solack wrote: > > So in this case i was just wanting to see if the form was submitted when

[web2py] Re: submitting the form when updating .load file

2015-12-06 Thread Jason Solack
ults On Sunday, December 6, 2015 at 8:14:35 PM UTC-5, Anthony wrote: > > On Sunday, December 6, 2015 at 7:15:04 PM UTC-5, Jason Solack wrote: >> >> Sorry i'm not clear! I'm trying to break up a reporting site and my >> initial idea was to use several LOAD compon

Re: [web2py] Re: web2py and python3

2015-12-06 Thread Jason Solack
i feel this asciii / unicode pain quite often as i deal with data from all sorts of sources and much of it is text inputs from various users... i would love to see web2py move towards python3 On Sunday, December 6, 2015 at 8:09:41 PM UTC-5, Alex wrote: > > I'm still missing a clear strategy from

[web2py] Re: CUSTOM a large form

2015-12-06 Thread Jason Solack
I've done this several ways... the actual HTML generation could be via web2py's helpers or just writting the HTML. For the tabs i've used bootstrap or jquery ui to help out creating tabs... using a library helps the process of making tabs pretty trivial... here's jquery ui's information http://

[web2py] Re: submitting the form when updating .load file

2015-12-06 Thread Jason Solack
Thank you for your help Jason On Sunday, December 6, 2015 at 3:45:50 PM UTC-5, Massimo Di Pierro wrote: > > Not sure what you are trying to do. could you explain again? Why do you > have LOAD inside a form? > > On Friday, 4 December 2015 18:00:09 UTC-6, Jason Solack wrote: >

[web2py] submitting the form when updating .load file

2015-12-04 Thread Jason Solack
Hello all, i have this view: Test me {{=LOAD('chart','test.load',ajax=True, target='test_div', )}} Test this out $('#try').click(function(){ jQuery('#test_div').get(0).reload() }); and i'm trying to submit that for when reloading my "test.l

[web2py] Re: Scheduler, run code first of each month

2015-11-22 Thread Jason Solack
So i realized i could have the scheduler run once a day and have my code verify it's the day i need the actual code to run. On Saturday, November 21, 2015 at 8:47:34 PM UTC-5, Jason Solack wrote: > > Hello, i'm aware of being able to set the period in seconds we'd like a &

[web2py] Scheduler, run code first of each month

2015-11-21 Thread Jason Solack
Hello, i'm aware of being able to set the period in seconds we'd like a task executed in the scheduler... but i'm wondering if there's a way to have the scheduler fire a task on the 1st of each month or if cron is required for that behavior. Thank you for your input Jason -- Resources: - ht

[web2py] Re: creating a secure rest service

2015-11-20 Thread Jason Solack
t; >> On Thursday, November 19, 2015 at 4:25:07 PM UTC-8, Jason Solack wrote: >>> >>> Hello, >>> >>> I'm wondering if anyone is aware of a guide on creating a secure REST >>> service with web2py. I'd like to get help with creating auth

[web2py] creating a secure rest service

2015-11-19 Thread Jason Solack
Hello, I'm wondering if anyone is aware of a guide on creating a secure REST service with web2py. I'd like to get help with creating authentication tokens and handshaking and then creating a temporary key allowing people to access the service for a set period of time. Thank you for you help a

[web2py] DAL counts / groupby

2015-11-12 Thread Jason Solack
Hello everyone, I have a few tables structured like this: db.define_table('question_table', Field('qid'), Field('display_text'), ) db.define_table('answer_table', Field('qid'), Field('value'), Field('

[web2py] web2py course on pluralsight

2015-11-08 Thread Jason Solack
just wanted to call attention to a training on pluralsight on web2py. I know a few people that have taken it and it gives a good introduction to the framework. I've been using web2py for about a year now and it's exciting to see training on a mainstream sight like this. Jason -- Resources:

[web2py] file upload "not authorized"

2015-10-20 Thread Jason Solack
Hello all, I have been trying to enable file uploading using the examples in the documentation and then using the follow approach: https://groups.google.com/forum/?fromgroups#!searchin/web2py/file$20upload/web2py/10FXxJrVR5k/6ySXshodipMJ but each time i do it i get "not authorized" response.fl

[web2py] web2py file upload returning "not authorized"

2015-10-20 Thread Jason Solack
Hello all, I'm trying to upload files in my web app using the code from the manual and using the technique described here: https://groups.google.com/forum/#!searchin/web2py/upload$20file/web2py/10FXxJrVR5k/6ySXshodipMJ when i try to upload a file i'm getting a flash response of "not authorized"

[web2py] using a requirements file with a web2py application

2014-12-01 Thread Jason Solack
Hello, i'm deploying some sites to apache and i'm wondering if there's built in support for a "requirements" file to ensure my project is using the correct versions of packages. I had a recent sitiuation where updating pandas created a bit of headache and i'd like to avoid that in the future b

[web2py] download an in memory PDF generated by pdfkit

2014-10-31 Thread Jason Solack
Hello, i have a PDF file i have generated and i'd like to have users download when clicking an 'export' button on the page. i have tried this: import pdfkit pdf = pdfkit.from_string("test", False) return response.stream(pdf, attachment=True, filename="whatever.pdf") and it doesn't

[web2py] Forcing download of generated PDF

2014-10-31 Thread Jason Solack
Hello everyone, i'm generating a PDF using pdfkit and i'd like my function to force the download of the pdf file i'm making. Here's some simple code demonstrating the PDF being made in memory: def make_pdf(): import pdfkit pdf = pdfkit.from_string("test", False) return pdf Ideally

[web2py] Re: jquery ajax with server farm

2014-10-03 Thread Jason Solack
I don't know that i'm having that same issue, i'm not actually using a database behind this app. i'm basically just sending some data to a python function and re-calling this function over and over to visualize the computing. I'm guessing that the issue is based on the fact that the production

[web2py] jquery ajax with server farm

2014-10-02 Thread Jason Solack
Hello all! I'm making some jquery ajax calls in web2py and when running locally / on a single server it works great. When i move it to my production server which lives on a farm the first ajax call works but subsequent calls do not. Does anyone have any ideas on why this may be the case? i fo

[web2py] Re: using AJAX to transfer json objects

2014-09-04 Thread Jason Solack
ult/thebackend.json', function(data) > {console.log(data)}) > > > > On Thursday, September 4, 2014 3:52:01 PM UTC+2, Jason Solack wrote: >> >> >> Hello everyone, I'm hoping someone might be able to provide an example of >> how to use the web2py ajax API to tr

[web2py] using AJAX to transfer json objects

2014-09-04 Thread Jason Solack
Hello everyone, I'm hoping someone might be able to provide an example of how to use the web2py ajax API to transfer json data from the server to the client side javascript. Any help would be appreciated! Thank you Jason -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] create a new skeleton application

2014-08-20 Thread Jason Solack
Hello everyone! I would like to create a new skeleton application to replace what is generated from the new application wizard. is there a way to do this? Thank you jason -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] sql "like' equivalent

2014-07-11 Thread Jason Solack
Hello everyone! I'm wondering if there is a "like" equivalent in the web2py DAL. I would like to do something like this: db().select(db.person.name like 'JA') thank you in advance for your help. Jason -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu