can you add some print statements in the admin/controller/default.py
edit action check whether the

POST http://127.0.0.1:8000/admin/default/edit/<file>

is calling the action or not?

On Jun 7, 2:15 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> *leaves gedit / netbeans world to test said bug*
>
> It does not work for me either. No tickets are generated however a 500
> internal server error is caused when looking at firebug.
>
> Ubuntu 10.4, firefox 3.6.3 or Epiphany
>
> Quite strange, I can't figure out what is causing the error =/
>
> *goes back to gedit / netbeans world*
>
> --
> Thadeus
>
> On Mon, Jun 7, 2010 at 2:05 PM, Salvor Hardin <salvor.pub...@gmail.com> wrote:
> > I just tried web2py 1.78.3 on Ubuntu Server 10.04 using Rocket and
> > there is no "communication error" message.
>
> > This problem appears to be introduced in 1.79.1 for some operating
> > systems.  It works fine in Windows, but not in Ubuntu Server 10.04 for
> > me, and Ubuntu 9.10 for Lisandro.
>
> > On Jun 7, 1:41 pm, Lisandro Rostagno <rostagnolisan...@gmail.com>
> > wrote:
> >> Hi.
> >> First, sorry about my english, I'm from Argentina. I'm a user from the
> >> group of spanish users. I've written in that group, but I did't get
> >> any answer.
>
> >> My problem is "exactly" the same that the one reported by Salvor
> >> Hardin.
>
> >> I'm using Ubuntu 9.10, with the last version of web2py (Version 1.79.1
> >> (2010-06-05 19:48:42)).
> >> I've downloaded web2py, unzip, run development server, create
> >> application, edit file, there I receive the "communication error". The
> >> changes that were made before de first error, are saved correctly, but
> >> any changes I do after that it's not saved.
>
> >> I tried with Firefox and Chrome, and the same thing happens in both
> >> cases.
> >> I'm working with the user I always worked in ubuntu, and I unzipped
> >> web2py in my home folder. No directory permission conflict.
>
> >> In fact, the error started to "appear" (i don't know how to say that)
> >> just after the installation of the last stable version of web2py.
>
> >> I also tried to delete all "app/errors/" files, but no error file is
> >> generated.
>
> >> ¿Could someone help me? ¿Or at least guide me "in the look of a"
> >> solution? Thanks very much!
>
> >> On 7 jun, 15:19, Salvor Hardin <salvor.pub...@gmail.com> wrote:
>
> >> > I'm sorry, there are no error tickets generated from this.  And I
> >> > didn't see any errors in javascript consoles in Chrome and Firefox
> >> > +Firebug.
>
> >> > I only got 1 ticket yesterday while setting up apache due to file
> >> > permission error.  Deleted that ticket.  No errors today at all.
>
> >> > When using Apache 2 with Python 2.6.5, I also checked /var/log/apache2/
> >> > error.log which only had one "harmless" error (which I'm told to
> >> > ignore based on Googling)
>
> >> > [Mon Jun 07 12:47:45 2010] [error] Exception KeyError:
> >> > KeyError(-1216764160,) in <module 'threading' from '/usr/lib/python2.6/
> >> > threading.pyc'> ignored
>
> >> > Other than that, no web2py error tickets and no Apache2 errors
> >> > logged.  I'm new to Rocket, so I'll see if I can find the log file(s)
> >> > for that.
>
> >> > On Jun 7, 1:04 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> >> > > try the following. delete all your tickets app/errors/*
> >> > > reproduce the problem and see if you find a new ticket file. If so,
> >> > > please email it to me.
>
> >> > > On Jun 7, 12:43 pm, Salvor Hardin <salvor.pub...@gmail.com> wrote:
>
> >> > > > Here's what I tried:
>
> >> > > >  * I setup SSH tunnel from my Vista desktop's localhost:8080 to
> >> > > > ubuntu.private.lan:80.
> >> > > >  * I modified Apache2's <virtualhost *:80> to enable access to /admin
>
> >> > > > The new non-HTTPS, ssh-tunneled, remote URL to ubuntu.private.lan is:
>
> >> > > >    
> >> > > > http://localhost:8080/admin/default/edit/myblog/views/default/index.html
>
> >> > > > I got same problem again on Firefox and Chrome.  Files get saved
> >> > > > successfully, but "Last Saved On" field shows "communication error" 
> >> > > > in
> >> > > > red background color every time I click Save button.
>
> >> > > > Next, I'll try using Rocket on Ubuntu, just for debugging this
> >> > > > problem.  Rocket won't be approved for production servers here (this
> >> > > > summer), so I hope we can find a solution using Apache 2.2.14.
>
> >> > > > On Jun 7, 11:58 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> >> > > > > Does it work without ssl? Which browser are you using? Have you 
> >> > > > > tried
> >> > > > > other browsers?
>
> >> > > > > Massimo
>
> >> > > > > On Jun 7, 11:47 am, Salvor Hardin <salvor.pub...@gmail.com> wrote:
>
> >> > > > > > I'm new to web2py and python (currently evaluating python 
> >> > > > > > frameworks
> >> > > > > > to replace Ruby on Rails on production servers by July 4th 
> >> > > > > > weekend.)
>
> >> > > > > > PROBLEM:
>
> >> > > > > >  * Saving a file using the admin interface displays a red
> >> > > > > > "communication error" in the "Last Saved On" field.  However, 
> >> > > > > > when I
> >> > > > > > click Reload in the browser, a new date and time appears 
> >> > > > > > correctly so
> >> > > > > > the file is successfully saved.
>
> >> > > > > > I'm using HTTPS (web2py is not running on 127.0.0.1.)
>
> >> > > > > > SYSTEM:
> >> > > > > >  * Software: web2py 1.79.1, Python 2.6.5, Apache 2.2.14, 
> >> > > > > > mod_wsgi 2.8,
> >> > > > > > OpenSSL 0.98k, sqlite 3.6.22
> >> > > > > >  * Browsers:  Latest stable versions of Chrome and Firefox on 
> >> > > > > > Vista 32-
> >> > > > > > bit
> >> > > > > >  * OS: Ubuntu Server 10.04 LTS guest running in Virtual PC 2007 
> >> > > > > > SP1 on
> >> > > > > > Vista 32-bit host
> >> > > > > >           (because Virtual PC 2007 only uses ~16 (sixteen) MB 
> >> > > > > > RAM for
> >> > > > > > actively used Ubuntu Server 10.04 guest setup with 512 MB RAM,
> >> > > > > >            and because my work desktop is Vista, and I need to 
> >> > > > > > develop
> >> > > > > > web apps on identical OS & packages as the production server due 
> >> > > > > > to
> >> > > > > > policy)
>
> >> > > > > > CONFIGURATION:
>
> >> > > > > > I'm using HTTPS, so here's the SSL portion of the Apache2 config
> >> > > > > > (ubuntu.private.lan is the dev machine mapped to a LAN address):
>
> >> > > > > > <VirtualHost *:80>
> >> > > > > >   ServerName ubuntu.private.lan
> >> > > > > >   WSGIDaemonProcess web2py user=www-data group=www-data display-
> >> > > > > > name=web2py
> >> > > > > >    ...
> >> > > > > > </VirtualHost>
>
> >> > > > > > <IfModule mod_ssl.c>
> >> > > > > > <VirtualHost *:443>
> >> > > > > >   ServerName ubuntu.private.lan
>
> >> > > > > >   SSLEngine on
> >> > > > > >   SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
> >> > > > > >   SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
> >> > > > > >   <FilesMatch "\.(cgi|shtml|phtml|php)$">
> >> > > > > >       SSLOptions +StdEnvVars
> >> > > > > >   </FilesMatch>
> >> > > > > >   <Directory /usr/lib/cgi-bin>
> >> > > > > >       SSLOptions +StdEnvVars
> >> > > > > >   </Directory>
> >> > > > > >   BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown
> >> > > > > > downgrade-1.0 force-response-1.0
> >> > > > > >   # MSIE 7 and newer should be able to use keepalive
> >> > > > > >   BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
>
> >> > > > > >   # WSGIDaemonProcess defined is under <VirtualHost *:80> as:
> >> > > > > > WSGIDaemonProcess web2py user=www-data group=www-data display-
> >> > > > > > name=web2py
> >> > > > > >   WSGIProcessGroup web2py
> >> > > > > >   WSGIScriptAlias / /srv/web2py/wsgihandler.py
>
> >> > > > > >   <Directory /srv/web2py>
> >> > > > > >     AllowOverride None
> >> > > > > >     Order Allow,Deny
> >> > > > > >     Deny from all
> >> > > > > >     <Files wsgihandler.py>
> >> > > > > >       Allow from all
> >> > > > > >     </Files>
> >> > > > > >   </Directory>
>
> >> > > > > >   AliasMatch ^/([^/]+)/static/(.*) \
> >> > > > > >         /srv/web2py/applications/$1/static/$2
>
> >> > > > > >   <Directory /srv/web2py/applications/*/static/>
> >> > > > > >     Order Allow,Deny
> >> > > > > >     Allow from all
> >> > > > > >   </Directory>
>
> >> > > > > >   CustomLog /var/log/apache2/access.log common
> >> > > > > >   ErrorLog /var/log/apache2/error.log
>
> >> > > > > > </VirtualHost>
> >> > > > > > </IfModule>

Reply via email to