Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Please Tell Me, When Migrating A Local Server, We Have Problems That The Saved Images Are Not Displayed, It Says "Unable To Load Image" And Links To The Old Server If You Click "Copy Image Url" Or "Open Image". The Migration Was Done According To Backup'

Please tell me, when migrating a local server, we have problems that the saved images are not displayed, it says "Unable to load image" and links to the old server if you click "copy image URL" or "Open image".

The migration was done according to Backup's instructions ( https://clear.ml/docs/latest/docs/deploying_clearml/clearml_server_linux_mac#backing-up-and-restoring-data-and-configuration )

Please tell me, is this how it should be or did we miss something when transferring from one server to another?

upd: if you run clearml on the old server, the images start showing up again

  
  
Posted 2 years ago
Votes Newest

Answers 29


GorgeousSeagull44 Did it help?

  
  
Posted 2 years ago

yup, tried that

  
  
Posted 2 years ago

docker-compose -f /opt/clearml/docker-compose.yml down docker-compose -f /opt/clearml/docker-compose.yml pull docker-compose -f /opt/clearml/docker-compose.yml up -d

  
  
Posted 2 years ago

GorgeousSeagull44
Cool!
Please tell me how to run it, I have never run JS before.

  
  
Posted 2 years ago

:shrug:

  
  
Posted 2 years ago

I am facing a similar issue and followed the steps in https://clearml.slack.com/archives/CTK20V944/p1618473431491800?thread_ts=1618471688.490400&cid=CTK20V944 but it didn't seem to work. The script in my case was,
db.model.find({uri:{$regex:/^http/}}).forEach(function(e,i) { e.uri = e.uri.replace("http://<oldip>:8081/"," http://<newip>:8081/"); db.model.save(e); });

  
  
Posted 2 years ago

Found a fix! The issue was that the field I wanted changed occurs in task not model as I did in the js script. So I used https://gist.github.com/rajiteh/1680586300d11a9c9e7a to change every occurence just in case.. hopefully I didn't break anything

  
  
Posted 2 years ago

GorgeousSeagull44 I think this should have worked (basically replacing all the links on the mongo DB with the new IP)

  
  
Posted 2 years ago

CheerfulGorilla72 Yes, the link changes are reflected in the UI and artifact downloads worked as intended

  
  
Posted 2 years ago

Nice!!

  
  
Posted 2 years ago

just that the links remained unchanged

  
  
Posted 2 years ago

GorgeousSeagull44 did you restart docker compose?

  
  
Posted 2 years ago

CheerfulGorilla72

yes, IP-based access,

hmm so this is the main downside of using IP based server, the links (debug images, models, artifacts) store the full URL (e.g. http://IP:8081/ http://IP:8081/... ) This means if you switched IP they will no longer work. Any chance to fix the new server to the old IP?
(the other option is somehow edit the DB with the links, I guess doable but quite risky)

  
  
Posted 2 years ago

AgitatedDove14
yes, IP-based access, with DNS for some reason took 5 times longer and we abandoned it (MD is about our DNS and its settings).

  
  
Posted 2 years ago

CheerfulGorilla72 Just realized your thread refers more to the debug images while I was referring to saved artifacts. You might find https://github.com/allegroai/clearml-server/issues/83 more useful

  
  
Posted 2 years ago

Is it possible to do something so that the change of the server address is supported and the pictures are pulled up on the new server from the new server?

  
  
Posted 2 years ago

CheerfulGorilla72 could it be the server address has changed when migrating ?

  
  
Posted 2 years ago

AgitatedDove14 yes, that's right, he's changed

  
  
Posted 2 years ago

Is it possible to do something so that the change of the server address is supported and the pictures are pulled up on the new server from the new server?

The link itself (full link) is stored inside the server. Can I assume the access is IP based not host based (i.e. dns) ?

  
  
Posted 2 years ago

Is it possible to do something so that the change of the server address is supported and the pictures are pulled up on the new server from the new server?

Do the links point to a bucket or the fileserver?

  
  
Posted 2 years ago

No errors. Output of mongo backend script.js :
MongoDB shell version v4.4.13 connecting to: Implicit session: session { "id" : UUID("a29b4c5e-0325-40e4-bb13-c9a80123b4e5") } MongoDB server version: 4.4.9

  
  
Posted 2 years ago

AgitatedDove14
I suspect that it will be difficult to assign the old IP - I will consult with the admin guys.

Architecturally it sounds right to work with the base, though I don't have that much experience. I correctly understand, What then it is necessary to replace the address in a line of a way for a file?

  
  
Posted 2 years ago

when the old server is up - all the pictures in the new server are also opened from the old server, if you click on open at the link address

  
  
Posted 2 years ago

About migration - we saved the data archives and copied them to a new server, extracting them to the appropriate folders and setting the necessary rights, and rebuilding the docker image and launching the container

Before all this, we migrated to the new version according to the instructions and everything went well, all the data after the restart was displayed correctly.

And only after that we began the process of switching to new hardware - with a large disk.

  
  
Posted 2 years ago

AgitatedDove14 ^

  
  
Posted 2 years ago

CostlyOstrich36
we have a render server and a file server - one machine, unfortunately I'm not so familiar with clearml yet to set it all up separately.

  
  
Posted 2 years ago

image

  
  
Posted 2 years ago

What's the error you are getting ?

  
  
Posted 2 years ago
703 Views
29 Answers
2 years ago
one month ago
Tags