I'm having an issue with 503 error. When I'm trying to log into admin panel, i'm getting:
503 Service Unavailable
The server is temporarily busy, try again later!
I'm using LiteSpeed Web Server.
All front pages such as product pages, checkout etc. works fine.
Admin panel worked fine yesterday and today morning but now it stopped. I haven't changed any files.
If anyone had this problem before and fixed it, or knows could I diagnose it.
I would appreciate your help.
It seems that my hosting provider updated PHP to 7.0.7 form 7.0.3 today, and have not informed me about that. That is probably the reason it doesn't work.
Having the same issue on PHP 7.0.6 & 7.0.7 on Debian Wheezy.
Fallback to PHP 5.6.x or PHP 7.0.3 fix the problem.
On official site, system req. say it should work..
http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements.html
If you would strace it, you get something like:
[pid 8364] stat("/www/vendor/magento/zendframework1/library/Zend/Http/Client/Adapter/Interface.php", {st_mode=S_IFREG|0644, st_size=2193, ...}) = 0
[pid 8364] lstat("/www/vendor/magento/zendframework1/library/Zend/Http/Client.php", {st_mode=S_IFREG|0644, st_size=51384, ...}) = 0
[pid 8364] access("/www/vendor/magento/zendframework1/library/Zend/Http/Client.php", F_OK) = 0
[pid 8364] stat("/www/vendor/magento/zendframework1/library/Zend/Http/Client.php", {st_mode=S_IFREG|0644, st_size=51384, ...}) = 0
[pid 8364] --- SIGSEGV (Segmentation fault) # 0 (0) ---
Process 8364 detached
Issues in on Magento 2.0.3, but also on a fresh install on 2.0.7,..
Related
I have just downloaded a git of a site running on Pyro CMS on the Code Igniter PHP framework and tried to run it locally however it is throwing this error:
[Mon Jul 24 10:05:39.868253 2017] [:error] [pid 5944:tid 1944] [client ::1:55468] PHP Fatal error: Call to a member function result_array() on boolean in C:\\xampp\\htdocs\\system\\codeigniter\\database\\DB_driver.php on line 831
I have tried using result() rather than result_array() however it throws the same error.
The site is running on PHP version 5.6.31 on an XAMPP local server.
Below is the file which is throwing the error:
https://pastebin.com/QXSUD5u6
Little late to the party here but usually that happens in codeigniter when there is no database connection. Check the database config file to make sure it is properly set up for your local host credentials; my guess is that it is still configured to access the 'online' database from which you downloaded the files.
Hi I am trying to install magento 1.9.x and magento2 in my centos operating system.. the following links help to configure apache2.4, php7 and mysql5.7 in centos.
Install magento link
after configure web server, php, mysql, magento files and all. I create database for magento2. Based on above link i did all steps one-by-one. After i run in browser localhost/magento2/
it show 500 Internal server error in firebug and blank browser.
I am beginner of centos and magento
Please any one help how to solve this problem i was spend past two days.
Apache error log:
[Sat Sep 10 14:22:33.728848 2016] [:error] [pid 2809] [client
::1:45432] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir
"/var/www/html/magento2/var/page_cache" is not writable in
/var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack
trace:\n#0
/var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180):
Zend_Cache::throwException('cache_dir "/var...')\n#1
/var/www/html/magento2/vendor/colinmollenhour/cache-backend-file/File.php(87):
Zend_Cache_Backend_File->setCacheDir('/var/www/html/m...')\n#2
/var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(153):
Cm_Cache_Backend_File->__construct(Array)\n#3
/var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(94):
Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4
/var/www/html/magento2/lib/internal/Magento/Framework/App/Cache/Frontend/Factory.php(158):
Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...',
Array, Array, true, true, true)\n#5
/var/www/html/magento2/lib/internal/Magento/Framework/App/Cache/Frontend
in
/var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php
on line 209
To me this look like the main problem:
Uncaught Zend_Cache_Exception: cache_dir
"/var/www/html/magento2/var/page_cache" is not writable in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack
You have the wrong permissions or wrong owner for this folder. You can fix this using chown for fixing the owner of that folder or chmod for fixing writing permissions for that folder.
Try this:
chown -R apache.apache /var/www/html/magento2/
This sets the whole magento2 folder to have apache as owner and group. It is not the best security measure but for testing is fine.
I'm running PHP 5.5.9 on Ubuntu 4.19, Vagrant, Virtual box on Mac. I'm trying to use debugger on PhpStorm (2016.2.1) , so I followed couple of tutorials how to do that, enabled XDebug 2.2.3. My current status is:
When checked from PhpStorm (Run -> Web Server Debug Validation) everything is ok, no errors.
On Google Chrome I've installed "Jet Brains IDE support" plugin
On PhpStorm when I click on "Start listening for PHP debug connections" it turns green - everything fine here too, I guess.
PhpStorm, when I click "Debug" icon, Chrome starts well, opens page I'm trying to debug and I get balloon tip from Chrome: "JetBrains IDE Support" is debugging this browser and small bug icon turns green ("debug" mode).
So apparently everything is ok, but script execution just won't stop at my break point. Any idea what I'm missing here. Here is my php.ini settings regarding xdebug:
Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.cli_color 0 0
xdebug.collect_assignments Off Off
xdebug.collect_includes On On
xdebug.collect_params 0 0
xdebug.collect_return Off Off
xdebug.collect_vars Off Off
xdebug.coverage_enable On On
xdebug.default_enable On On
xdebug.dump.COOKIE no value no value
xdebug.dump.ENV no value no value
xdebug.dump.FILES no value no value
xdebug.dump.GET no value no value
xdebug.dump.POST no value no value
xdebug.dump.REQUEST no value no value
xdebug.dump.SERVER no value no value
xdebug.dump.SESSION no value no value
xdebug.dump_globals On On
xdebug.dump_once On On
xdebug.dump_undefined Off Off
xdebug.extended_info On On
xdebug.file_link_format no value no value
xdebug.idekey PHPSTORM PHPSTORM
xdebug.max_nesting_level 100 100
xdebug.overload_var_dump On On
xdebug.profiler_aggregate Off Off
xdebug.profiler_append Off Off
xdebug.profiler_enable Off Off
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_output_dir /tmp /tmp
xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_connect_back Off Off
xdebug.remote_cookie_expire_time 3600 3600
xdebug.remote_enable On On
xdebug.remote_handler dbgp dbgp
xdebug.remote_host 192.168.33.22 192.168.33.22
xdebug.remote_log no value no value
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
xdebug.scream Off Off
xdebug.show_exception_trace Off Off
xdebug.show_local_vars Off Off
xdebug.show_mem_delta Off Off
xdebug.trace_enable_trigger Off Off
xdebug.trace_format 0 0
xdebug.trace_options 0 0
xdebug.trace_output_dir /tmp /tmp
xdebug.trace_output_name trace.%c trace.%c
xdebug.var_display_max_children 128 128
xdebug.var_display_max_data 512 512
xdebug.var_display_max_depth 3 3
Update 1
On #LazyOne suggestion I checked on php error log and there was an error:
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1935
Failed loading /usr/lib/php5/20100525/xdebug.so: /usr/lib/php5/20100525/xdebug.so: cannot open shared object file: No such file or directory
I checked for missing xdebug.so file and it's parent dir was wrong. On my machine it was "20121212", so I changed that, restarted apache and after I'm getting following content in error log:
[Fri Aug 26 12:15:55.407344 2016] [mpm_prefork:notice] [pid 22840] AH00169: caught SIGTERM, shutting down
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
[Fri Aug 26 12:15:56.415611 2016] [mpm_prefork:notice] [pid 22903] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.19 configured -- resuming normal operations
[Fri Aug 26 12:15:56.415660 2016] [core:notice] [pid 22903] AH00094: Command line: '/usr/sbin/apache2'
That's all there is in php error file. #LazyOne, is that the error log file you were talking about or there is some other?
Update 2
I added following configuration to my php.ini file:
[xdebug]
zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_host = 192.168.33.22
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
Update 3
xdebug log follows:
Log opened at 2016-08-26 13:55:30
I: Connecting to configured address/port: 192.168.33.22:9000.
E: Could not connect to client. :-(
Log closed at 2016-08-26 13:55:30
i need your help once again :)
For some time now i get strange 500 errors in the front and backend of magento. I use magento 1.4.1.1.
The errors can appear everywhere, anytime. I get about 10-20 of them every day. The errorlog reads something like this:
[Wed Oct 17 16:02:19 2012] [warn] [client 93.219.97.29] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: /index.php/admin/sales_order/view/order_id/1617/
[Wed Oct 17 16:02:19 2012] [warn] [client 93.219.97.29] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.xxxx.com/index.php/admin/sales_order/view/order_id/1617/
I have attached a screenshot of the error.
http://i.imgur.com/i6dvO.jpg
Do you guys have any idea what i can do? Thank you very much :)
Greets
I was receiving similar errors on 1.7.0.2 community edition on a Ubuntu 10.04 LTS LAMP server. In my case (using Virtualmin) I had incorrectly set the virtual server to run php in FastCGI as the website owner. The apache user is different from the site owner, and magento multi-site install was setup to run as that apache user.
ALSO, I had uncommented Magento's profiler inside index.php Varien_Profiler::enable();
and turned on the profiler via Magento admin panel (System->Configuration->Developer.
Commenting out the profiler object AND reversing the change to php execution mode did the trick.
See attached for the proper virtualmin setting, found in Virtualmin->Server Configuration->Website Options
I'm working on a very large puppet deployment, but seem to be hitting a brick wall. My ideal setup is to use Nginx + Passenger to serve puppet. The problem I am having is that Puppet throws errors when running through passenger. If I start puppetmasterd, everything works fine, but serving through Passenger gives the following errors:
Jun 22 07:33:04 $master_hostname puppet-master[15710]: Starting Puppet master version 2.6.8
Jun 22 07:33:04 $master_hostname puppet-master[15720]: No support for http method POST
Jun 22 07:33:04 $master_hostname puppet-master[15720]: Denying access: Forbidden request: $client_hostname($client_ip) access to /report/$client_hostname [save] authenticated at line 0
Jun 22 07:33:04 $master_hostname puppet-master[15720]: Forbidden request: $client_hostname($client_ip) access to /report/$client_hostname [save] authenticated at line 0
Everything seems to point to an auth.conf problem, but my auth.conf file is about as generic as it could get, and like I said, everything works when I serve puppet using Rack directly.
Has anybody ever ran into this issue?
Sounds like this:
http://groups.google.com/group/puppet-users/browse_frm/thread/910994e88f21a497/cae809c17a9acd8a?#cae809c17a9acd8a
The concept being that you need to configure NGINX to pass information through to Puppet as it now provides the SSL layers.