question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: "DepLayer doesn't have any versions in remote" - layer versions / SyncFlow issue when using sam sync

See original GitHub issue

After upgrading to SAM 1.51.0 - I am seeing a stack error across all my stacks to do with missing dependency layer versions:

After initially running it syncs initially… then you make some changes which you expect to be uploaded to AWS but fails with: “Syncing Layer externalJobsLoadingAPIHandler44912949DepLayer…” “DepLayer doesn’t have any versions in remote”

Steps to reproduce:

sam sync --watch --stack-name external-jobs-loader --region eu-west-1 --parameter-overrides EnvType=dev --debug

Observed result:

2022-06-07 16:31:00,657 | SyncFlow [Lambda Function externalJobsLoadingAPIHandler]: Finished
2022-06-07 16:31:00,710 | Finished syncing Lambda Function externalJobsLoadingAPIHandler.
2022-06-07 16:31:00,814 | SyncFlow [Layer externalJobsLoadingAPIHandler44912949DepLayer]: Setting Up
2022-06-07 16:31:00,820 | Syncing Layer externalJobsLoadingAPIHandler44912949DepLayer...
2022-06-07 16:31:01,121 | Code sync encountered an error.
Traceback (most recent call last):
  File "samcli/lib/sync/sync_flow_executor.py", line 335, in _sync_flow_execute_wrapper
  File "samcli/lib/sync/sync_flow.py", line 307, in execute
  File "samcli/lib/sync/flows/auto_dependency_layer_sync_flow.py", line 72, in set_up
samcli.lib.sync.exceptions.NoLayerVersionsFoundError: external-jobs-lodcdd4f9b-externalJobsLoadingAPI44912949-DepLayer doesn't have any versions in remote.

I did also see a new yellow warning: “CodeTrigger not created as CodeUri or DefinitionUri is missing for externalJobsLoaderApi” - so there appears to be requirement for DefinitionUri applied to an API provisioned in my template.yaml?

But this dependency/ S3 URI should be controlled by SAM I understand… ?

  1. OS: Ubuntu Linux 22.04
  2. If using SAM CLI, sam --version: 1.51.0
  3. AWS region: eu-west-1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Leigh-Mcommented, Oct 11, 2022

Apologies I wrote that 3-4 months ago but did not post it, for some reason it was reposted now. Pls ignore, this is resolved as far as I am aware. Thanks

1reaction
andyeffcommented, Jun 28, 2022

Ah, disregard, it seems using --no-dependency-layer lets me work on both functions fine, there’s no issue with the function that has a dependency included in it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SAM 2020.2.6 Release Notes
These release notes describe new features, improvements, and fixed issues in the SolarWinds Server & Application Monitor (SAM) 2020.2.6 service release. They ...
Read more >
Changelog
fs: Warn the user when using an existing remote name without a colon (Nick Craig-Wood); httplib: Add --xxx-min-tls-version option to select minimum TLS ......
Read more >
why does sam sync --watch fails due to a ...
I have no problems uploading the image into ECR when deploying or even when running sam sync with the --code flag. I have...
Read more >
[MEGATHREAD] Issues with Death Stranding on PC? ...
Except (on the PS4) it doesn't crash, you just get an error about failing to connect ... I play with an x box...
Read more >
Bug listing with status CONFIRMED as at 2022/12/20 18:46:38
xcmd-0.99.ebuild (new package)" status:CONFIRMED resolution: severity:enhancement · Bug:152084 - "need a way to remove binary packages with higher version ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found