WARNING! ejabberd can not start Admin user is not created Please check your configuration - ios

My title is my "error" that I am facing in the Terminal when setup the ejabberd.
What I did.
Download package from this website and choose Mac OS X Intel Installer.
I'm following this tutorial.
Where I'm reach at /Applications/ejabberd-16.06/bin by Terminal.
And run ./postinstall.sh cesare jerry.local password
And got below error message in terminal.
WARNING ! ejabberd can not start Admin user is not created Please check your configuration
But I know there is instruction that 'postinstall.sh' script, which has to be run right after the installation to create the admin user.
So For create admin user I go on official site of ejabberd.
But there I can't understand 5th step and my registering process alway in progress .
In short how can I create admin user or how can I remove WARNING from the terminal?
COMMENT : After couples of the days, I found that instead of insall ejabberd with Operating System Specific Packagesr you should try to install ejabberd with Binary Installer.

You do not need to run postinstall.sh script as it is already run by the installer and create the admin user for you. If you have had no error message from the installer, you should already be set. You can just call ejabberd start script.
Please make sure that you also approve listening on ports if OSX firewall ask you to authorise it. Ensure also that the user installing ejabberd has admin rights.

Related

How to install Jenkins on Windows 10 Home?

How do I install jenkins on Windows 10 Home?
I am going through this link to install jenkins on local system.
https://www.jenkins.io/doc/book/installing/windows/
anytime I try to login after installation, I get following error:
From the Jenkins website I get following solution:
Logon to the computer with administrative privileges.
Open the Administrative Tools and open the Local Security Policy
Expand Local Policy and click on User Rights Assignment
In the right pane, right-click Log on as a service and select properties.
Click on the Add User or Group… button to add the new user.
In the Select Users or Groups dialogue, find the user you wish to enter and click OK
Click OK in the Log on as a service Properties to save changes.
But this is not helpful as I am trying to do this on Win 10 Home hence local security policy is not available.
I tried to check system requirements also from https://www.jenkins.io/doc/administration/requirements/windows/ but could not get definitive answer.
Are there any workarounds or solution for this?
I ran into the same problem and could not find a solution. I ended up installing docker desktop on my Win10 Home and now run the precompiled image. Works perfectly.

Deploy a Rails app to Openshift: rhc - Username or password is not correct

Our company wants to build a Rails-based backend website and we chose the OpenShift platform to host and deploy. To connect the two, all the guides lead to the installation of the ruby rhc gem and then setup it.
I'm fresh to OpenShift and I'm trying to setup the rhc toolkit on a remote Ubuntu server. Now I ran gem install rhc and everything went fine. Since I have to configure rhc through rhc setup, I ran this command afterwards and just after asking which server I want to use (I left it blank to use openshift.redhat.com) it comes to the login part.
At this moment, OpenShift Online allows you to login only with your GitHub account, so I gave in the GitHub credentials and... voilĂ ! Username or password is not correct. Tried this both on PuTTy and ConEmu.
I swear I checked the login data more than 1000 times, and I'm totally lost.
Thank you a lot in advance
If you want to use OpenShift Online NextGen Developer Preview, you do not use the rhc client. You need to use the oc client. So anything you read where it says rhc is the wrong documentation.
Once you are logged in through the new web console, select on the '?' in circle top right and select command line tools. It will give you links to the 'oc' tools to download, plus the command you need to run to login from the command line using a session access token.
The link to that page should be:
https://console.preview.openshift.com/console/command-line
Also suggest you get down and use the free eBook for the new platform at:
https://www.openshift.com/promotions/for-developers.html
It uses a VM, but ignore the client login step from that and use that from page above instead and then follow examples in the book against the Online NextGen Developer Preview instead.

Windows Service Install Ends in Rollback

When I try to install a Windows service:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil
I get, what looks to be, some success messages and some failure messages. Part way down:
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The specified service has been marked for deletion
At the end:
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
The service is given an entry in the Services applet, but it is marked as "Disabled". When I attempt to change it to another state, I get a "marked for deletion" error message.
There are no messages in the Event Log. There is nothing useful in the log file created by installutil.exe (I believe it's written to the current working directory).
I have no direction to go with this. What do I do?
It turns out that the install might, or probably will, fail if that service is highlighted in the Services applet. It's safest to just close the Services applet, install the service, and then re-open the Services applet. It's really stupid.
Also, make sure to run the console as admin.
I experienced the same and the issue for me was that a service with the same name was already installed. So in order to install the new service I had to uninstall the older services. I am learning how to create and setup windows services and thus the naming conflicting. Tried uninstalling the service first through:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil -u servicename.exe
Once this statement executes successfully, install your service and it should succeed without any rollbacks.
Right Click on Command Prompt and choose RUN AS ADMINISTRATOR
Then copy and paste in: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe C:\TestService\bin\Debug\TestService.exe
Result in TestService.InstallLog is:
Installing service TestService...
Service TestService has been successfully installed.
Some times this happens due to permission issues.
Run the "Developer Command Prompt for VS 2012" as Administrator.
Then it will work.
Adding few more check's and points to solve this above issue.
Build service in release mode and take release folder files and kept in different path
Copy that path and go to visual studio command prompt window and run this bellow sample command to install the service.
Please close services.msc window if its opened , then run C:Program Files (x86)\Microsoft Visual Studio 11.0>InstallUtil.exe C:\RunLocationServices\TestService.exe
Go services.msc and select that service and click on start ,if it changed to "started" then your service running fine.
Still if issue exists then
Another Checkpoint & SOLUTION
When a service starts, the service communicates to the Service Control Manager how long the service must have to start (the time-out period for the service).
If the Service Control Manager does not receive a "service started" notice from the service within this time-out period,
the Service Control Manager terminates the process that hosts the service.
This time-out period is typically less than 30 seconds.
If you do not adjust this time-out period, the Service Control Manager ends the process.
To adjust this time-out period, follow these steps:
1.Go to Start > Run > and type regedit
2.Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
With the control folder selected, right click in the pane on the right and select new DWORD Value
3.Name the new DWORD: ServicesPipeTimeout
4.Right-click ServicesPipeTimeout, and then click Modify
Click Decimal, type '180000', and then click OK
5.Restart the computer
Still if issue exists then problem in your service code ,infinate loop may occur due to your methods/classes of service calling. Do code review of each line.
This problem is due to security, you'd better open developer command prompt for VS 2012:
RUN AS ADMINISTRATOR
and install your service. It will surely fix your problem.
I tried and the issue was resolved.

How to create Virtual Host

I am using WAMP-2.4.2/Windows-7/PHP-5.4.3 I wanted to create Virtual Host during google I found http://discussion.accuwebhost.com/linux-server/1121-how-set-up-virtual-host-wamp.html but I could not be able to edit host file located at
C:/Windows/System32/drivers/etc/
I also tried ref: http://windows7themes.net/windows-7-hosts-file-access-denied.html
net user administrator /active:yes
on command prompt after run this command it shows successful message but when I tried again to edit host file it say Access Denied
Do you have any security software installed some time we set system file protection while installing antivirus or other security s/w, I had also faced that issue
Follow this as it is detailed article
http://en.kioskea.net/faq/8485-configuring-apache-and-windows-to-create-a-virtual-host

Windows Service installer

I created a Windows service and an installer for it. Now I want to run the windows service under account say na\test.\
I am specifieng it in Projectinstaller.
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.User;
this.serviceProcessInstaller1.Password = "pass123"
this.serviceProcessInstaller1.Username = "na\test";
I am installing the above in so many servers.
All the servers might not have the permissions to na\test.
If it doesn't have permissions the installation is getting stopped.
Is there anyway that I can catch that exception and if the user doesnt have permissions, restart the installation with local user account automatically.
If your installer is created using NSIS install packager you can test for appropriate permissions and act on that during the install process, more here:
http://nsis.sourceforge.net/Docs/Chapter4.html
( look for requestExecutionLevel )
Rather than hard coding the values of the user account, why not test to see if the user has permissions on that machine before trying to install. If they do install using na\test otherwise, install using a local account.

Resources