I'm having trouble installing Chef Sever (12.0.3) on my Centos 6.4 virtual machine. Whenever I install Chef Server and reconfigure with these commands, the /etc/chef-server does not get created:
rpm -ivh chef-server-core-12.0.1-1.x86_64.rpm
chef-server-ctl reconfigure
This is a problem because all of the .pem files for authentication do not get created as well. Has anyone ran into this issue? I've searched, but I haven't found anyone with this same issue so far. Any help is appreciated.
Jotun,
I think you may be needing the *.pem files and hence searching for chef-server directory.
Chef 12 does not create the chef-server directory and that is because there is no default user (admin incase of chef 11) in chef 12. So you have to exclusively create the user using the below command:
chef-server-ctl user-create any_user_name your_first_name your_last_name email password --filename FILE_NAME
this will create a user with admin rights and the FILENAME should be the path where the admin.pem will be created.
In the same way for org creation,
chef-server-ctl org-create org_short_name org_full_name --association_user admin --filename FILENAME
this will create a organization associated with the admin user and the FILENAME should be the path where the chef-validator.pem will be created.
You can proceed with the steps that you used in chef 11 and configure the workstation.
I couldn't find the reason this error was happening, but I just destroyed my VM and created a new one. Sorry if you are looking at this in the future and still want to know what was causing this problem.
Related
I have tried the solution here by Imraan and this solution here by ThangLeQuoc.
When running stage 7 I still get the error 'Access denied' and cannot install the program.
I have tried to to open new file folder for postgres and check the permissions, it had all the permissions.
I have noticed that during the installing if I open a data folder somewhere else and give it permissions some new user named 'CREATOR USER' is created with no permissions (only for the data folder) then the folder disappears and return.
By the end of the installing I get the error:
The database cluster initialization failed
and no server is installed.
Anyone got another solution? I have tried searching for a day and could not figure out how to fix it.
Thanks!
p.s I tried for postgres 12 and 11.5 and windows 10.
I am trying to setup Hyperledger fabric on my Windows 7 machine. I installed all the prerequisite for environment setup like: Go, Oracle VM, Vagrant.
I cloned the fabric folder from hyperledger site. While trying to run vagrant up, it throws me error like:
connection aborted ,Retrying ....
It took SSH user name as: ubuntu and SSH password: password
I followed the steps from link1 and link2 for my setup.
Can any one suggest me how to solve this problem?
It would be great help for me if anyone share some solutions.
Please find the error screenshot for your reference.
Have you tried the docker setup? Seems to be the recommenced development environment.
To answer your question, Vagrant wants to use SSH keys for password-less access by default. Your Vagrantfile should point to SSH keys to use. Since you're on Windows you may need to generate these keys.
Hi all~~ I'm only 3 month into the coding scene, so forgive my ignorance.
Environment: ruby 2.3.3/rails 5.1/PG9.6.1 installed through homebrew on Mac OSX
My Goal: Trying to build a production ready rails app using Latest postgresql
Problem: as soon as I deployed my rails project and start testing my local server, I ran into "PG::ConnectionBad"/"fe_sendauth: no password supplied"/ #connection = PGconn.connect(#connection_parameters) . error
What I trying to do: I learned I need to config my pg_hba.conf file to set one of the encrypt method to MD5. via suggestion here
Rails + Postgres fe_sendauth: no password supplied
Progress: I was able to locate pg_hba.conf's directory by type in "locate pg_hba.conf"
It's in /Users/mypcname/PostgreSQL/pg96/init/pg_hba.conf
But now I can't find a way to execute the file to do the editing
Usually type in file's extension would let me exceute the file, but in this cause, it says someone about "superuser session", so I tried sudo su /Users/mypcname/PostgreSQL/pg96/init/pg_hba.conf
And got this
su: unknown login: /Users/mypcname/PostgreSQL/pg96/init/pg_hba.conf
So this is where I got stuck, any help and suggestion would be greatly appreciated, thanks in advance
I'm new in Windows. I use Windows 10. While I run vagrant on my machine, there are some issues with UID. Please look at the picture for more information.
While I run vagrant up, I get some warning :
The VirtualBox VM was created with a user that doesn't match the
current user running Vagrant. VirtualBox requires that the same user
be used to manage the VM that as created. Please re-run Vagrant with
that user. This is not a Vagrant issue.
The UID used to create the VM was: 1000
Your UID is: 0
Looks like you are logged in as sudo, hence the UID is different. Log-out of sudo and try vagrant up as normal user.
If the above doesn't work then update the below file
vi .vagrant/machines/default/virtualbox/creator_uid
to add 0 in it
Let me know if this helps.
Find this path and change to 0.
.vagrant/machines/default/virtualbox/creator_uid
In the Windows folder. Vagrant is in the same folder as the Vagrantfile.
As default won't be available, so you may have to edit in every vm but the path is the same: vagrant/machines/(name of the vm)/virtualbox/creator_uid
Remove .vagrant dir in the current working dir and re-run vagrant up command.
Error, because of copy / backup of Vagranfile /s from one system to another system. user id's mismath to the Vagrant to bring up the environment..
hope it helps cheers..!! :))
This happened to me (on subsequent runs) when I used vagrant up with elevated privileges for the first time (administrator).
I need to get MPICH2 working for my college project. But it appears I won't implement anything until I manage how to start MPICH2. For now I only try to run anything on my computer, nothing more. What I do:
I install the MPICH2 (from mpich.org/downloads, from the bottom of the site - the x86_64 Windows version) on my 64bit Windows 7 (I also tried the same with my 64bit Windows 8). I start the installer from a command line (run as an administrator), install MPICH2 for everybody (although my acc is the only one). After successful installation I run the wmpiregister.exe, where I type Danioss (it's the name of my account) and the password for this account. I click register, everything seems to be fine so far. Then I run wmpiconfig.exe, I don't change nor click anything and there is this error:
'g-pc: MPICH2 not installed or unable to query the host'
I can see on the left the table with my host name (g-pc) and the version of MPICH - 1.4.1p1. So it sees it is installed here but cannot query the host. I have no idea what that means.
Of course I tried to execute any compiled program but after running wmpiexec.exe, choosing the file and clicking Execute - I get
'Credentials for Danioss rejected connecting to g-PC
Aborting: Unable to connect to g-PC'
I tried running every .exe as an administrator, didn't help. I also installed and reinstalled the whole MPICH2 tens of times (literally - tens) trying different configurations. I also tried to install the 32bit version but that made no progress. I really have no idea what the problem is.
Please, help me!
Greetings,
Daniel
Try not specifying username after running wmpiexec -register. Just password for your current user. That worked well for me. Source: https://trac.mpich.org/projects/mpich/ticket/1151
First: crate a windows user password of your windows user acount
Second: go to installdir deform (C:\Program Files\SFTC\DEFORM\v10.2\3D)
Third: execute "wmpiregister.exe" and register user name and password that your windows user name and password
start deform on multiprocessor
good work
You need to run wmpiregister.exe which is in bin folder, to register your Windows user.
Register using mpiexec -register with ".\" before the username, in your case: .\Danioss.