can't change user.name in Teamcity on server2008 - teamcity

I'm trying to have the build agent run under another account than the build-in SYSTEM account. On our previous windows 2003 box this is no issue; just adding it to the buildAgent.properties and configuring the buildservice to run under the required account works fine.
However, on our server 2008 instalation the new setting is not picked up. Can anyone confirm changing this setting actually works on a server2008? / What else can I try?

Ok, I found the answer on the Teamcity forum here, apparantly it's a known issue and will be fixed in 7.1, but for now there are the following options:
install 7.1 EAP
run the agent using the console
apply a dirty, dirty hack in the registry
Upgrading from 7 to 7.1 resulted into a non-working TC installation so I opted for option 2:
To run the agent.bat we put a batch file in the Buildagent directory containing:
%windir%\system32\runas.exe /savecred /user:domain\user "%windir%\system32\cmd.exe /k D:\Teamcity\buildagent3\bin\agent.bat start"

Related

tomcat a service with the given service name is already installed

I have to uninstall tomcat before reinstall it.But, I mistakenly deleted the file folder first and then uninstalled it from "control Panel", during this process I think somewhat might be got wrong. Now when I am trying to install it it is giving me the message:-
How can I overcome this?
it means that you have already installed a version of tomcat8 on your pc. But you can fix this problem by opening the cmd in administrator mode. then you start the command:
sc.exe delete tomcat8
That is because the server is not fully out of your computer, here follow these steps to remove the existing server on windows:
Navigate to Control Panel.
Open Administrative tools.
Open SERVICES.
You will find Apache tomcat version name, right click on it and open properties.
Cope the name of the server: Tomcat8/Tomcat9.
Now open and run the command prompt as an administrator:
https://www.thewindowsclub.com/how-to-run-command-prompt-as-an-administrator
Write the command: sc Delete Tomcat8/Tomcat9 and hit enter, the existing server is
removed and you are all set to install a new one.

SonarQube installation failing to start service

I'm installing sonarqube on Windows Server 2012.
I have followed the following steps:
Downloaded sonarqube4.4 and extracted to C:\Sonarqube
Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7
Installed Windows SDK 7 and .NET Framework 4
Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and Ihad to hot ctrl- Z to break
I then ran \windows-x86-64\InstallNTService.bat as an administrator and I am seeing the sonarQube services was launched, but failed to start.
Not sure what the problem is.
I believe you first ran \windows-x86-64\InstallNTService.bat successfully and then StartSonar.bat unsuccessfully (the inverse order of what you describe).
You probably have [this problem]: http://qualilogy.com/fr/wp-content/uploads/sites/2/2013/09/Sonar_ServiceLaunchError2.jpg
Windows could not start the Sonar service on Local Computer.
Error 1067: The process terminated unexpectedly.
In that case, the solution is to change the user/rights to launch the Sonar service: https://qualilogy.com/en/migrate-sonarqube-tomcat-to-windows-service/
Go to the Services window, find the Sonar service, and open the Properties windows to change the user it logs on as to one with sufficient permissions.
I was able to solve this problem by creating a new folder named “Temp” in C:\Windows\System32\config\systemprofile\AppData\Local\
The Log-File will show only
--> Wrapper Started as Service
Cleaning or creating >temp directory C:\Program Files (x86)\SonarQube\sonarqube\temp
<-- Wrapper Stopped
The SonarQube service was launched, but failed to start.
After a long search, I came up to this site http://zen-and-art-of-programming.blogspot.de/2013/03/installing-and-running-sonar-source.html.
Solution:
Navigate to C:\Windows\system32\config\systemprofile\AppData\Local\ and create the directory Temp
2: Set the user rights to full access
3: Run the StartNTService.bat

RabbitMQ fails to start

The RabbitMQ windows service will not start:
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.0.4\sbin>rabbitmq-service.bat start
C:\Program Files (x86)\erl5.10.1\erts-5.10.1\bin\erlsrv: Failed to start service RabbitMQ.
Error: The process terminated unexpectedly.
I can run rabbitmq-server.bat without any problems.
No log entries are made to %appdata%\RabbitMQ\log\ directory when trying to start the service.
Any suggestions to how I make it work? Please...
I faced the same problem and was able to solve the problem following the steps mentioned below.
Run the command prompt as Administrator
Navigate to the sbin directory and uninstall the service. rabbitmq-service remove
Reinstall the service rabbitmq-service install
Enable the plugins. rabbitmq-plugins enable rabbitmq_management
Start the service rabbitmq-service start
Go to "http://localhost:15672/"
Problem solved!
My IT department has mapped %appdata% to a network share and it seems that the RabbitMQ scripts can’t work with that.
I solved the problem this way: Set the environment variable “RABBITMQ_BASE” to “c:\rabbitmq”, uninstall the service (rabbitmq-service.bat remove) and install the service again (rabbitmq-service.bat install).
Deleting "AppData\Roaming\RabbitMQ" solved this problem for me
In my case helped running console as an administrator
- check Erlang compatability with RabbitMQ
** Installtion
Install Erlang
Install Rabbit_MQ
Set system variables
Set Environment variable-
RABBITMQ_BASE c:\RabbitMQ Server
ERLANG_HOME C:\Program Files\erl10.7
Config MQ Server
stop RabbitMq : rabbitmq-service.bat stop
Enable management : rabbitmq-plugins.bat enable rabbitmq_management
Reinstall server : rabbitmq-service.bat install
Start Server : rabbitmq-service.bat start
Start App : rabbitmqctl.bat start_app
Open Brower : http://localhost:15672 user guest / guest
Add new User
List users : rabbitmqctl.bat list_users
Add new user : rabbitmqctl.bat add_user user1 pass1
Give administrator privileges : rabbitmqctl.bat set_user_tags user1
I restarted my computer after install and things are running a lot smoother
Deleting HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ folder from Registry has solved the problem for me. I have to reinstall (uninstall and install) the RabbitMQ after deleting the registry.
Moreover, I have deleted C:\Users\<USERNAME>\AppData\Roaming\RabbitMQ earlier.
I have found the solution from a post of a google group.
My situation was caused by wrong Erlang version. I solved it by the following steps:
Uninstall the older version Erlang
Install the newly version Erlang accordding to https://www.rabbitmq.com/which-erlang.html
Reinstall RabbitMQ
Install RabbitMQ plugin by opening the Windows's cmd and switch to the sbin directory eg.Your-Path\rabbitmq_server-3.7.13\sbin and execute the command rabbitmq-plugins.bat enable rabbitmq_management
Start RabbitMQ and visit http://localhost:15672/
How I solved the same issue... Reinstalled Erlang from x86 to x64. Also checked the option to install Microsoft distributed dlls. I don't know which one of two helped me but it helped at least.
run the following command after installation rabbitmq-plugins enable rabbitmq_management on rabbit mq pathRabbitMQ Server\rabbitmq_server-3.6.9\sbin>rabbitmq-plugins enable rabbitmq_management
I have also come across similar problem, but found that the problem due to folder named "Program" in the OS drive.
Reference.
I renamed my computer and restart. Then everything works fine. I guess Chinese characters effect the rabbit service.
old name: 孙
new name: adam
I faced the same issue of 1067 error in Windows 10. It turns out the rabbitmq config file in location C:\Users\IPS\AppData\Roaming\RabbitMQ\advanced.config was having some syntax error. It was changed from the default configuration. Also, the rabbitmq.conf file at the same location also had a syntax error. I removed the rabbitmq.conf file and removed the changes from the advanced.config file. After that ranbbitmq service started without any issues.

VS error when creating new WebAPI project

When I create a new WebAPI project (MVC4) I get the following error.
EntityFramework.5.0.0: Failed to initialize the Powershell host. If your powershell execution policy setting is set to AllSigned, open the package manager console to initialize the host first.
jQuery.1.7.1.1: Failed to initialize the Powershell host. If your powershell execution policy setting is set to AllSigned, open the package manager console to initialize the host first.
After Googling I have found a few answers but nothing that works yet.
Error creating new MVC project - EF and JQuery
This answer seems like it should work for me as my last project was a 7z Command Line app and I might have done something daft with 7zip. But I copy pasted the 7-Zip directory from Program Files to Program Files (86) with no luck.
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/c934fed4-e44e-4a06-9e3b-eccb9c8aa8d6
There is an answer here that might work (I haven't tried it) but even if it does work I wouldnt want to do this every time I create a new project.
Is anyone able to help me with this one?
I got around a similar error by running PowerShell as administrator with the command Set-ExecutionPolicy Unrestricted, restarting Visual Studio, and opening the Package Manager Console before what I wanted to do.
Make sure you understand the security implications of doing this first.
http://technet.microsoft.com/en-us/library/ee176961.aspx
Restricted - No scripts can be run. Windows PowerShell can be used only in interactive mode.
AllSigned - Only scripts signed by a trusted publisher can be run.
RemoteSigned - Downloaded scripts must be signed by a trusted publisher before they can be run.
Unrestricted - No restrictions; all Windows PowerShell scripts can be run.
I encountered this issue recently, after re-install VS and install the latest VS update 2, things go well. This works for me at least.

Can't start glassfish v3 on windows 7

I have glassfish v3 on windows 7 installed, but it won't start on 8080. I get typical dead page when I go to 8080 like you would expect if it's not running.
I tried to start it manually.
C:\glassfish3\bin
asadmin start-domain and what i get is "system cannot find the path specified"
I searched hi and low for an answer but most questions involve glassfish not starting because the port is not free. however that's not my issue.
I've tried reinstalling about a half dozen times and even rebooting. nothing changes
An alternative answer:
Download the zip version here:
http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip
Unzip this to c:\glassfish3
This command will work:
C:\glassfish3\bin\asadmin.bat start-domain domain1
Its a configuration issue, when you try to install glassfish server from the installer sans bundled jdk,simply go to "\glassfish3\glassfish\config", set AS_JAVA to jdk home dir in asenv.bat file, re-run the installation, chose custom installation and "configure an existing installation" and you are done.
For more info:http://java.net/jira/browse/GLASSFISH-16155.
It looks like you forgot a slash in your command. The error your getting isn't a glassfish error, it's a DOS error.
try:
C:\glassfish3\bin\asadmin.bat start-domain domain1
or
C:\glassfish3\bin\asadmin start-domain domain1
Hi I was facing the same issue. I am able to resolve the same issue by following below steps:
Go to \glassfish\config (Note: In my case it is c:\glassfish3\glassfish\config)
Now open asenv.bat in notepad.
Make the value of AS_JAVA same as JAVA_HOME environment variable.
Now open command prompt and go to the bin folder and run asadmin start-domain domain1.
If you are getting error that no domain exist then create new domain by following below link:
http://docs.oracle.com/cd/E19776-01/820-4497/create-domain-1/index.html

Resources