Wait it's a public repo?
Yes that's the strange thing. It's getting blocked by something that's public
That public repository is one of the dependencies of my private repository. So it's able to fetch my private repository successfully, but not the public repo which is weird
I've tried the deployment a few times in Appwrite Cloud and it fails every time. This deployment works perfectly fine in the self-hosted container locally though, so I'm trying to figure out what's different
Ya sounds odd...
what about memory. did you teal the memory env var? what are the memory and swap ones set to?
Sorry I don't understand what you mean by that. I haven't changed anything from the defaults. I can provide the .env file if you would like
For some additional context, the raw function size is 21KB, but when built, it is 2.6MB. Here are screenshots from my working local environment (the first failed build didn't compile purposefully, showing what the raw function size is) and from the cloud environment.
ya, when it's done, it includes all the dependencies
that's fine
what's your pubspec.yaml?
It's quite complex. I'm using melos
as a monorepo which hosts many smaller packages I've worked on. Here is the pubspec.yaml
for the final project that gets exported to Appwrite Cloud:
name: example_core
description: A sample command-line application.
version: 0.0.7+8
publish_to: none
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
collection: ^1.16.0
intl: ^0.18.0
meta: ^1.8.0
jlogical_utils_core:
git:
url: "git@github.com:jaboyc/jlogical_utils.git"
ref: "master"
path: packages/jlogical_utils/jlogical_utils_core
jlogical_utils_cli:
git:
url: "git@github.com:jaboyc/jlogical_utils.git"
ref: "master"
path: packages/jlogical_utils/jlogical_utils_cli
dev_dependencies:
lints: ^2.0.0
test: 1.24.6
jlogical_utils
and jlogical_utils_cli
contain many other dependencies, either some other dependencies in the melos project or third-party dependencies.
If you could let me know what exactly you are looking for in the pubspec.yaml
, I can provide more answers
What about the Linkadi one?
Here is the pubspec.yaml for the project using that:
name: pond_cli
description: The cli Pond Framework.
publish_to: "none"
environment:
sdk: ">=3.0.0 <4.0.0"
version: 0.0.1
dependencies:
collection: ^1.16.0
colorize_lumberdash: ^3.0.0
dcli:
git:
url: git@github.com:Linkadi98/dcli.git
ref: 922bb02830458f065750909dbf40fa785e59c5d5
path: dcli
diffutil_dart: ^4.0.0
equatable: ^2.0.5
interact:
git:
url: git@github.com:Linkadi98/interact.git
ref: e180aa04146a78fadb11ecc93347321b5b2382cc
lumberdash: ^3.0.0
path: ^1.8.0
process_run: ^0.12.5+2
xcodeproj:
git:
url: git@github.com:jaboyc/xcodeproj.git
ref: "master"
persistence_core:
git:
url: git@github.com:jaboyc/jlogical_utils.git
ref: "master"
path: packages/persistence/persistence_core
pond_core:
git:
url: git@github.com:jaboyc/jlogical_utils.git
ref: "master"
path: packages/pond/pond_core
utils_core:
git:
url: git@github.com:jaboyc/jlogical_utils.git
ref: "master"
path: packages/utils/utils_core
dev_dependencies:
lints: ^2.0.0
test: 1.24.6
Hey @Steven I made some progress on this issue. I debugged and found that running ``` echo "Linkadi - Start" git clone --mirror -v --depth 1 git@github.com:Linkadi98/dcli.git /root/.pub-cache/git/cache/dcli-2faae80e94e3ea153ecda89e616c57901ca17885 echo "Linkadi - End"
in the "Build Settings - Commands" section fixed the `fatal: fetch-pack: invalid index-pack output` issue. I suppose it's due to the size of the repo being so large that it needed a shallow clone before it could run `dart pub get`
I wonder if you know why this would happen? Why would the dart runtime in Appwrite Cloud fail when the one in the self-hosted docker container did not fail? I'm assuming there isn't a repository I can look at to see the default `.env` values for cloud projects to investigate myself?
I'm also running into another issue now on Cloud vs. Self-hosted. After I resolved the issue I mentioned above, Appwrite Cloud is now able to run dart pub get
successfully, but it cannot compile the program for some strange reason. It doesn't provide any debug information to help me understand why. Check out the logs from my self-hosted deployment vs. the cloud deployment. I'm deploying the exact same code with the exact same "Build Settings - Commands" and the exact same Dart runtime. Is there anything you can suggest to help me debug this issue?
for the dcli one, i wonder if you can use a regular git url rather than a private url and if that would make a difference. 🤷🏼♂️
Error: AOT compilation failed
Generating AOT kernel dill failed!
This usually happens because of memory problems
The DCLI git url just points to: https://github.com/Linkadi98/dcli which is a public url. It's not a private repo or anything. I did try git clone -v git@github.com:onepub-dev/dcli.git
as well (this is the source git repo, not the Linkadi which is a fork of this), but it also failed. I believe it failed due to memory problems since the problem was resolved with the shallow clone
Is there any way to fix this? Am I locked out of using Appwrite Cloud with a sufficiently large Dart project?
ya i think the memory is low on cloud...we would have to increase it. let me see what we can do
That would be awesome. I feel like that would really help with transitioning from testing locally to deploying on cloud (or at least providing what the memory values are on cloud so I can test what these issues are without just guessing).
Hey @Steven just wanted to see if there are any updates on this. This is still blocking me from being able to use Appwrite Cloud for my Flutter/Dart app
thanks for following up. We plan on increasing the memory on cloud soon
Recommended threads
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...