WebConsoleTool_deploy showing wrong server - webdeploy

I did clone a CS server and made some changes in some of the config files and also updated the SQL users to be able to get CMT up etc. but after running webConsoleTool_deploy I still see the old Hostname, where can I check to make the change to point to the new cloned CS?

Related

How to create a login on a test server without active directory domain?

I'm trying to create a login on our test server with:
CREATE LOGIN [<DOMAIN>\<LOGIN>] FROM WINDOWS;
GO
As opposed to the live server the test server does not have any active directory. So it fails with:
Windows NT user or group 'DOMAIN\LOGIN' not found. Check the name again.
Worth to be mentioned, that on the test server we use a backup of a database dump from the last release and apply new migrations to this dump. This means, that this error would not occur, if a more recent dump from the live server was used, where the active directory login already exists.
To enable proper testing, we discussed three possible options:
Recreate the active directory on the test server: I would like to avoid this, because nobody really wants to administer an additional active directory clone for testing purposes.
Use a more recent database dump: The problem here is, that the live server is not ours and we only have restricted access to it. It is possible, but still not the optimal solution in regard to practicability. Also, it would mean, that we would play in migrations to the live server before having tested them on the test server.
Alternative SQL syntax: I am aware, that there alternative ways of creating logins, e.g., CREATE LOGIN <login_name> WITH PASSWORD. But I could not think of any way, which allows us to create logins depending on which system we are on.
Option 3 is our strong favorite, but we are missing a piece to the puzzle. Anything we are missing here?
You can create a new user on your local computer.
And then add this new user to the instance.
CREATE LOGIN [<domainName or your hostName>\<login_name>] FROM WINDOWS;

What is the purpose of MSSQL$SQLEXPRESS and SQLTELEMETRY$SQLEXPRESS folders in SQL Server 17.9

Anybody knows why I have MSSQL$SQLEXPRESS and SQLTELEMETRY$SQLEXPRESS folders in location C:\Windows\Users after installing SQL Server 17.9?
Is it a problem to delete both of them?
They are Service Accounts. They are essentially fake users that get their own user profile directories, which is why they exist in the User directory. You should keep them there (intact) if you plan on continuing to use SQL Server.
In my case, I was trying to migrate user profiles from an SSD to an SSHD data drive, leaving behind a Directory Junction/Symbolic Link. I found it incredibly frustrating that even after uninstalling all SQL Server stuff, these guys remained behind. That is a legitimate reason to get rid of them. You don't have to have mental issues to not want uninstall residue left over. And, I think it's okay to be concerned about potential conflicts down the road, and not wanting to assume that a reinstall will somehow catch it.
Here is how to remove them. (Again, only if not using SQL Server at all):
• Remove the services in a cmd window:
sc delete MSSQL$SQLExpress
sc delete SQLTELEMETRY$SQLEXPRESS
then
• Open services.msc and Stop the services (I can't remember what they're called, but they both start with SQL and have SQLEXPRESS in their name)
then
• Delete the directories. If doing it from a cmd window:
rd "c:\users\MSSQL$SQLExpress\" /s/q
rd "c:\users\SQLTELEMETRY$SQLEXPRESS\" /s/q

Unable to connect to WLADM

I am trying to install and setup MobileFirst. SO i was able to install WAS ND, create a server, Install Mobilefirst Server, Install database, Create database and now i am trying to create a runtime with the configuration tool.
Below is the Database screenshot which proves that the database exist
This is a screenshot of the creating admin configuration and also it show that the port number is ok
This is a screen shot of the database additional extra setting which is checking for the database WLADM70 which i have given, validation happened without problem but its always in the checking for the database state.

How to switch back to old cluster in rabbitmq incase of the system or hostname changes?

Due to some problems we changed server name and after doing this we restarted server. We found that rabbitmq service stopped and we started rabbitmq service but we lost total data related to rabbitmq and it is looking like we setup new one and cluster name also changed to new server name. Now i want to switch back to my old cluster or i want to retrieve old data. We are using windows server 2012. How to do this?
RabbitMQ by default, stores the data inside an directory based on hostname.
The default dir in widows is:
C:\Users\{youruser}\AppData\Roaming\RabbitMQ\db
In my case for example is:
C:\Users\gabriele\AppData\Roaming\RabbitMQ\db\rabbit#windowsdev-mnesia
and
C:\Users\gabriele\AppData\Roaming\RabbitMQ\db\rabbit#windowsdev-plugins-expand
Now you should have 2 directories inside C:\Users\{youruser}\AppData\Roaming\RabbitMQ\db with old-hostname and new-hostname.
You can:
stop rabbitmq
backup your old-hostname directory
delete the new-hostname directory
rename the old-hostname directory with the new-hostname
I think that you still have your data in your server.
LEt me know.

Connection Failure to remote server

I have a sample app and when I deploy it on the Localhost MobileFirst Server, it successfully connects to the wlapp. When I try to connect the wlapp on my remote server, it fails. After checking the logs, I found out that the URL "https://MyServerIp:Port/MyContextRoot/authorization/vl/clients/instance" is incorrect according to the URL I usually hit. I have been trying to search that where this URL generates so that I could modify it according to my need. I have highlighted the part of the URL which is incorrect.
In https://MyServerIp:Port/MyContextRoot/authorization/vl/clients/instance, the "authorization/vl/clients/instance" part is a constant and you need not change it. However the first part of the "myServerIp" and "Port" is something you need to once moving to a remote server.
To change it, you need to build the application with the correct values. See the instructions in the following user documentation topic on Build Settings and Deploy Target: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.dev.doc/dev/c_building_and_deploying_build_settings_deploy_target.html?lang=en