Elasticsearch snapshot restore throwing "repository missing" exception - amazon-s3

"error": "RemoteTransportException[[Francis Underwood][inet[/xx.xx.xx.xx:9300]][cluster/snapshot/get]]; nested: RepositoryMissingException[[xxxxxxxxx] missing]; ",
"status": 404
I am also unable to create new snapshot repository for snapshots on s3
PUT _snapshot/bkp_xxxxx_master
{
"type": "s3",
settings": {
"region": "us-xxxx-x",
"bucket": "elasticsearch-backups",
"access_key": "xxxxxxxxxxxx",
"secret_key": "xxxxxxxxxxxxxxxxxxx"
}
}
Response I receive for this PUT is below:
{
"error": "RemoteTransportException[[Francis Underwood][inet[/xx.xx.xx.xx:9300]][cluster/repository/put]]; nested: RepositoryException[[bkp_xxxxxxx_master] failed to create repository]; nested:'AbstractMethodError[org.elasticsearch.cloud.aws.blobstore.S3BlobStore.immutableBlobContainer(Lorg/elasticsearch/common/blobstore/BlobPath;)Lorg/elasticsearch/common/blobstore/ImmutableBlobContainer;]; ",
"status": 500
}
Thanks in advance!

I know this is an old issue but I had been able to replicate this over multiple ElasticSearch versions and it turns out that the reason was conflict between JVM versions and elasticsearch-aws-cloud plugin versions.
As long as you have consistent versions across the cluster (in my case it was Joda version in elasticsearch-aws-cloud was not compatible with the latest JVM version I had installed on the newer nodes.

Related

Error while uploading (img+json) pairs on to Solana Devnet

I'm trying to upload NFT assets using the Solana devnet with candy machine v2
This is the command that I am running
ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload -e devnet -k ~/.config/solana/devnet.json -cp config.json ./assets
when I run the command above, I get this error message:
Beginning the upload for 7 (img+json) pairs
started at: 1644272598092
initializing candy machine
Error deploying config to Solana network. RangeError: indeterminate span
at Structure.getSpan (/Users/dlku/metaplex-foundation/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1221:13)
at Structure.encode (/Users/dlku/metaplex-foundation/metaplex/js/node_modules/buffer-layout/lib/Layout.js:1267:23)
at InstructionCoder._encode (/Users/dlku/metaplex-foundation/metaplex/js/packages/cli/node_modules/#project-serum/anchor/src/coder/instruction.ts:85:24)
Has anyone else ran into this issue ? Any help would be appreciated
Here's an example of the json data:
{
"name":"NFT NAME",
"symbol": "NN",
"description": "My collection",
"image": "7.png",
"properties": {
"creators": [{"address": "00x00x00x00x000x00x00x", "share": 100}],
"files": [{"uri": "7.png", "type": "image/png"}]
}
}
and this is the config:
{
"price": 0.50,
"number": 10,
"solTreasuryAccount":
"00x00x000x0x000x00x00x000x0000x00x00",
"storage": "arweave"
}
similar questions but didn't solve my issue:
4 months ago
1 month ago
github
Apparently many users are having issue with devnet
So as of March 7 2022 devnet is acting up , it'd recommend using an RPC

Azure FHIR search for resources with _include

I have a DiagnosticReport resouce that has an encounter and 3 observation resources references. I am trying to do a search query that would return a Bundle with the DiagnosticReport and all referenced resources so as to not have to do 4 other queries.
"encounter": {
"reference": "Encounter/8720d7d7-68cc-3575-8c79-9de39561324c"
},
"effectivePeriod": {
"start": "2020-07-01T08:16:00.000Z",
"end": "2020-07-01T08:16:00.000Z"
},
"issued": "2020-07-01T08:17:03+00:00",
"result": [
{
"reference": "Observation/89510c61-8a94-3c65-8832-3397d2a70bfd"
},
{
"reference": "Observation/3d837dbf-3d4c-3742-9b6e-2638d26d8c54"
},
{
"reference": "Observation/618ec246-2d98-3179-a0a2-a0094046f466"
}
]
I have tried
[Base]/DiagnosticReport/{id}?_include=DiagnosticReport:Encounter
[Base]/DiagnosticReport/{id}?_include=DiagnosticReport:Encounter/{id}
Is there a way to get the DiagnosticReport & Encoutner & Observation in one Bundle?
This is an SQL OSS FHIR Server, so according to Documentation _include is supported in the SQL Version of azure.
You need to use the search parameters when you specify the includes, so in your case:
https://fhir-server-url/DiagnosticReport?_id=1234&_include=DiagnosticReport:encounter&_include=DiagnosticReport:result
Will return the Encounter and the Observation resources in the bundle.
I'm using FHIR API Service also. I ran across this issue for Encounter and this worked for me.
https://lcavantage.azurehealthcareapis.com/Encounter?_id=f1c06cc6-be9c-e673-408e-e6e303d9924a&_include=Encounter:subject
I believe this works now because COSMOS DB has had a few updates this question was presented and handles relationships better!

Windows image fails to pull with error "failed to register layer"

I have image stored in AzureCI and I it fails to launch with following errors. I would assume since second entry is backing off of pulling image that image actually successfully downloaded but there is no additional information available about second error. Image is based of microsoft/dotnet-framework which is in turn based off windowsservercore image
{
"count": 58,
"firstTimestamp": "2018-01-23T04:06:59+00:00",
"lastTimestamp": "2018-01-23T12:37:39+00:00",
"message": "pulling image \"cr.azurecr.io/id-poc:latest\"",
"name": "Pulling",
"type": "Normal"
},
{
"count": 331,
"firstTimestamp": "2018-01-23T04:07:15+00:00",
"lastTimestamp": "2018-01-23T12:29:53+00:00",
"message": "Back-off pulling image \"cr.azurecr.io/id-poc:latest\"",
"name": "BackOff",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2018-01-23T11:52:33+00:00",
"lastTimestamp": "2018-01-23T11:52:33+00:00",
"message": "Failed to pull image \"cr.azurecr.io/id-poc:latest\": failed to register layer: re-exec error: exit status 1: output: failed in Win32: The system cannot find the file specified. (0x2) \nhcsshim::ImportLayer failed in Win32: The system cannot find the file specified. (0x2)",
"name": "Failed",
"type": "Warning"
}, this continues 10 more times
Edit 2: Turns out it was due to a base of unsupported Windows 1709.
Edit: Thanks for the clarification, made an assumption it was 1709 there. Let me look into it!
Unfortunately Windows 1709 images are not supported right now on Azure Container Instances. This will be fixed in the April time frame. In the mean time please use Windows images based on other versions as a work around - apologies for that! We're working on it!

composer set a local repository (satis)

I want to set a local Repository, so i set up satis.
I loaded SonataAdminBundle and KnpMenuBundle as an exemple.
satis.json:
{"type": "vcs", "url": "https://github.com/sonata-project/SonataAdminBundle"},{"type": "vcs", "url": "https://github.com/KnpLabs/KnpMenuBundle"}
After that, in my project composer :
{"repositories": [
{
"type": "composer",
"url": "http://my.local.repo/"
},
{ "packagist" : false }
],
"minimum-stability":"dev",
"require": {
"sonata-project/admin-bundle": "dev-master"
},
}
when i do a composer update, i got this error:
Problem 1
- sonata-project/admin-bundle dev-master requires knplabs/knp-menu >=1.1.0,<3.0.0 -> no matching package found.
- sonata-project/admin-bundle dev-master requires knplabs/knp-menu >=1.1.0,<3.0.0 -> no matching package found.
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.
what shall i do ?
I got the solution:
There is two bundles : knplabs/knp-menu-bundle and knplabs/knp-menu , I was downloading the wrong one.

Taking screenshots with Selenium Builder

Using Selenium Builder, I've created the following json file:
{
"type": "script",
"seleniumVersion": "2",
"formatVersion": 2,
"steps": [
{
"type": "get",
"url": "http://stackoverflow.com/"
},
{
"type": "saveScreenshot",
"file": foo.png"
}
],
"data": {
"configs": {},
"source": "none"
},
"inputs": [],
"timeoutSeconds": 60
}
I tried running it on Windows 7 and two different Ubuntu machines. Instead of the filepath "foo.png" I had also inserted "E:\foo.png" / "/home/swege/foo.png". However, I always get the "exception":
Could not take screenshot of current page - [object Object]
At least I would like to be able to read the "error object", but every system just puts out that the error is a JavaScript object. Any idea how to fix the issue or read the full error message?
Try following :
http://www.ontestautomation.com/how-to-create-screenshots-in-your-selenium-webdriver-tests/
Above can help you to get exact code that how you can take screenshots using selenium.
So I pulled down and looked at the source for Selenium Builder 2 and found two files that I think show the origin of the error, command_processor.js and driver_component.js.
I can't make out why the error is occurring - maybe someone here can build on this?
Try using a full file path, not just foo.png. On Mac, these worked for me: ~/foo.png and ~/Downloads/screenshots/foo.png.
It's also important that the folder exists and is writable by the account running the web browser.