R
Railway

✋|help

How to using 3.0.0 dart version?

Ddungngminh9/5/2023
#10 [6/9] RUN  dart pub get

 

#10 0.566 Resolving dependencies...

#10 0.666 The current Dart SDK version is 2.18.0.

#10 0.666

 

#10 0.666 Because very_good_blog_app_backend requires SDK version >=3.0.0 <4.0.0, version solving failed.

#10 ERROR: process "/bin/bash -ol pipefail -c dart pub get" did not complete successfully: exit code: 1

 

-----

> [6/9] RUN  dart pub get:

0.566 Resolving dependencies...

0.666 The current Dart SDK version is 2.18.0.

0.666

0.666 Because very_good_blog_app_backend requires SDK version >=3.0.0 <4.0.0, version solving failed.

-----

 

Dockerfile:19

-------------------

17 |     # install phase

18 |     COPY pubspec.yaml /app/pubspec.yaml

19 | >>> RUN  dart pub get

20 |

21 |     # build phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c dart pub get" did not complete successfully: exit code: 1

 

Error: Docker build failed

I'm trying to deploy backend site using dart_frog, but current version is 2.18.0. How can I update sdk to 3.0.0 ?
Ddungngminh9/5/2023
ea4525e1-7b04-4853-b34c-e27b9f562316
BBrody9/5/2023
try adding this nixpacks.toml file to your project
[phases.setup]
  nixpkgsArchive = '78d1b099125d5db61cc0275fb366806156bf2e9e'

this should use dart 3.0.6
https://github.com/NixOS/nixpkgs/commit/78d1b099125d5db61cc0275fb366806156bf2e9e#diff-efd2d749dcdc66112977e9ab1f5ee01ffe31ddaba98eed2dfd05c91a29c21861R1
Ddungngminh9/5/2023
I got the error in build log
#8 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-78d1b099125d5db61cc0275fb366806156bf2e9e.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1

-----

> [4/9] RUN nix-env -if .nixpacks/nixpkgs-78d1b099125d5db61cc0275fb366806156bf2e9e.nix && nix-collect-garbage -d:

40.14          at /app/.nixpacks/nixpkgs-78d1b099125d5db61cc0275fb366806156bf2e9e.nix:3:12:

40.14

40.14             2|

40.14             3| let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/78d1b099125d5db61cc0275fb366806156bf2e9e.tar.gz";) { overlays = [  ]; };

 

40.14              |            ^

40.14             4| in with pkgs;

40.14

40.14        (stack trace truncated; use '--show-trace' to show the full trace)

40.14

40.14        error: cannot get archive member name: truncated gzip input

I saw that https://github.com/NixOS/nixpkgs/archive/78d1b099125d5db61cc0275fb366806156bf2e9e.tar.gz is not found
Any update in this
BBrody9/5/2023
well I tried
Ddungngminh9/5/2023
hmmm, please help me in this if you have any idea
BBrody9/5/2023
I have no more ideas, I have never touched dart
sorry
Ddungngminh9/5/2023
That's alright. I will find another solution
Thanks for your help
@Brody I deployed it :)))
BBrody9/5/2023
awesome!!

Looking for more? Join the community!

Recommended Posts
Using AND in logs Search and fetching these via an APII want to use AND to search the logs with both the keywords, currently the logs search assumes OR whAccessing current Nixpacks fileI need to install Poppler on my Railway environment. From what I can see one way to do this is via tI am having trouble connecting to Azure Data Studio (Postgres)I am trying everything can't seem to connect to ADS any advice? This is the error I'm recieving ``API accusing Application failed to respond in development environmentI'm trying to run my application in the development environment, but it gives an error. It only runsAPI accusing Application failed to respond in development environmentI'm trying to run my application in the development environment, but it gives an error. It only runsRestore old logs?Hi! Is there a way to restore old log feature while you figure out the kinks in the new one? The newSource IPsIm sure I'm missing it in the documentation But is there a list of source IPs from railway deploymeError running the application in the background.I cannot or the screen -S command is not executed in my program, and I do not know what the solutionMedical System To ProductionHello, I am developing a medical system and I want to put it into production using Railway so that eDeploy restarted near the endJust deployed a change (573e8198-6981-45c6-81ae-91d5210afc0c) and it got through the build, then staFiles uploadGood afternoon, I would like to create a small SaaS application and deploy it entirely to railway. Upgrade To Hobby Plan:Why am I unable to upgrade to a Hobby Plan? Your UI keeps getting stuck on this page each time I tryRedis not configured properly for DjangoHi, I'm trying to use Redis with Django and Channels. I keep getting this error message which seems Inspecting built Docker Image locallyHello I have an issue in my application when running in Railway. I would like to download the image Is there someway for me to choose a custom range in the observability?docker flask shows Application failed to respondRepo: https://github.com/chamuditha4/flask1 URL : https://flask-production-7492.up.railway.app/ prGetting 503 Server Error during load testsI'm load testing a simple fastapi backend running on railway. Using locust for load testing with 100Ideal way to compose and manage a full stack app?Railway doesn't really seem to be exposing an example of how one could/should compose a full stack aUsage estimatesSo im trying to make a simple project using a MySQL database and im trying to figure out how much itMy website is not running due to SSL supportThe browser is showing following message: alfajr.edu.pk uses an unsupported protocol. ERR_SSL_VERSI