I cann't believe I have spent 3 days trying every thing to find out what 
the hell is happening. Last time I used it, it was 2 years ago and I guess 
it was more intuitive to feel like python web2py.py -a pass -K myapp will 
run both the server and scheduler!!! Sorry everyone for the confusion.

On Monday, January 2, 2017 at 6:04:57 PM UTC-5, Niphlod wrote:
>
> if you run a single process with 
>
> python web2py.py -K appname 
>
> ONLY the scheduler will be alive
>
> the web-serving part needs to be started as usual, in addition to the 
> previous process which just spins the scheduler process.
>
> On Monday, January 2, 2017 at 8:28:37 PM UTC+1, Aydin wrote:
>>
>> I had perfectly fine working app using scheduler in 2015, I tried to use 
>> that one but when trying to run the schedule (-K my app), the app does not 
>> run and web2py gets stuck in "starting single-scheduler...". This says to 
>> me something in terms of python and python tools version does not work well 
>> with web2py. I don't think there is anything wrong with the code I am using.
>>
>> On Monday, January 2, 2017 at 1:58:25 PM UTC-5, Aydin wrote:
>>>
>>> Sure, here are the databases I have tried to create:
>>>
>>> # db2 = DAL('sqlite://scheduler_storage.sqlite')
>>> # db2 = DAL('pymysql://root:pass@localhost/testdb2')
>>> db2=DAL('mysql://root:pass@localhost/testdb2')
>>>
>>> # db2 = DAL('MySQLdb://root:pass@localhost/testdb2')
>>> # db2 = DAL('pymysql://root:pass@localhost/testdb1')
>>>
>>> for MySQLdb and pymysql I get the error that they are not supported. 
>>> mysql does not give that error but gets stuck in starting the task.
>>> I even tried to import pymysql in web2py.py which did not help with the 
>>> error of it being not supported.
>>>
>>> On Monday, January 2, 2017 at 1:38:42 PM UTC-5, Dave S wrote:
>>>>
>>>>
>>>>
>>>> On Monday, January 2, 2017 at 8:22:55 AM UTC-8, Aydin wrote:
>>>>>
>>>>> I used the exact example shown by massimo (https://vimeo.com/27478796) 
>>>>> and it gets stuck at (starting single-scheduler for myapp...) and the 
>>>>> website does not come up saying browser cannot establish a connection). 
>>>>> Running on ubuntu and debian.
>>>>>
>>>>
>>>> Can you show us your connection string (passwords obfuscated)?
>>>>
>>>> /dps
>>>>  
>>>>
>>>>>
>>>>> On Monday, January 2, 2017 at 11:04:44 AM UTC-5, Niphlod wrote:
>>>>>>
>>>>>> scheduler definitely works for mysql. 
>>>>>> what you experienced is perfectly fine. a scheduler process just sits 
>>>>>> there if there is nothing to do (i.e. no tasks to process).
>>>>>>
>>>>>> On Sunday, January 1, 2017 at 5:14:21 PM UTC+1, Aydin wrote:
>>>>>>>
>>>>>>> I have used the scheduler before without being worried about the 
>>>>>>> database type. 
>>>>>>> I tried to use mysql but it gave an error that it is not supported. 
>>>>>>> I have mysql and pymysql installed and created a database "testdb" and 
>>>>>>> used 
>>>>>>> the manual format and got that error that it is not supported.
>>>>>>>
>>>>>>> On Saturday, December 31, 2016 at 4:09:23 PM UTC-5, 黄祥 wrote:
>>>>>>>>
>>>>>>>> perhaps, it related with database issue such as : sqlite
>>>>>>>> had you already tried another database like mysql or postgresql?
>>>>>>>>
>>>>>>>> best regards,
>>>>>>>> stifan
>>>>>>>>
>>>>>>>

-- 
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 Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to