"Building flutter tool..." takes forever - flutter

Due to some Android Studio problem, I invalidated flutter cache.
When I try flutter upgrade, I'm stuck with the "Building flutter tool ..." phase
$ flutter upgrade
Downloading Dart SDK from Flutter engine beb8a7ec48f6b980a778d19eeda613635c3897c9...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16 100 16 0 0 25 0 --:--:-- --:--:-- --:--:-- 25
Warning: Transient problem: HTTP error Will retry in 1 seconds. 3 retries
Warning: left.
Throwing away 16 bytes
100 219M 100 219M 0 0 6082k 0 0:00:37 0:00:37 --:--:-- 6324k
Building flutter tool...
There is no verbose log either, after I tried -v.
Now flutter doctor is stuck at the same place.
What should I do?

Solved. Seems a network issue. I'm located in China. Had to use StealthVPN with https://pub.flutter-io.cn as the host URL to finish the building. None of the other local mirrors work, which require no StealthVPN.
It's super weird that I can download the Dart SDK from ALL the mirrors but only one of them can complete the "building".
There really should be a clear warning and detailed progress report. It's hard to imagine "building ..." involving internet access.

Related

I faced this message Failed to launch Pixel 5 API 30: Error: Emulator didn't connect within 60 seconds when I reopen the Emulator

When I run the Flutter Code On AVD, after 10 min the AVD stop, I think because Storage. I faced this message Failed to launch Pixel 5 API 30: Error: Emulator didn't connect within 60 seconds when I reopen the Emulator.

hi when i want add package to project recived to error down

===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 431:12 Entrypoint._get
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 265:7 Entrypoint.acquireDependencies
This is an unexpected error. Please run
dart pub --trace get --no-precompile
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
HTTP error 403: Forbidden
package:pub/src/http.dart 229:5 _ThrowingClient.send
its happening because your network connection is not proper or the server is not allowed to your country, or something wrong with your flutter
here is some ways to fix that problem i know
1-
use a vpn or proxy (its showing cant connect to the server so try to change the IP)
2-
check this link if vpn method is not working - https://dart.dev/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall
3 -
try to upgrade your flutter just by one command
flutter upgrade
4 -
if its not working try to clean by this command
flutter clean
5 -
if anything wont working try to reinstall flutter (not recommended )

Citus installation failing on GCP

After installing postgresql(13) on GCP, I tried installing citus using this command:
curl https://install.citusdata.com/community/rpm.sh | sudo bash
However I run into the following error. Any guidance/suggestions would be helpful.
[tony_stark#host]$ curl https://install.citusdata.com/community/rpm.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8667 100 8667 0 0 21791 0 --:--:-- --:--:-- --:--:-- 21831
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Checking for postgresql13-server...
Detected postgresql13-server...
Checking for EPEL repositories...
Detected EPEL repoitories
Downloading repository file: https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script...
curl: (7) Failed to connect to
Network is unreachable
Unable to run:
curl https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script
The link curl https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script works on my browser though.
Looks like a temporary issue on repository side. I just tried it and it works:
[sergiusz#host ~]$ curl https://install.citusdata.com/community/rpm.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8667 100 8667 0 0 25686 0 --:--:-- --:--:-- --:--:-- 25718
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Checking for postgresql13-server...
Installing pgdg13 repo... done.
Checking for EPEL repositories...
Detected EPEL repoitories
Downloading repository file: https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script.
.. done.
Installing pygpgme to verify GPG signatures... done.
Installing yum-utils... done.
Generating yum cache for citusdata_community... done.
The repository is set up! You can now install packages.
EDIT:
This file can be also downloaded manually:
curl "https://repos.citusdata.com/community/config_file.repo?os=centos&dist=7&source=script" -o /etc/yum.repos.d/citusdata_community.repo

gcloud error 500 on strapi deployment (EROFS: read-only file system, mkdir '/srv/.tmp' A )

I followed strap's guide to an google app engine deployment however when I pushed it to gcloud I get an error 500. It's on postgresql, Standard Environment. I don't know what other informations to include. Here's the error from gcloud.
2020-07-11T21:37:04.742759Z at DatabaseManager.initialize (/srv/node_modules/strapi-database/lib/database-manager.js:36:27) A
2020-07-11T21:37:04.742769Z at Strapi.load (/srv/node_modules/strapi/lib/Strapi.js:274:19) A
2020-07-11T21:55:09.103534Z GET 500 0 B 11.3 s Chrome 83 / I GET 500 0 B 11.3 s Chrome 83 5f0a353d00ff01946e3ca1b9ce0001737e736b756c70740001323032303037313174313635323139000100
2020-07-11T21:55:19.559829Z [2020-07-11T21:55:19.558Z] debug ⛔️ Server wasn't able to start properly. A
2020-07-11T21:55:19.562896Z [2020-07-11T21:55:19.562Z] error Error: EROFS: read-only file system, mkdir '/srv/.tmp' A
2020-07-11T21:55:19.562935Z at Object.mkdirSync (fs.js:757:3) A
2020-07-11T21:55:19.562956Z at _.forEach (/srv/node_modules/strapi-connector-bookshelf/lib/knex.js:152:16) A
2020-07-11T21:55:19.562972Z at /srv/node_modules/lodash/lodash.js:4925:15 A
2020-07-11T21:55:19.562987Z at baseForOwn (/srv/node_modules/lodash/lodash.js:2990:24) A
2020-07-11T21:55:19.563012Z at /srv/node_modules/lodash/lodash.js:4894:18 A
2020-07-11T21:55:19.563025Z at Function.forEach (/srv/node_modules/lodash/lodash.js:9368:14) A
2020-07-11T21:55:19.563034Z at module.exports.strapi (/srv/node_modules/strapi-connector-bookshelf/lib/knex.js:37:5) A
2020-07-11T21:55:19.563043Z at Object.initialize (/srv/node_modules/strapi-connector-bookshelf/lib/index.js:39:5) A
2020-07-11T21:55:19.563058Z at Object.initialize (/srv/node_modules/strapi-database/lib/connector-registry.js:30:25) A
2020-07-11T21:55:19.563071Z at DatabaseManager.initialize (/srv/node_modules/strapi-database/lib/database-manager.js:36:27) A
2020-07-11T21:55:19.563080Z at Strapi.load (/srv/node_modules/strapi/lib/Strapi.js:274:19) A
2020-07-11T21:55:20.688345Z GET 500 0 B 4.5 s Chrome 83 /favicon.ico I GET 500 0 B 4.5 s Chrome 83 5f0a354800ff0a80d9edd664c60001737e736b756c70740001323032303037313174313635323139000100
I tried launching it multiple times but same error. All of the postgresql information are correct as well. What is causing this?
Edit:
this is the instructions that I followed. https://strapi.io/documentation/v3.x/deployment/google-app-engine.html
I got up to deploy the project with gcloud app deploy

Knife-solo prepare fails

I'm trying to configure a fresh CentOS 6.5 x64 node via knife-solo. But when I run knife solo prepare root#centos I get a strange error.
Bootstrapping Chef...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15934 100 15934 0 0 36862 0 --:--:-- --:--:-- --:--:-- 95413
Downloading Chef 11.14.0.alpha.2 for el...
downloading https://www.opscode.com/chef/metadata?v=11.14.0.alpha.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64
to file /tmp/install.sh.1750/metadata.txt
trying curl...
ERROR 404
Unable to retrieve a valid package!
Please file a bug report at http://tickets.opscode.com
Project: Chef
Component: Packages
Label: Omnibus
Version: 11.14.0.alpha.2
Please detail your operating system type, version and any other relevant details
Metadata URL: https://www.opscode.com/chef/metadata?v=11.14.0.alpha.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64
When I try to debug that thing and run knife solo prepare -VV root#centos I get this: https://gist.github.com/Almaron/5709a69e09bad92f3475
I've tried to google it and found that it might be a proxy issue, but I have not set up any proxies what so ever.
UPDATE
Tried running knife solo prepare root#centos--bootstrap-version 11.12.0
Here's the result: https://gist.github.com/Almaron/2f7987f314132c80b8ed
Had the same problem. It seems there is a problem on the opscode site with version 11.14.0.alpha.2 - the http code returned is 404 Not Found.
A solution is to pin the chef version when preparing knife solo:
knife solo prepare root#centos --bootstrap-version 11.12.0