An error occurred while fetching Certbot snap plugins - ssl-certificate

An error occurred while fetching Certbot snap plugins: make sure the snapd service is running. An unexpected error occurred: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))

after some search, problem solved. the answer from certbot with some modifications.
check snap version and inspect the output
snap version
if output shows some issues, then restart snapd
service snapd restart
then recheck snap and certbot are working or not
if not, reinstall snap
https://snapcraft.io/docs/installing-snapd

You also answered this yourself and shared to the world. You're an angel. More blessings to you and your family hitrust

Related

How to fix HTTPD (Apache) Error 256 on OSX Monterey 12.5

I have a Apache2 installed with Homebrew on a Mac running OSX Monterey. I haven't done LAMP development for a while, so I'm not sure when the error started, but I've recently updated OSX to 12.5. When I returned to working on a LAMP project, my Apache installation stopped working. Running brew services produced the following output: Name Status User File httpd error 256 root ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist mysql started Nizz0k ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist.
Running the stop, start, and restart commands produces "success" output in the terminal, but Apache doesn't work. I can't navigate to my local vhosts, and of course, running brew services still shows an error.
In running apachectl -e error Apache complains about permissions to the error logs
I have tried:
uninstalling and reinstalling HTTPD
The apr-utilities fix.
confirming Mac installed Apache is stopped.
At this point, I think my problem is that there was conflicting information about how to run Apache on Homebrew. Earlier versions apparently required sudo, but running it this was now produces warnings like this:
Warning: Taking root:admin ownership of some httpd paths:
/usr/local/Cellar/httpd/2.4.54/bin
/usr/local/Cellar/httpd/2.4.54/bin/httpd
/usr/local/opt/httpd
/usr/local/opt/httpd/bin
/usr/local/var/homebrew/linked/httpd
This will require manual removal of these paths using `sudo rm` on
brew upgrade/reinstall/uninstall.
Warning: httpd must be run as non-root to start at user login!
/Library/LaunchDaemons/homebrew.mxcl.httpd.plist: service already bootstrapped
Bootstrap failed: 37: Operation already in progress
Error: Failure while executing; `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist` exited with 37.
The issue is even after removing the paths as suggested in the error, a reinstallation brings Root back as the owner.
I do have the same problem with nginx.
Manually unloaded it and then restarting it worked fine.
Try:
sudo launchctl bootout system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist
sudo brew services start httpd

Error starting Datastax OpsCenter

Can anyone help troubleshoot Datastax Opscenter installation? Its a new install on clean Ubuntu 14 server. Using apt-get to install, no issues, /var/log/opscenter is empty, but getting the following after tring to start the service, and it doesn't run:
root#unigmadevdse3:/var# service opscenterd start
root#unigmadevdse3:/var# service opscenterd status
* could not access pidfile for Cassandra cluster manager opscenterd root#unigmadevdse3:/var#
What is the version of OpsCenter that you are trying to install? Could you check the ownership/permissions of /var/run/opscenter? Also, can you please check disk space on /var? Try using su to switch to the opscenter user and try $ touch /var/run/opscenter/opscenter.pid. Be sure to remove it after.

(httpd) Getting some problems with Mod_security Installation

I'm using Webuzo on my first unmanaged VPS (CentOS 6.4,OpenVZ). I tried to install Mod_Security following this guide. I installed Modsecurity-apache_2.6.6 but there's a problem in Step3 that prevents me from installing OWASP Mod_Security Core Rule Set
wget http://www.modsecurity.org/download/modsecurity-apache_2.6.6.tar.gz
The Download address has been removed. So I found another guide for the rule set but I can't get this command to work
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
It returns "-bash: git: command not found"
What command should I use to get OWASP CRS?
Also, I suspect the mod_security installation is incomplete since httpd server is unable to restart after installing modsecurity. Here's the configuration error:
[root#xx ~]# httpd -t
Syntax error on line 7 of /etc/httpd/conf.d/modsecurity.conf:
Invalid command 'SecRuleEngine', perhaps misspelled or defined by a module not included in the server configuration
Should I uninstall Mod_Secuirty first since everything seems to have become a mess now?
Any help is appreciated.
The apache binary in case of Webuzo is located at /usr/local/apps/apache and the modules are located at /usr/local/apps/apache/modules/lib.
Also the apache configurations in case of Webuzo are located at /usr/local/apps/apache/etc/ and /usr/local/apps/apache/etc/conf.d/
It seems you are trying to compile mod_security at an inappropriate location.
As you are having error with modsecurity.conf, I wonder whether you have followed the step
Step 4: Configuring Mod_Security
In the guide you have followed.
"-bash: git: command not found"
This error can be resolved by installing the package that includes git. try
yum install git-core -y
Both guide1 and guide2 are good to install mod_sec and follow any one. :)

Soap error in Magento (Failed opening SoapClient.php)

I'm experiencing a problem with the SoapClient in Magento which leads to a not working external module.
The module is working on another Magento installation so I'm guessing it’s related to my magento install.
In my magento log I see the following errors:
2012-07-09T16:52:40+00:00 ERR (3): Warning: include(SoapClient.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/lib/Varien/Autoload.php on line 93
2012-07-09T16:52:40+00:00 ERR (3): Warning: include(SoapClient.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/lib/Varien/Autoload.php on line 93
2012-07-09T16:52:40+00:00 ERR (3): Warning: include(): Failed opening ‘SoapClient.php’ for inclusion (include_path=’/var/www/vhosts/domain.com/httpdocs/app/code/local:/var/www/vhosts/domain.com/httpdocs/app/code/community:/var/www/vhosts/domain.com/httpdocs/app/code/core:/var/www/vhosts/domain.com/httpdocs/lib:.:/usr/share/pear:/usr/share/php’) in /var/www/vhosts/domain.com/httpdocs/lib/Varien/Autoload.php on line 93
I’ve searched this forum and google and found out that it had something to do with the open_basedir restriction. I’ve followed all instructions related to those topics but I’m still having the errors above.
Can somebody help out?
Check if SOAP/PEAR PHP extension is installed on your server.
(on Debian/Ubuntu these are the packages php-pear php-soap)
Please check this post for solving issue
http://nickescobedo.com/583/soapclient-error-after-enabling-fedex-shipping-method-on-magento-ecommerce-solution
http://www.magentocommerce.com/boards/viewthread/263573/#t403847
For me, I just install soap extension via sudo apt-get install php5.6-soap and restart apache via sudo service apache2 restart and it's work well now.

Heroku + Unable to verify SSL Certificate for api.heroku.com

While accessing pushing the code to Heroku from my system, I am getting this error. I tried a lot but unable to remove it.
WARNING: Unable to verify SSL certificate for api.heroku.com
To disable SSL verification, run with HEROKU_SSL_VERIFY=disable
Suggest something !!
Maybe it is a version problem.
Try uninstalling heroku gem with 'gem uninstall heroku' deleting de executable also.
After this try 'gem install heroku -v "<2.0.0"'
After this try to write the command 'heroku keys:add' and enter your email and password
For me this worked fine.