Comments (7)
Got error when attempting to deploy from localhost
:
WARN Failed to start remote builder heartbeat: failed building options: failed probing "dwyl-image-uploads": context deadline exceeded
Error: failed to fetch an image or build from source: error connecting to docker: failed building options: failed probing "dwyl-image-uploads": context deadline exceeded
from imgup.
Solution:
fly wireguard reset
Then deploy appears to work ... ⏳
from imgup.
Added the init to check environment variables are defined:
from imgup.
The variables appear to be all set on: https://imgup.fly.dev/
This is a real head-scratcher ... 🤷♂️
from imgup.
Tried to deploy, got:
Running imgup release_command: /app/bin/migrate
Waiting for 9080142b631958 to get exit event
Error release_command failed running on machine 9080142b631958 with exit code 1.
Check its logs: here's the last 100 lines below, or run 'fly logs -i 9080142b631958':
Pulling container image registry.fly.io/imgup:deployment-01H2WND6FRX86NKA0WKC1SEC1J
Successfully prepared image registry.fly.io/imgup:deployment-01H2WND6FRX86NKA0WKC1SEC1J (4.544811912s)
INFO Starting init (commit: 0b28cec)...
INFO Preparing to run: `/app/bin/migrate` as nobody
INFO [fly api proxy] listening at /.fly/api
2023/06/14 09:59:36 listening on [fdaa:2:4078:a7b:2808:e1c4:85a5:2]:22 (DNS: [fdaa::3]:53)
ERROR! the application :ex_aws has a different value set for key :region during runtime compared to compile time. Since this application environment entry was marked as compile time, this difference can lead to different behaviour than expected:
* Compile time value was set to: nil
* Runtime value was set to: "eu-west-3"
To fix this error, you might:
* Make the runtime value match the compile time one
* Recompile your project. If the misconfigured application is a dependency, you may need to run "mix deps.compile ex_aws --force"
* Alternatively, you can disable this check. If you are using releases, you can set :validate_compile_env to false in your release configuration. If you are using Mix to start your system, you can pass the --no-validate-compile-env flag
{"init terminating in do_boot",{<<"aborting boot">>,[{'Elixir.Config.Provider',boot,2,[]}]}}
init terminating in do_boot ({,[{Elixir.Config.Provider,boot,2,[]}]})
Crash dump is being written to: erl_crash.dump...done
INFO Main child exited normally with code: 1
INFO Starting clean up.
WARN hallpass exited, pid: 515, status: signal: 15 (SIGTERM)
2023/06/14 09:59:39 listening on [fdaa:2:4078:a7b:2808:e1c4:85a5:2]:22 (DNS: [fdaa::3]:53)
[ 4.346481] reboot: Restarting system
machine restart policy set to 'no', not restarting
Error: release command failed - aborting deployment. error release_command machine 9080142b631958 exited with non-zero status of 1
from imgup.
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/imgup]
ef9b7d0efc36: Pushed
7ab4a3474c89: Layer already exists
cc33c43453df: Layer already exists
e8d208546010: Layer already exists
75af88e21fd1: Layer already exists
67a4178b7d47: Layer already exists
deployment-01H2WNRFE8M9B09BFH2K1F32B2: digest: sha256:29ed8315ed5a732f2bcc8f2cde9388bfe21537b866c8dba66884e6bdf16ffe8b size: 1575
--> Pushing image done
image: registry.fly.io/imgup:deployment-01H2WNRFE8M9B09BFH2K1F32B2
image size: 123 MB
Watch your app at https://fly.io/apps/imgup/monitoring
Running imgup release_command: /app/bin/migrate
Waiting for 6e82977a760958 to get exit event
Error release_command failed running on machine 6e82977a760958 with exit code 1.
Check its logs: here's the last 100 lines below, or run 'fly logs -i 6e82977a760958':
Pulling container image registry.fly.io/imgup:deployment-01H2WNRFE8M9B09BFH2K1F32B2
Successfully prepared image registry.fly.io/imgup:deployment-01H2WNRFE8M9B09BFH2K1F32B2 (4.885829421s)
Configuring firecracker
INFO Starting init (commit: 0b28cec)...
INFO Preparing to run: `/app/bin/migrate` as nobody
INFO [fly api proxy] listening at /.fly/api
2023/06/14 10:07:20 listening on [fdaa:2:4078:a7b:be65:8d8e:61e7:2]:22 (DNS: [fdaa::3]:53)
ERROR! the application :ex_aws has a different value set for key :region during runtime compared to compile time. Since this application environment entry was marked as compile time, this difference can lead to different behaviour than expected:
* Compile time value was set to: nil
* Runtime value was set to: "eu-west-3"
To fix this error, you might:
* Make the runtime value match the compile time one
* Recompile your project. If the misconfigured application is a dependency, you may need to run "mix deps.compile ex_aws --force"
* Alternatively, you can disable this check. If you are using releases, you can set :validate_compile_env to false in your release configuration. If you are using Mix to start your system, you can pass the --no-validate-compile-env flag
{"init terminating in do_boot",{<<"aborting boot">>,[{'Elixir.Config.Provider',boot,2,[]}]}}
init terminating in do_boot ({,[{Elixir.Config.Provider,boot,2,[]}]})
Crash dump is being written to: erl_crash.dump...done
INFO Main child exited normally with code: 1
INFO Starting clean up.
WARN hallpass exited, pid: 514, status: signal: 15 (SIGTERM)
2023/06/14 10:07:21 listening on [fdaa:2:4078:a7b:be65:8d8e:61e7:2]:22 (DNS: [fdaa::3]:53)
[ 2.124423] reboot: Restarting system
machine restart policy set to 'no', not restarting
Error: release command failed - aborting deployment. error release_command machine 6e82977a760958 exited with non-zero status of 1
from imgup.
Environment variables are now accessible on the Fly.io instance. ✅
Sadly we're getting a different error ... #71
from imgup.
Related Issues (20)
- Chore: Remove Image Expiry (Don't delete images from S3) HOT 4
- `imgup` Fly.io App deployment overwriting AWS env vars leading to failure HOT 4
- chore: Have bucket names imported env variables
- BUG: Couldn't upload files to S3. Open an issue on Github and contact the repo owner. HOT 2
- Feat: Logging + Metrics
- `Who` can/should use our image uploading + resizing service?
- EPIC: Clarifying Goals/Roadmap for Image Uploads Project HOT 3
- Chore: Replace `AWS S3` with `Backblaze B2`
- Feat: Dynamic Image Resizing HOT 16
- chore: CORS issue when calling the API from `Flutter` web devices
- Discuss: Dedicated Domain for Image Uploading + Hosting? HOT 1
- chore: Build is failing HOT 4
- Chore: Re-do Landing Page - Remove All Non-essential HOT 1
- Feat: Add Button + `JS` To Copy Image URL HOT 2
- add passing an URL and query string params to resize an image? HOT 3
- Ex_AWS update 2.5.0. No more xml parsing needed HOT 1
- Testing Image-To-Text HOT 84
- First tests - Upload to R2 HOT 6
- First tests - upload to B2 from the server seems ok with ExAws.S3
- Chore: @dependabot Builds Fail 😢 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgup.