9
2
Fork
You've already forked platform
2

git push caution main No Procfile found after commit #220

Closed
opened 2026年05月01日 08:06:55 +02:00 by modalala · 5 comments

Following quickstart docs:

(https://docs.caution.co/quickstart/ > https://docs.caution.co/quickstart/fully-managed/#deploy-the-application)

success running caution init -

Initializing new deployment...
Git repository found
Created Procfile in current directory
Edit the required 'run' field to match your application
Build precedence: build: -> containerfile: -> repo-root Containerfile -> Dockerfile
Learn more: https://docs.caution.co/reference/procfile/
Procfile found
Build command: docker build -t app .
App created!
ID: <ID>
Name: frost-tools
State: initialized
Git URL: ssh://git@dashboard.caution.co:2222/<ID>.git
Added git remote 'caution': ssh://git@dashboard.caution.co:2222/<ID>.git

Then, I made some edits and committed the Procfile to the local repo.
Then, git push caution main

remote: [x] Preparing deployment...
remote: error: No Procfile found in repository root. Please add a Procfile with a required `run:` field and either `build:` or `containerfile:`. If both are absent, Caution auto-detects a repo-root `Containerfile` before `Dockerfile`.
remote: error: Invalid deployment response
error: failed to push some refs to 'ssh://dashboard.caution.co:2222/5<ID>.git'

It appears to me that the deployed app does not include the Procfile because it was not committed when originally running caution init, and that there was no update to the newly committed state with git push caution main. However I have not tried to confirm this exact sequence of events, yet.

related: #121

Following quickstart docs: (https://docs.caution.co/quickstart/ > https://docs.caution.co/quickstart/fully-managed/#deploy-the-application) success running `caution init` - ``` Initializing new deployment... Git repository found Created Procfile in current directory Edit the required 'run' field to match your application Build precedence: build: -> containerfile: -> repo-root Containerfile -> Dockerfile Learn more: https://docs.caution.co/reference/procfile/ Procfile found Build command: docker build -t app . App created! ID: <ID> Name: frost-tools State: initialized Git URL: ssh://git@dashboard.caution.co:2222/<ID>.git Added git remote 'caution': ssh://git@dashboard.caution.co:2222/<ID>.git ``` Then, I made some edits and committed the `Procfile` to the local repo. Then, `git push caution main` ``` remote: [x] Preparing deployment... remote: error: No Procfile found in repository root. Please add a Procfile with a required `run:` field and either `build:` or `containerfile:`. If both are absent, Caution auto-detects a repo-root `Containerfile` before `Dockerfile`. remote: error: Invalid deployment response error: failed to push some refs to 'ssh://dashboard.caution.co:2222/5<ID>.git' ``` It appears to me that the deployed app does not include the Procfile because it was not committed when originally running `caution init`, and that there was no update to the newly committed state with `git push caution main`. However I have not tried to confirm this exact sequence of events, yet. related: #121
Author
Member
Copy link

caution apps list returns:
<ID> - <repo_name> (failed)

caution apps get returns:

App Details:
 ID: <ID>
 Name: <repo_name>
 State: failed

caution apps build returns:

Building EIF locally for inspection...
✓ Application image built: caution-local-build:70533cc38b95
Error: Procfile must specify 'binary' field

Then, after changing Procfile, with the binary field uncommented and populated, committing and pushing , I have got a new error having to do with a building script. So now I believe this error is probably because of a malformed Procfile, not a missing Procfile - which would indicate an inaccurate error message. I'll continue testing.

`caution apps list` returns: `<ID> - <repo_name> (failed)` `caution apps get` returns: ``` App Details: ID: <ID> Name: <repo_name> State: failed ``` `caution apps build` returns: ``` Building EIF locally for inspection... ✓ Application image built: caution-local-build:70533cc38b95 Error: Procfile must specify 'binary' field ``` Then, after changing `Procfile`, with the `binary` field uncommented and populated, committing and pushing , I have got a new error having to do with a building script. So now I believe this error is probably because of a malformed `Procfile`, not a missing `Procfile` - which would indicate an inaccurate error message. I'll continue testing.
Author
Member
Copy link

Today, on

commit e8590b39ef0d9643e0087cb0701abd8731e02576 (HEAD -> main, caution/main, caution/HEAD)
Merge: b3d1a5d d40922a
Author: RyanSquared <ryan@distrust.co>
Date: Tue May 5 23:01:06 2026 -0400
 Merge branch 'ryansquared/handle-duplicate-eif'

I did a caution init in a git repo already containing a Procfile :

Procfile found
Build command: docker buildx build -f ./docker/Dockerfile . --platform linux/amd64
App created!
ID: <ID>
Name: app-<8hex>
State: initialized

then, I edited the Procfile, commited locally, then ran git push caution main and got:

remote: error: No Procfile found in repository root. Please add a Procfile with a required `run:` field and either `build:` or `containerfile:`. 

The Procfile had both of these fields.

Today, on ``` commit e8590b39ef0d9643e0087cb0701abd8731e02576 (HEAD -> main, caution/main, caution/HEAD) Merge: b3d1a5d d40922a Author: RyanSquared <ryan@distrust.co> Date: Tue May 5 23:01:06 2026 -0400 Merge branch 'ryansquared/handle-duplicate-eif' ``` I did a `caution init` in a git repo already containing a `Procfile` : ``` Procfile found Build command: docker buildx build -f ./docker/Dockerfile . --platform linux/amd64 App created! ID: <ID> Name: app-<8hex> State: initialized ``` then, I edited the Procfile, commited locally, then ran `git push caution main` and got: ``` remote: error: No Procfile found in repository root. Please add a Procfile with a required `run:` field and either `build:` or `containerfile:`. ``` The Procfile had both of these fields.
Author
Member
Copy link

I repeated the same process, but started the repo without a Procfile, let caution init generate one, and then committed the altered Procfile - I got the same result with an error message saying there is no Procfile.

I repeated the same process, but started the repo without a `Procfile`, let `caution init` generate one, and then committed the altered `Procfile` - I got the same result with an error message saying there is no Procfile.
Author
Member
Copy link

I was not able to reproduce this with demo-hello-world-enclave

I have a sense this is because of something in my app's Procfile which is causing a failure to read-in the file on the server, perhaps?

I was _not_ able to reproduce this with `demo-hello-world-enclave` I have a sense this is because of something in my app's `Procfile` which is causing a failure to read-in the file on the server, perhaps?

procfile is dead, caution.hcl parser produces better errors, closing.

procfile is dead, caution.hcl parser produces better errors, closing.
Sign in to join this conversation.
No Branch/Tag specified
main
feat/legal-publish-doc
fix/issue-119-logout-confirmation
fix/paddle-customdata-credit-mint
anton/feat/multi-user
fix/issue-116-duplicate-ssh-key
fix/issue-265-http-port-private
fix/issue-330-remove-build-binary
feat/paddle-byoc-subscriptions
fix/issue-307-remove-apps
feat/issue-164-account-id
feat/add-tofu-lockfile-cache
feat/webauthn-discoverable-login
docs/issue-339-install-instructions
fix/issue-336-split-qr-login-tokens
fix/verify-app-source-preflight
fix/many-git-push-deploy
fix/issue-334-email-verification-throttle
fix/issue-273-billing-url
fix/issue-333-final-usage-collection
fix/issue-270-low-credit-email
fix/issue-301-remove-auto-topup
fix/issue-320-byoc-auth-first
fix/issue-348-git-progress-checklist
fix/issue-321-byoc-caution-hcl
fix/issue-332-resource-id-suspension
fix/eif-app-mode-normalization
feat/cli-stagex-container
fix/eif-s3-layer-cache
fix/authz-role-checks
fix/cli-hangs-unsupported-ssh-url
feat/print-platform-commit-dashboard
fix/config-domain-validation
anton/support-ssh-destroy-get
fix/cli-config-dir
feat/publish-build-inputs
feat/locksmith-polishing
fix/procfile-run-command-no-split
anton/byoc-require-login
fix/hcl-init-template
feat/egress-default-deny
ryansquared/hcl
quotas
anton/feat/region-routing-resource-unavailable-alert
fix/attestation-502-dashboard
ryansquared/systemdize
fix/verify-git-credential-hang
anton/fix-low-credits-alert
xenushka/rename-byoc
ryansquared/add-download-eif
add-debug-flag
test/pr1-integration-harness
anton/fix/only-pass-required-env-vars
ryansquared/add-database-bucket
No results found.
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
Component/Enclave-Builder
This issue affects Enclave Builder (git-push and CLI)
Component/Infrastructure
This issue affects generic Caution hosted infra components
Deploy/BYOC
Relates to Caution Bring-your-own-compute
Deploy/Full-managed
Relates to Caution fully managed cloud
Deploy/Self-hosted
Relates to Caution deployed on self-hosted infra
Interface/API
This issue affects the API
Interface/CLI
This issue affects the command line interface
Interface/Git
This issue affects the Git `push` interface
Interface/Web
This issue affects the web dashboard
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
caution/platform#220
Reference in a new issue
caution/platform
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?