WindmillWWindmill
Powered by
NaillikN
Windmill•2y ago
Naillik

wmill sync push error

Hi, I'm hitting some cryptic errors trying to promote changes made on a
staging
staging
workspace to a
production
production
workspace.

I've noticed two problems when I try to push changes that are deployed and functioning on my
staging
staging
workspace to
production
production
:

1. When I run
wmill sync push --raw <skip-opts> --include-schedules
wmill sync push --raw <skip-opts> --include-schedules
, it fails with this error:
❯ wmill sync push --raw --skip-resources --skip-variables --skip-secrets --include-schedules

Creating new schedule: f/my_folder/schedule_x_reminder
Not found: script not found at name f/my_folder/x_reminder
❯ wmill sync push --raw --skip-resources --skip-variables --skip-secrets --include-schedules

Creating new schedule: f/my_folder/schedule_x_reminder
Not found: script not found at name f/my_folder/x_reminder

This is despite the fact that a script
f/my_folder/x_reminder
f/my_folder/x_reminder
exists on my local.

2. When I run
wmill sync push --raw <skip-opts>
wmill sync push --raw <skip-opts>
, it fails with an error that tells me very little as to what went wrong:
❯ wmill sync push --raw --skip-resources --skip-variables --skip-secrets
...
Applying changes to files ...
error: Uncaught (in promise) Error: No content path given and no content file found.
    throw new Error("No content path given and no content file found.");
          ^
    at findContentFile (https://deno.land/x/wmill@v1.242.0/script.ts:254:11)
    at eventLoopTick (ext:core/01_core.js:182:7)
    at async handleScriptMetadata (https://deno.land/x/wmill@v1.242.0/script.ts:59:25)
    at async Command.push [as actionHandler] (https://deno.land/x/wmill@v1.242.0/sync.ts:737:11)
    at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1948:7)
    at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1780:14)
    at async https://deno.land/x/wmill@v1.242.0/main.ts:133:3
❯ wmill sync push --raw --skip-resources --skip-variables --skip-secrets
...
Applying changes to files ...
error: Uncaught (in promise) Error: No content path given and no content file found.
    throw new Error("No content path given and no content file found.");
          ^
    at findContentFile (https://deno.land/x/wmill@v1.242.0/script.ts:254:11)
    at eventLoopTick (ext:core/01_core.js:182:7)
    at async handleScriptMetadata (https://deno.land/x/wmill@v1.242.0/script.ts:59:25)
    at async Command.push [as actionHandler] (https://deno.land/x/wmill@v1.242.0/sync.ts:737:11)
    at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1948:7)
    at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1780:14)
    at async https://deno.land/x/wmill@v1.242.0/main.ts:133:3

Here's where the error's coming from: https://deno.land/x/wmill@v1.242.0/script.ts?source=#L247
This error doesn't really tell me anything. Is windmill verifying a referenced <resource/script/variable> exists and preventing pushes if not? If so, which one? Why?

Thanks for any help.
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

wmill cli sync error
SindreSSindre / help
3y ago
What does `wmill sync push --stateful` do?
invakid404Iinvakid404 / help
2y ago
wmill sync resource deletion
hkaderHhkader / help
14mo ago
Changes aren't applying during wmill sync push as expected.
Chris @ Konnect3dCChris @ Konnect3d / help
2y ago