Chef server error on create user (/etc/opscode/pivotal.rb does not exist) - configuration

I am extremely new to chef and I am attempting to create a chef server running on a Digital Ocean Ubuntu 14.04 droplet. I am using this guide for the install. I download the .deb and installed it fine. I then run chef-server-ctl reconfigure which runs without an issue. When I go to create my user I enter in all the details and run it, it then waits a few seconds and returns the error ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
I have scoured the internet to try and find a fix but haven't been able to find a thing. I have also tried doing these exact steps on a VPS running Ubuntu 12.04.5 and getting identical results.

For /etc/opscode/pivotal.pem is missing error use following command.
cp /opt/opscode/embedded/service/omnibus-ctl/spec/fixtures/pivotal.pem /etc/opscode/

Ran into the same thing when trying to install chef in an VM.
Expanding the memory (from 512Mb to 1512Mb) and reran reconfigure solved it for me.

Same problem here. An older version, for example 12.03 of chef-server works for me with Ubuntu 14.04

I got this error because my /etc/opscode/chef-server.rb had a syntax error.
The syntax error was displayed earlier in the logs, however my install script has kept going, causing later on this error.

More than likely, you have forgotten to run chef-server-ctl reconfigure. It's ambiguous naming of the command as it's reconfigure, however the installation guide for Chef Server actually states to run it after installing the package.
Why it's not part of the installation process is beyond me.

I had this problem as well. I exited my ssh session to the node I was configuring. I connected again and ran chef-server-ctl reconfigure again. I was able to then create a user without the error. I was using chef-server-core_12.1.0-1_amd64.deb for my install.

I got the same error with Ubuntu trusty 14.04 64 bit
/etc/opscode/pivotal.rb does not exist. I followed what Matthias Said and destroyed my VM ( I'm using Vagrant), then I quickly set up the VM and installed Chef server 12.03. I can now set up users correctly.
Just an FYI I also tried to install the latest version of chef which is 12.2.0 and do this but I also ran into the same error when trying to provision a user account.
Downgrading to 12.03 solved it for me.

I run in the same issue on CentOS 7 and Chef Infra Server 12.19.31; the following steps helped me to get the root cause of the problem.
Re-run the chef-server-ctl reconfigure and check if it gives any error at the end of the run
In my case, I received the error
Chef Client failed. 0 resources updated in 02 minutes 19 seconds
Check the stack trace / output log on
/var/opt/opscode/local-mode-cache/chef-stacktrace.out
I received
Errno::ENOMEM: Cannot allocate memory - ls -1 /opt/opscode/embedded/service/oc_id/db/migrate | tail -n 1 | sed -e "s/_.*//g"
To solve the problem, I upgraded the system with higher memory.
TL;DR;
Rerun the chef-server-ctl reconfigure to get the error
Upgrade the allocated memory to solve the issue

Me too got this error while installing chef infra server pkg in centos 8.
"ERROR: CONFIGURATION ERROR: Specified config file /etc/opscode/pivotal.rb does not exist"
Post Memory up-gradation I re-run below cmd its fixed issue:
sudo chef-server-ctl reconfigure

Related

Bitnami unknown error when starting mysql and apache

When attempting to start the mysql and apache services from the Bitnami Wamp stack manager i get the following error.
Starting MySQL Database... Exit code: 1 Stdout:
Stderr: Unknown error starting mysql
I have been able to start the mysql server manually by navigating to the mysql/bin folder and running mysqld, but this is a less than desirable solution.
I tried running the net start "wampstackMySQL" command in cmd, which i found in the mysql/scripts/servicesrun.bat file, but i get the following error.
System error 1058 has occurred.
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
In the services monitor (windows tool) i find both apache and mysql, but all the options for them are greyed out.
There seems to be an issue with the mysql and apache services, but i am unable to figure out what and how to solve this. Anyone have any ideas?

How do I install Mysql with Macports

I am trying to connect a QT app to an SQL database, however keep getting an error with the qmysql driver not loading. Having spent a week now trying all possible solutions, the final solution was to try and install mysql using macports.
I am using a mac with OS Catalina.
I have installed MacPorts using the recommended pkg file.
I have confirmed installation using 'port version' with the following response 'Version: 2.6.2'
As per the instructions on the macports website I try to install using the following command:
$ sudo port install mysql8-server
I get the following error:
Error: Port mysql8-server not found
I have tried other ports listed on the macports website for mysql and all return the same error. Would greatly appreciate if anyone can point out where I might be going wrong and how to fix this issue.
Thanks in advance
For anyone who experiences this problem, following installation run a self update and refresh all of the ports. For some reason on a new install the ports are not updated.

MySql 8.0.15 install failure Invalid Server Template

This is my first MySql install from the ground up.
I am using Windows Server 2016, trying to install MySql 8.0.15. I am doing this to try and use it with php 7.3.1.
The install has all the listed prerequisites.
When I get the config section of mysql insstaller, it breaks on the first response with an error of "Beginning configuration step: Writing configuration file
Invalid server template
Ended configuration step: Writing configuration file"
The system event log has one error, "The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{8D8F4F83-3594-4F07-8369-FC3C3CAE4919}
and APPID
{F72671A9-012C-4725-9D2F-2A4D32D65169}
to the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool."
But I'm not sure this is even the right troubleshooting path to start down.
Can you assist with some guidance?
I had the same problem with the
mysql-installer-web-community.
The mysql-installer-community was working without a problem.
The bottom link is the none web installer which was working.
For me initially when I was not accepting the initial update mysql pop-up then installer was not working, but once I accepted it. Then it successfully worked for me.
I have been able to install after getting the same error.
I have changed the credentials for the sql root.
By default, host is set to something like %ALL_HOST%. I changed to localhost.
I ended up uninstalling all mysql 8 components that had already installed.
Then went back and got the mysql installer 5.7.25.0. I think I had some trouble after that, but it wasn't the same error. I finally ended up installing mysql 8.0.15 by itself and it worked. Then I went back and did the connectors. Next the workbench. Finally docs and samples. Doing them one at a time seemed to go better. I am now up and running.
Here's what I did to fix the issue
completely removed mySQL Server and Workbench installations.
uninstalled the mySQL web installer. Restarted my computer.
ran the mySQL web installer again (only installing mySQL Server)
downloaded the mySQL Workbench installer to install Workbench separately

install mysql5.7.18 on centos7

I'm almost crazy, I installed mysql5.7.18 on centos(Free installation), follow the official manual steps to install, but when i run
/etc/init.d/mysql.server start
The error occurred
ERROR! The server quit without updating PID file (/var/lib/mysql/VM_51_206_centos.pid).
I tried a lot of online methods, such as modify the directory permissions, etc., but the error still exists, which big brother can help out?

Can't get MySQL to start

I can't get my MySQL Sever to start. It had been running fine for a month or so since the install, but after a reboot yesterday, it will not start. I have tried a number of recommendations from other posts here, but no luck.
This install worked fine until the reboot. According to Activity Monitor I do have one mysqld process running.
I get this error from:
mysql -u root
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
I get this error when running:
sudo /usr/local/mysql/support-files/mysql.server start
"ERROR! The server quit without updating PID file (/usr/local/mysql/data/laptop.pid)."
Also the MySQL prerPane shows the Server Status stopped. Clicking the "Start MySQL Server" brings the spinning ball and doesn't start the server.
I don't want to uninstall and reinstall.
I'm running 10.9.6 OSX and what seems to be mysql-5.6.22-osx10.8-x86_64. (even though I also have a directory for mysql-5.7.10-osx10.9-x86_64 in my /usr/local/ directory). My install is from the Pkg file from the MySQL website.
Any suggestions would be welcome.
Card-carrying OS/X user here . . .
Start by firing up the Console utility and using it to examine the logs in /var/log/apache2. (Use File..Open.. within the utility.)
I'm a little bit uncomfortable about your actual boots-on-the-ground situation because you indicate that you have installed a version that is different from the one that Apple provides. (How did it work, before?) Apple's utilities can only be expected to know about Apple's expected tools.
(Incidentally, the latest OS/X, "El Capitan," is running 5.7.11 as "the official, Apple-installed version.")