netz98 / n98-magerun

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
http://magerun.net/
Other
1.44k stars 400 forks source link

n98-magerung install - strange bug when wysiwyg enabled? #283

Closed perler closed 10 years ago

perler commented 10 years ago

I'm not quite sure, if it is even n98 related, but I suspect it.

do this:

  1. n98-magerun install
  2. install in root (./ or .)
  3. base url: http://domain.com/ (is the trailing slash important? I tried both)
  4. enter your new installation and go to CMS|Page|Homepage, press save

in this case, i get a spinning wheel, nothing happens and my nginx writes a return code 499 (?!) into the logs for requests which point to the wyswig editor. as it is actually enough when you try to leave the page, this seems to occur when loading the page, not when saving it.

when you disable the wysiwyg editor, everything works when you install anywhere else than in the root, everything works

could this be a problem of n98 when setting values while installing? I never had something like this in an installation from the magento source and we know, that magento can be picky when it comes to paths, trailing slashes and whathaveyou..

cmuench commented 10 years ago

Hi, thanks for reporting your problem. I tested the installed on my local machine with "." as target installation path. On my machine the wysiwyg controller works. I got no error. Only to clearify what the install command does:

  1. Download the source
  2. Install Sample Data or not
  3. Call install.php (shipped with Magento) of the downloaded source
  4. IndexAll

Problem could also be in Nginx configuration. Status code 499 means "client has closed connection". Can you provide your Nginx Configuration?

perler commented 10 years ago

sure: https://gist.github.com/perler/8254617

I just realized, that another installation on the same server has the same problems (the wysywig editor was disabled there, so it was not appearent in the first place). this installation was also installed with n98 but I tend to think it is an nginx problem. this is an installation on a virtualmin server (my own), in the end is there the problem somewhere..

cmuench commented 10 years ago

@perler I cannot really reproduce the behavior. For some time i published a project in github which creates a complete virtualbox with vagrant and puppet. The Magento installation inside the box is done by n98-magerun. If i start the machine i have no problems to save any CMS page in Magento Admin.

You can test this on your machine.

https://github.com/cmuench/Magento-Vagrant-Puppet-Nginx

The Nginx Config can be found here:

https://github.com/cmuench/Magento-Vagrant-Puppet-Nginx/blob/master/puppet/modules/magento/manifests/nginx.pp