# Sync offline Run in a other machine

**URL:** <https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218>\
**Category:** W&B Help\
**Tags:** artifacts, wandb\
**Created:** [April 14, 2023, 7:46am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218 "2023-04-14T07:46:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![seirihiri](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@seirihiri](https://community.wandb.ai/u/seirihiri)\
**Post date:** [April 14, 2023, 7:46am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/1 "2023-04-14T07:46:55Z")

</div>

Hello, I ran a Unet on an other machine whithout internet and retrieved the offline Run. I am trying to sync it with wandb but, there are en issu that say:

wandb: ERROR Uploading artifact file failed. Artifact won’t be committed.  
wandb: ERROR Error uploading [Path of the artefact on the other machine] : FileNotFoundError, [Errno 2] No such file or directory: [Path of the artefact on the other machine]

When I searched for a solution, I couldn’t find anything that realy helped and all the last topics had been finished whithout solution or answer from person who questions.

I tryed this:

- !wandb sync --project [the name] --entity [the name] [the path]

- !wandb sync [the path]

- wandbId=wandb.util.generate\_id()  
!wandb sync [the path] --id wandbId

Thank you for your time, I hope you can help me

Have a good day

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [April 18, 2023, 12:57pm UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/2 "2023-04-18T12:57:46Z")

</div>

Hi @seirihiri, thanks for writing in! In order to sync your run, you need to have it under the folder `wandb/offline-run-<date_time>-<run-id>` which is created by default when you execute your offline run. Could you please make sure that this folder exists and then run `wandb sync <path to run folder>` if you want to sync an specific run or `wandb sync --sync-all` if you want to sync all runs (docs [here](https://docs.wandb.ai/ref/cli/wandb-sync))?

---

<div class="post-metadata">

**Author:** ![seirihiri](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@seirihiri](https://community.wandb.ai/u/seirihiri)\
**Post date:** [April 18, 2023, 1:29pm UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/3 "2023-04-18T13:29:28Z")

</div>

Hello, this document is create, there is no problem with this part.

The problem is with the file in the directory `wandb/offline-run-<date_time>-<run-id>` which is name, `run-2pch16mp.wandb` for me. In this file, they are a part where he call artifact at a specific adress on the original computer. Exemple:  
`storageLayout"V2""Ž ?media/classes/99a736c11d116504b33cd665c82578ca_cls.classes.jsond4Xyvg8rzyrpfp12eRJNHg== Z2O/home/.cache/wandb/artifacts/obj/md5/77/85f2be0f2bcf2ae97e9d7679124d1e" %media/images/019575fbc7635ac842d2.pngAZV1+8djWshC0s0BMUfS+w== Č2O/home/.cache/wandb/artifacts/obj/md5/01/9575fbc7635ac842d2cd013147d2fb" %media/images/03f0392f2ffbda0f67d6.pngA/A5Ly/72g9n1rEtoo1k/g== ˝2O/home/.cache/wandb/artifacts/obj/md5/03/f0392f2ffbda0f67d6b12da28d64fe" %media/images/04a1b3c0e7ead0fa5726.pngBKGzwOfq0PpXJvGHqQDSIA== ˝2O/home/.cache/wandb/artifacts/obj/md5/04/a1b3c0e7ead0fa5726f187a900d220"`

But, in the computer where I can sync, I dont have the artifacts in the same directory. I try to change the path in the document `run-2pch16mp.wandb` but it made a error like `invalid header` maybe because this file was not UTF-8 encoded.

If I ignore the error: `wandb: ERROR Uploading artifact file failed. Artifact won’t be committed. wandb: ERROR Error uploading [Path of the artefact on the other machine] : FileNotFoundError, [Errno 2] No such file or directory: [Path of the artefact on the other machine]` and let run the sync with it, nothing appears in wandb.

(sorry for my english, it’s not my native language)

---

<div class="post-metadata">

**Author:** ![seirihiri](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@seirihiri](https://community.wandb.ai/u/seirihiri)\
**Post date:** [April 18, 2023, 1:50pm UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/4 "2023-04-18T13:50:37Z")

</div>

So, I want to know if it’s possible to :

- say to wandb: " my artefact are in an other directory that mension in the file `run-2pch16mp.wandb`"
- run offline without creating artifact
- change the path by hand in the file without making an error  
or another solution that overrides the error

thank you

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [April 24, 2023, 11:57am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/5 "2023-04-24T11:57:29Z")

</div>

Hi @seirihiri, thanks for the explanation! You can set the artifacts folder with the [env variable](https://docs.wandb.ai/guides/track/environment-variables#optional-environment-variables) `WANDB_CACHE_DIR ` and point that to the folder you want. Regarding the artifacts created when running offline, it depends if you’re creating them or not (they can be created not only when logging an [artifact](https://docs.wandb.ai/guides/artifacts#how-it-works) but also when logging tables for example). Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![seirihiri](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@seirihiri](https://community.wandb.ai/u/seirihiri)\
**Post date:** [April 25, 2023, 6:09am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/6 "2023-04-25T06:09:53Z")

</div>

Thanks, I will try this as soon as I can. I will let you know if it is the solution.

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [April 25, 2023, 9:22am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/7 "2023-04-25T09:22:55Z")

</div>

Sounds good! Keep me updated.

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [April 27, 2023, 10:02am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/8 "2023-04-27T10:02:13Z")

</div>

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

---

<div class="post-metadata">

**Author:** ![seirihiri](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@seirihiri](https://community.wandb.ai/u/seirihiri)\
**Post date:** [May 4, 2023, 10:54am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/9 "2023-05-04T10:54:09Z")

</div>

Hello,  
sorry for the time, I didn’t have time before today to test the solution so it works.

Thanks you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [July 3, 2023, 10:54am UTC](https://community.wandb.ai/t/sync-offline-run-in-a-other-machine/4218/10 "2023-07-03T10:54:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
