Xamarin Xcode couldn't be found - xcode

I just updated my MacOS to 12.4 and installed Xcode 13.1 but when I try to connect from my PC using VS2022 I get nothing. In the Xamarin output window I get this message Xcode couldn't be found so I am not sure what I need to do to get this running?
Broker 17.2.0.175 started successfully
Successfully connected to Local Broker
Starting IDB Local Agent...
Checking IDB.Local 17.2.0.175 installation...
Starting IDB.Local 17.2.0.175 in port 51028...
IDB.Local 17.2.0.175 started successfully
Successfully started IDB Local Agent
iTunes has not been found. Please ensure to have a valid iTunes installation in order to communicate with Apple devices in Windows
Checking host configuration for connecting to 'User Support - MacBook Pro'...
Checking SSH configuration...
Current SSH Key File: C:\Users\mcdevitt\AppData\Local\Xamarin\MonoTouch\id_rsa.pub
Initializing environment...
Checking available disk space...
Checking Mono installation...
Checking Xamarin iOS installation...
Checking host configuration for connecting to 'User Support - MacBook Pro'...
Host 'User Support - MacBook Pro' is configured correctly
Starting connection to 'User Support - MacBook Pro'...
Checking Broker 17.2.0.175 installation...
Installing Broker 17.2.0.175...
Uploading Broker.zip (160/1533 KB) 10%...
Uploading Broker.zip (320/1533 KB) 20%...
Uploading Broker.zip (464/1533 KB) 30%...
Uploading Broker.zip (624/1533 KB) 40%...
Uploading Broker.zip (768/1533 KB) 50%...
Uploading Broker.zip (928/1533 KB) 60%...
Uploading Broker.zip (1088/1533 KB) 70%...
Uploading Broker.zip (1232/1533 KB) 80%...
Uploading Broker.zip (1392/1533 KB) 90%...
Uploaded Broker.zip 100%
Starting Broker 17.2.0.175 in port 59780...
Broker 17.2.0.175 started successfully
Starting connection to 'User Support - MacBook Pro'...
SSH connection to 'User Support - MacBook Pro' has been established...
Starting registered Agents: IDB 17.2.0.175...
Starting IDB 17.2.0.175...
Checking IDB 17.2.0.175 installation...
Installing IDB 17.2.0.175...
Uploading IDB.zip (1552/15404 KB) 10%...
Uploading IDB.zip (3088/15404 KB) 20%...
Uploading IDB.zip (4624/15404 KB) 30%...
Uploading IDB.zip (6176/15404 KB) 40%...
Uploading IDB.zip (7712/15404 KB) 50%...
Uploading IDB.zip (9248/15404 KB) 60%...
Uploading IDB.zip (10784/15404 KB) 70%...
Uploading IDB.zip (12336/15404 KB) 80%...
Uploading IDB.zip (13872/15404 KB) 90%...
Uploaded IDB.zip 100%
Starting IDB 17.2.0.175 in port 59780...
A remote error occurred in the connected Mac
Xcode couldn't be found at /Applications/Xcode.app. Please specify the right location in Visual Studio under 'Tools > Options > Xamarin > iOS Settings' or ensure that it is installed properly at the default location ('/Applications/Xcode.app')

I just ran into the same error - for me the solution was to open Xcode->Preferences and on the Locations tab the "Command Line Tools" field was empty. Just needed to click on the Command Line Tools drop down and select an Xcode version.
Restarted Visual Studio and reconnected and was able to connect successfully.

Related

Postgres 13 service will not start after installing Postgres 14

I have been using Postgresql 13 on a local server on my Windows 10 computer for over a year successfully now. I decided to upgrade to 14 yesterday.
I installed 14 on a different port. I went to go and upgrade as per this command: pg_upgrade -d "c:\Program Files\PostgreSQL\13\data" -D "c:\Program Files\PostgreSQL\14\data" -b "c:\Program Files\PostgreSQL\13\bin" -B "c:\Program Files\PostgreSQL\14\bin" -U Postgres, but it said it cannot connect to the 13 server. I restarted the computer, and still the 13's Service will not start.
When I type pg_ctl -D "C:\Program Files\PostgreSQL\13\data" start at the cmd line, the below is what shows in my log:
2022-02-15 08:53:45.908 +04 [92100] LOG: starting PostgreSQL 13.3, compiled by Visual C++ build 1914, 64-bit
2022-02-15 08:53:45.909 +04 [92100] LOG: listening on IPv6 address "::", port 5432
2022-02-15 08:53:45.910 +04 [92100] LOG: listening on IPv4 address "0.0.0.0", port 5432
2022-02-15 08:53:45.954 +04 [92672] LOG: database system was shut down at 2022-02-14 14:08:25 +04
2022-02-15 08:53:45.955 +04 [92672] LOG: invalid record length at 24/80B400C8: wanted 24, got 0
2022-02-15 08:53:45.955 +04 [92672] LOG: invalid primary checkpoint record
2022-02-15 08:53:45.955 +04 [92672] PANIC: could not locate a valid checkpoint record
2022-02-15 08:53:46.057 +04 [92100] LOG: startup process (PID 92672) was terminated by exception 0xC0000409
2022-02-15 08:53:46.057 +04 [92100] HINT: See C include file "ntstatus.h" for a description of the hexadecimal value.
2022-02-15 08:53:46.057 +04 [92100] LOG: aborting startup due to startup process failure
2022-02-15 08:53:46.059 +04 [92100] LOG: database system is shut down
What should I do to fix this?
What I have already done is:
PostgreSQL.conf - made sure listen_addresses = '*' was uncommented
made sure Modify was valid for all users of the computer on the Postgres Programs folder
I checked that the Postgres user had full rights to the folder, but there was no user found in my windows.
I added to the pg_hba file: #host all all 0.0.0.0/0 scram-sha-256
oh, and in case it's not apparent, I don't know much about Postgres. I can use it for what I need and that's about it.
As JJanes suggested. I did a backup and then restored in the new server of Postgres 14. It solved the problem. Thank you, JJanes.

Can testcontainers be used without internet access?

Good day!
Can testcontainers be used without internet access? I downloaded the required containers. They start and run. In this case, when running tests, an error occurs. I have no internet access
Code
container = new BrowserWebDriverContainer<>().withCapabilities(Capabilities.getFirefoxOptions()).withRecordingMode(
webDriverForm.get().isVideoError() ? VncRecordingMode.RECORD_FAILING : VncRecordingMode.RECORD_ALL,
new File(webDriverForm.get().getVideoPath()), VncRecordingFormat.MP4);
ontainer.start();
WebDriver driver = container.getWebDriver();
Error
2021-09-27 17:54:47 INFO Connected to docker:
Server Version: 20.10.8
API Version: 1.41
Operating System: Docker Desktop
Total Memory: 12700 MB
2021-09-27 17:54:47 INFO Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
2021-09-27 17:54:48 INFO Credential helper/store (docker-credential-desktop) does not have credentials for index.docker.io
2021-09-27 17:54:49 ERROR Error during callback
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host"}
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:247)
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
at java.lang.Thread.run(Thread.java:748)
Когда пользователь открывает страницу по параметру "https://confluence.ca.sbrf.ru/pages/viewpage.action?pageId=240980441" # CommonStepDefinitionsGUI.loginInFs(String)
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host"}
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:247)
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
at java.lang.Thread.run(Thread.java:748)
at ✽.пользователь открывает страницу по параметру "https://confluence.ca.sbrf.ru/pages/viewpage.action?pageId=240980441"(file:src/test/resources/features/CSA-T1405_Проверка_отображения_Соответствует.feature:6)
Only saved containers can be run in docker.
Containers in Docker
alpine 3.14 14119a10abf4 about 1 month ago 5.6 MB
docker/getting-started latest 083d7564d904 4 months ago 27.99 MB
hello-world latest feb5d9fea6a5 4 days ago 13.26 KB
hello-world <none> d1165f221234 7 months ago 13.34 KB
redis 5.0.3-alpine 3d2a373f46ae over 2 years ago 50.83 MB
selenium/standalone-chrome-debug 2.45.0 d7852787b42a over 6 years ago 750.74 MB
selenium/standalone-firefox-debug 2.45.0 a86fa79ad0c8 over 6 years ago 594.67 MB
testcontainers/ryuk 0.3.2 b24c56207c68 about 2 months ago 11.95 MB
testcontainers/vnc-recorder 1.1.0 e51c318c86f4 over 1 year ago 306.86 MB
If there is no internet access from your network you have to setup your own docker hub. And you have to upload docker containers there via:
docker tag
docker push
commands

Mac brew arangodb delaying start log file path

I have installed arangodb through brew. I am new to both mac and arangodb. Right after installation of arangodb I could start stop it through brew services. But since yesterday that didn't work. However arangod start worked. Today its taking really long time for the service to start up
$ arangod start
2018-04-30T07:40:32Z [3593] INFO ArangoDB 3.3.7 [darwin] 64bit, using jemalloc, build , VPack 0.1.30, RocksDB 5.6.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.0.2o 27 Mar 2018
2018-04-30T07:40:32Z [3593] INFO {authentication} Jwt secret not specified, generating...
2018-04-30T07:40:32Z [3593] INFO using storage engine mmfiles
2018-04-30T07:40:32Z [3593] INFO {cluster} Starting up with role SINGLE
2018-04-30T07:40:32Z [3593] INFO {syscall} file-descriptors (nofiles) hard limit is unlimited, soft limit is 8192
2018-04-30T07:40:32Z [3593] INFO {authentication} Authentication is turned on (system only), authentication for unix sockets is turned on
2018-04-30T07:40:32Z [3593] INFO running WAL recovery (1 logfiles)
2018-04-30T07:40:32Z [3593] INFO replaying WAL logfile '/Users/neel/start/journals/logfile-17009.db' (1 of 1)
2018-04-30T07:40:32Z [3593] INFO WAL recovery finished successfully
2018-04-30T07:40:33Z [3593] INFO using endpoint 'http+tcp://127.0.0.1:8529' for non-encrypted requests
2018-04-30T07:41:33Z [3593] WARNING {v8} giving up waiting for unused V8 context after 60.000000 s
2018-04-30T07:41:43Z [3593] WARNING {v8} giving up waiting for unused V8 context after 60.000000 s
2018-04-30T07:42:34Z [3593] WARNING {v8} giving up waiting for unused V8 context after 60.000000 s
2018-04-30T07:43:05Z [3593] INFO ArangoDB (version 3.3.7 [darwin]) is ready for business. Have fun!
I don't know where are the log files. So when I try to start with brew services start arangodb I can't check whether it has been started or not as it responds Successfully startedarangodb(label: homebrew.mxcl.arangodb) immediately. So my questions are why its delaying ? and where are the log files ?
The log files are located here: /usr/local/var/log/arangodb3
The delay above is caused by lack of available V8 contexts. You can adjust them by setting them in /usr/local/etc/arangodb3/arangod.conf. But the default value there is set to 0, which means that arangodb is to choose how many are running.

vs xamarin.ios broker connection issue

It connects sometimes, sometime it fails, partially successful or fully successful. See log file bellow.
I have tried these hints: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/
Starting Broker 4.1.1.3 in port 52919...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
The operation has timed out.
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.stderr.log...
Starting Broker 4.1.1.3 in port 51080...
Disconnected from Mac 192.168.67.128 (192.168.67.128)
Couldn't connect to 192.168.67.128. Please try again.
There was an error while trying to connect the client vs6984bolaj to the server.
Installing Broker 4.1.1.3...
Uploading Broker 4.1.1.3 (512/4998 KB) 10%...
Uploading Broker 4.1.1.3 (1008/4998 KB) 20%...
Uploading Broker 4.1.1.3 (1504/4998 KB) 30%...
Uploading Broker 4.1.1.3 (2000/4998 KB) 40%...
Uploading Broker 4.1.1.3 (2512/4998 KB) 50%...
Uploading Broker 4.1.1.3 (3008/4998 KB) 60%...
Uploading Broker 4.1.1.3 (3504/4998 KB) 70%...
Uploading Broker 4.1.1.3 (4000/4998 KB) 80%...
Uploading Broker 4.1.1.3 (4512/4998 KB) 90%...
Uploaded Broker 4.1.1.3 100%
Starting Broker 4.1.1.3 in port 50337...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
The operation has timed out.
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.log...
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.stderr.log...
Installing Broker 4.1.1.3...
Uploading Broker 4.1.1.3 (512/4998 KB) 10%...
Uploading Broker 4.1.1.3 (1008/4998 KB) 20%...
Uploading Broker 4.1.1.3 (1504/4998 KB) 30%...
Uploading Broker 4.1.1.3 (2000/4998 KB) 40%...
Uploading Broker 4.1.1.3 (2512/4998 KB) 50%...
Uploading Broker 4.1.1.3 (3008/4998 KB) 60%...
Uploading Broker 4.1.1.3 (3504/4998 KB) 70%...
Uploading Broker 4.1.1.3 (4000/4998 KB) 80%...
Uploading Broker 4.1.1.3 (4512/4998 KB) 90%...
Uploaded Broker 4.1.1.3 100%
Starting Broker 4.1.1.3 in port 56200...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
The operation has timed out.
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.log...
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.stderr.log...
Starting Broker 4.1.1.3 in port 53605...
Disconnected from Mac 192.168.67.128 (192.168.67.128)
Couldn't connect to 192.168.67.128. Please try again.
There was an error while trying to connect the client vs6984bolaj to the server.
Starting Broker 4.1.1.3 in port 56304...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
There was an error while trying to connect the client vs6984bolaj to the server.
Do you use another VPN client application? Disconnect in VPN application and try to connect in Xamarin Mac Agent. And mayby this help to you.
Connection Troubleshooting
I hope its help for you.

Teamcity error - Image does not exist in Amazon EC2

I am using teamcity server 8.0.3 (build 27540) and have set up several git projects. I am using Amazon EC2 images which are set up as cloud agents.
My setup starts up the agents and runs the tests on them when a new job is put to the queue.
I got it working fine for weeks and have not touched the server, and suddenly it stopped working.
In the cloud tabs I now get "Image error" with the message: "Image does not exist in Amazon EC2". Even though the image exists there!
If I open and save or re-create my cloud agent settings then one of the agents will be awoken by teamcity and do builds just fine, but the warning is still there and when the agent shuts down after my time delay I have to re-save the cloud agent settings to force a start on the agent.
I have tried restarting Teamcity with no avail.
This is the errors from teamcity-cloud.log
[2013-12-12 06:11:00,850] WARN [rome'{id=cp3} 1] - .clouds.amazon.image.ImageBase - Failed to fetch data of image AmazonImageInstance{id=i-d123cd29, amazonId=ami-463edb31} from EC2. Image does not exist in Amazon EC2
[2013-12-12 06:11:00,958] INFO [ue; Flush Queue] - .instances.StartInstanceAction - Starting cloud instance: profile 'EC2 TC Win Chrome'{id=cp3}, AmazonImageInstance{id=i-d123cd29, amazonId=ami-463edb31}, hash=EZObYYzWwxDOZ4o9svYSvGbdLqf5e7KQ, reason=Automatic start: Compatible with queued build Booking Log Client :: Win Chrome(promotionId=12008)
[2013-12-12 06:11:01,565] INFO [ue; Flush Queue] - .server.impl.CloudEventsLogger - Cloud instance start succeeded: profile 'EC2 TC Win Chrome'{id=cp3}, Amazon Instance{instanceId=i-d123cd29, imageId=i-d123cd29, amazonImageId=ami-463edb31, status: Scheduled to start}
[2013-12-12 06:11:03,135] INFO [rome'{id=cp3} 1] - r.impl.DBCloudStateManagerImpl - Image: i-d123cd29, Instance: i-d123cd29 is marked with state: running.
[2013-12-12 06:12:18,441] WARN [uled executor 4] - .instances.StoppedInstanceTask - Instance has changed status from stopped to Running: Amazon Instance{instanceId=i-d123cd29, imageId=i-d123cd29, amazonImageId=ami-463edb31, status: Running}, profile 'EC2 TC Win Chrome'{id=cp3}
[2013-12-12 06:12:20,759] WARN [rome'{id=cp3} 1] - .clouds.amazon.image.ImageBase - Failed to fetch data of image AmazonImageInstance{id=i-d123cd29, amazonId=ami-463edb31} from EC2. Image does not exist in Amazon EC2
[2013-12-12 06:13:04,668] INFO [nio-8111-exec-9] - r.impl.DBCloudStateManagerImpl - Image: AmazonImageInstance{id=i-d123cd29, amazonId=ami-463edb31}, profile: profile 'EC2 TC Win Chrome'{id=cp3} was marked to CONTAIN agent
[2013-12-12 06:13:04,672] INFO [nio-8111-exec-9] - .server.impl.CloudEventsLogger - Detected cloud agent EC2-i-d123cd29 {id=24, host=10.254.1.23:9090, agentTypeId=122, pool=Win Chrome}, profile 'EC2 TC Win Chrome'{id=cp3}, Amazon Instance{instanceId=i-d123cd29, imageId=i-d123cd29, amazonImageId=ami-463edb31, status: Running}
and from teamcity-server.log
[2013-12-12 06:13:04,648] WARN - jetbrains.buildServer.AGENT - Agent EC2-i-dd123cd29 is unauthorized with comment: Cloud instance (id=i-dd123cd29, imageId=i-dd123cd29, profileId=cp3) has gone (is not reported by cloud profile)
[2013-12-12 06:13:04,661] INFO - jetbrains.buildServer.SERVER - Agent has been registered: EC2-i-dd123cd29 {id=24, host=10.254.1.23:9090, agentTypeId=122, pool=Win Chrome}, not running a build
[2013-12-12 06:13:04,690] INFO - tbrains.buildServer.ACTIVITIES - Agent "EC2-i-dd123cd29 {id=24, host=10.254.1.23:9090, agentTypeId=122, pool=Win Chrome}" was authorised with comment "Virtual agent is authorized automatically."
[2013-12-12 06:13:05,022] INFO - tbrains.buildServer.ACTIVITIES - Build started; Booking Log Client :: Win Chrome {id=booking_log_client, internal id=bt18} #34 {build id=6213, promotion id=12008, branch=<default>, history=false, agent=EC2-i-dd123cd29 {id=24, host=10.254.1.23:9090, agentTypeId=122, pool=Win Chrome}, triggered by "Nisse Nilsson" (##userId='10'). Started Thu Dec 12 06:13:04 UTC 2013}
[2013-12-12 06:13:57,586] INFO - jetbrains.buildServer.SERVER - Agent description updated for agent: EC2-i-dd123cd29 {id=24, host=10.254.1.23:9090, agentTypeId=122, pool=Win Chrome}
[2013-12-12 06:23:54,323] INFO - jetbrains.buildServer.SERVER - Agent description updated for agent: EC2-i-dd123cd29 {id=24, host=10.254.1.23:9090, agentTypeId=122, pool=Win Chrome}
The error appears due to:
The AMI 'ami-463edb31' is no longer available in EC2's 'EU (Ireland)' region.
source:https://aws.amazon.com/amis/amazon-public-images-basic-microsoft-windows-server-2008-64-bit

Resources