Re: [web2py] Re: Scheduler and Serial Port Problems

2016-12-09 Thread Richard Brown
pen/reopen > so they change to "programming" state. > This is made on purpose, but it's trivial to avoid it. If using an Arduino > UNO board, just connecting a 10μF capacitor between RESET and GND will > avoid those resets. Just remember to remove the capacitor if you

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-28 Thread Richard Brown
The only message is still: 2016/11/28 10:17:55 [crit] 674#0: *1 connect() to unix:///tmp/web2py.socket failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.65, server: raspberrypi, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///tmp/web2py.socket:", host:

[web2py] Re: Scheduler and Serial Port Problems

2016-11-26 Thread Richard Brown
RTS can be forced low. So, any clues as to how I might be able to set RTS at startup will be gratefully received! Richard Richard On Friday, November 25, 2016 at 11:10:26 PM UTC, Dave S wrote: > > > On Friday, November 25, 2016 at 4:50:34 AM UTC-8, Richard Brown wrote: >>

[web2py] Re: Scheduler and Serial Port Problems

2016-11-25 Thread Richard Brown
eb2py forces RTS low - either by the saving of a file or when I access the index page of my Site, and How I can replicate this in the Scheduler code! Using 'touch' to update the file does not work, it has to be saved from within Web2py. Richard On Friday, November 25, 2016 at 10:46:

Re: [web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-24 Thread Richard Brown
n 23 November 2016 at 14:36, Richard Brown > wrote: > >> Thanks, the answer is 'yes' to all of these checks - web2py.ini file >> attached. I did find out how to see if the uwsgi process is running and it >> does appear to be: >> >> $ ps aux | grep &q

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-23 Thread Richard Brown
Wednesday, November 23, 2016 at 2:27:20 PM UTC+1, Richard Brown wrote: >> >> Hi, there are no files in '/var/log/uwsgi' and "journalctl >> /usr/local/bin/uwsgi" reports "No journal files were found." >> >> >> On Wednesday, N

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-23 Thread Richard Brown
ed. > > if uwsgi is running, need to check the log to see if any errors comes up > > check in /var/log/uwsgi and/or see if systemd logging reports something > with "journalctl /usr/local/bin/uwsgi" > > On Wednesday, November 23, 2016 at 1:36:35 PM UTC+1, Richard Brown

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-23 Thread Richard Brown
Thanks, the answer is 'yes' to all of these checks - web2py.ini file attached. I did find out how to see if the uwsgi process is running and it does appear to be: $ ps aux | grep "uwsgi" richard 1044 0.0 0.1 4276 1824 pts/0S+ 10:54 0:00 grep --color=auto uwsgi On Wednesday, N

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-23 Thread Richard Brown
berry. > easy check: do you have an uwsgi process running ? > > On Tuesday, November 22, 2016 at 11:19:32 PM UTC+1, Richard Brown wrote: >> >> Thanks for the reply. The key word here is obviously 'should' - but is it >> something that should have happened or som

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-22 Thread Richard Brown
Richard On Tuesday, November 22, 2016 at 7:19:25 PM UTC, Niphlod wrote: > that should be generated by the uwsgi daemon > > On Tuesday, November 22, 2016 at 6:34:40 PM UTC+1, Richard Brown wrote: >> >> I've just tried to do a new install of Web2py on a Raspberry Pi 3 havi

[web2py] 502 Bad Gateway - no tmp/web2py.socket file

2016-11-22 Thread Richard Brown
I've just tried to do a new install of Web2py on a Raspberry Pi 3 having been using it under Apache on a Model B for a few years now. I used the script "setup-web2py-nginx-uwsgi-ubuntu.sh" which seems to have done most things correctly, but when I try to access the site I get a '502 Bad Gateway

[web2py] Re: Visibiity of values created in a module

2013-12-20 Thread Richard Brown
when I log out which is quite convenient during development, but now it all sort of works I would like to make it run by default. Thanks, Richard On Thursday, 19 December 2013 23:34:02 UTC, Richard Brown wrote: > I am using the Scheduler to perform some control functions and so have

[web2py] Visibiity of values created in a module

2013-12-19 Thread Richard Brown
I am using the Scheduler to perform some control functions and so have an autonomous function, called by the Scheduler via 'poll.py', in a module called 'utilities.py'. This scans some databases to decide what to do, and this seems to work fine (I have (hopefully) coded around any potential dat

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-19 Thread Richard Brown
Yes, everything but editing. If I reboot the RPi it works for a while, then stops. It seems to me like it is a timing or timeout problem. Everything takes noticeably longer since the upgrade, including my application site which takes >15 seconds to load even over my local network. perhaps that

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-19 Thread Richard Brown
Hi Paolo, this is a web site so presumably has to accessible from the outside? We should probably keep this discussion separate and concentrate on the main issue - is there anything from my list of files with wsgi references which you need to see the errors? -- Resources: - http://web2py.co

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-18 Thread Richard Brown
Hi Paolo, I think I'm getting a bit out of my depth here... I can't specifically find any wsgi log files, I did a 'find'for filenames containing 'wsgi' and the results are attached, with the command I used for the search at the top of the file. Please tell me what I need to send. Last night

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-17 Thread Richard Brown
Hi Paolo, there are no error messages in the Chrome Console, just a 'cancelled' status against the file to be edited under the Network tab. The details are in my posts on Dec 10 in response to Massimo's question. I will try map_hyphen this evening - is this to be added to 'routes.py' as desc

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-17 Thread Richard Brown
e. Maybe I should update now. Hope this helps, Richard. On Monday, 9 December 2013 22:04:31 UTC, Richard Brown wrote: > I am running Web2py on a Raspberry Pi and accessing the Admin > Interface via a browser on a Windows 8.1 PC. Since upgrading to the > latest version I can no lon

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-16 Thread Richard Brown
OK, to answer Paolo's question on Friday as to what had changed to make it not work at all - nothing, only the passage of time. So as an experiment I rebooted my RPi once again and behold it all sprang into life. I have rebooted several times since the Web2py upgrade and each time it works to

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-11 Thread Richard Brown
Yes, it was working fine until I upgraded Web2py. I can open it to view (peek) and it's all there OK, but if I try to edit I get a blank page. If I create a new file from the Admin Interface in the 'controllers' group it behaves in exactly the same way - and this is created by Web2py. I can also

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-11 Thread Richard Brown
A quick update - I tried creating a new file under controllers and that can't be opened for editing either so it has got nothing to do with file size or content, just any file in the controllers folder. Any additional help or workaround for this would be much appreciated. I have been working o

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-10 Thread Richard Brown
> > Sorry, the message image did not display in my last post, I've attached it > as a file. > -- 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 receiv

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-10 Thread Richard Brown
Thanks for the reply - there are no errors in the Console tab, just a warning: event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery.js:4 ...but this appears for any page within the Administrative Interface. However, if I click the Network tab ther

[web2py] Can't edit default.py after upgrade to 2.8.2

2013-12-09 Thread Richard Brown
I am running Web2py on a Raspberry Pi and accessing the Admin Interface via a browser on a Windows 8.1 PC. Since upgrading to the latest version I can no longer edit default.py. When I try I get a 'blank' edit screen with the 'Files Toggle', + A -' etc buttons at the top and the 'Powered by Web2