# Artifact issue while containerising application on Google cloud build

**URL:** <https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503>\
**Category:** General Usage\
**Tags:** question, pkg, docker, artifacts\
**Created:** [June 29, 2022, 7:39am UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503 "2022-06-29T07:39:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdsa3d](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mdsa3d/32/20389_2.png) [@mdsa3d](https://discourse.julialang.org/u/mdsa3d)\
**Post date:** [June 29, 2022, 7:39am UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503/1 "2022-06-29T07:39:11Z")

</div>

Hi, I have been facing Julia artifacts error while trying to deploy a Julia application on google cloud build. The application works fine normally and even after dockerizing locally. But for some reason on GCP, it fails with `Libiconv_jll artifact missing` error.

Error from google cloud build logs:

```bash
Container Sandbox: Unsupported syscall UNKNOWN[1008/0x3f0](0x0,0x0,0x0,0x0,0x0,0x0). It is very likely that you can safely ignore this message and that this is not the cause of any error you might be troubleshooting. Please, refer to https://gvisor.dev/docs/user_guide/compatibility/linux/amd64/#UNKNOWN[1008/0x3f0] for more information.
fatal: error thrown and no exception handler available.
InitError(mod=:Libiconv_jll, error=ErrorException("Artifact "Libiconv" was not installed correctly. Try `using Pkg; Pkg.instantiate()` to re-install all missing resources."))
error at ./error.jl:33
_artifact_str at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Artifacts/src/Artifacts.jl:551
jfptr__artifact_str_70358 at /home/AiSaraAI.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
jl_f__call_latest at /buildworker/worker/package_linux64/build/src/builtins.c:714
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:670
#invokelatest#2 at ./essentials.jl:708
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:670
invokelatest at ./essentials.jl:706
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:115
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:204
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:155 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:562
jl_fptr_interpret_call at /buildworker/worker/package_linux64/build/src/interpreter.c:650
macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Artifacts/src/Artifacts.jl:680 [inlined]
find_artifact_dir at /root/.julia/packages/JLLWrappers/QpMQW/src/wrapper_generators.jl:17

```

So far I have tried following options:

1. `Pkg.instantiate()`
2. adding `Manifest.toml` so the same dependencies are rebuilt
3. Supplying `Artifacts.toml` for `Libiconv`
4. `Pkg.build()` and `Pkg.resolve()`  
But none seems to be working.  
Any idea how can i resolve the issue? Would appreciate all the suggestions.

---

<div class="post-metadata">

**Author:** ![mdsa3d](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mdsa3d/32/20389_2.png) [@mdsa3d](https://discourse.julialang.org/u/mdsa3d)\
**Post date:** [June 29, 2022, 8:29am UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503/2 "2022-06-29T08:29:25Z")

</div>

This is the artifact (Libiconv) debug information from google cloud build.

```julia
[ Info: Platform: Linux x86_64 {cxxstring_abi=cxx11, julia_version=1.6.5, libc=glibc, libgfortran_version=4.0.0, libstdcxx_version=3.4.29}
Julia Version 1.6.5
Commit 9058264a69 (2021-12-19 12:30 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, broadwell)
Environment:
  JULIA_GPG = 3673DF529D9049477F76B37566E3C7DC03D6E495
  JULIA_PATH = /usr/local/julia
  JULIA_PROJECT = @.
  JULIA_VERSION = 1.6.5

[ Info: Downloading Artifacts.toml to /tmp/jl_RGSs6I/Artifacts.toml...
[ Info: Extracting artifact info for platform x86_64-linux-gnu-libgfortran4-cxx11-libstdcxx29-julia_version+1.6.5...
[ Info: Found meta object with git-tree-sha1 473dc2ed3d46252c87733b7fdca3da64c6f9f917, attempting download...
[ Info: No hash cache found
[ Info: Calculated hash 518b0c2f04ba6057dc5ed63f4dc23e4abac49840b6b5470ce8cf1ad8412c6227 for file /tmp/jl_kQPl6I-download.gz
[ Info: Unpacking /tmp/jl_kQPl6I-download.gz into /tmp/jl_RGSs6I/unpacked...
[ Info: Double-checking git-tree-sha (this is skipped on Windows)

```

The GCP is providing `Intel` x86 CPU, the application should not have any issue but for some reason running the application still fails.  
So the build stage seems to be working but, when I run the application in `google cloud run` as a service, it fails to start because of the error.  
CONFUSED !

---

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [February 20, 2023, 1:54pm UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503/3 "2023-02-20T13:54:57Z")

</div>

@mdsa3d I am running into the same surprising error. Have you found any workaround?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [February 20, 2023, 2:13pm UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503/4 "2023-02-20T14:13:15Z")

</div>

I’m afraid it’s hard to help without more detail. Have you logged into the container and run Pkg.instantiate in there? What happens? Can you try to look around for a Libiconv artifact?

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [March 5, 2023, 8:10pm UTC](https://discourse.julialang.org/t/artifact-issue-while-containerising-application-on-google-cloud-build/83503/5 "2023-03-05T20:10:55Z")

</div>

Change Ur package location with a global variable. The install path and running path of the PKG seem different
