-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache server not working #92
Comments
Update: For some reason the server is not being used when running the following in a
|
Hey! What is your local turborepo client saying? Is the remote cache enabled? Can you double-check if you followed all steps |
According to what the terminal indicates when I run "build," the remote cache is enabled. Additionally, I followed every instruction in the documentation. The issue I have is that every time I build from a |
The following are the contents of the
|
Another question: inside the docker container, during the build steps, do you see logged any "remote cache enabled" from the turborepo client? |
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build-turbo": {
"outputs": [".next/**"]
},
"lint": {
"outputs": []
},
"dev": {
"cache": false
},
"test": {
"dependsOn": ["^build"],
"cache": false
}
}
}
{
"teamId": "team_name",
"apiUrl": "https://sub-turbo.domain.com"
} From "build-turbo": "turbo run build --team=\"team_name\" --token=\"xxx\" --api=\"https://sub-turbo.domain.com\"" |
Interesting, I just ran
|
OK, so the issue is on the client's side. This is the first time I have seen it. Could a search on the turborepo repository help? |
When I looked into the warning, there was just one suggestion that claimed to fix the problem: install "turbo": "1.4.4-canary.0." However, this did not work. https://stackoverflow.com/a/73512113/19395252 Given that the user in the conversation is using a MacBook Pro M1, and I am using an ARM64-based Linux computer, it appears from the discussion that this solely affects 'ARM' architectures. https://pullanswer.com/questions/warning-failed-to-contact-turbod I'll keep looking for a solution to this. For development, it will probably be necessary for myself to use an earlier version of Turbo. |
Should we add this to the documentation on our side? |
Not yet, I am going to test on a AMD64 machine to check if I recieve working results with the latest turbo version, or if it does not work, and etc. |
I discovered that my I tried to run the following: "build-turbo": "turbo run build --team=\"team_time\" --token=\"xxx\" --api=\"https://cache.domain.com\"", Even though the I followed up by using "http" as follows:
When I run
End output:
I am not sure what the issue could be, I do know that the It appears to me that the remote cache is not functioning. Do you have a functioning model that I could copy and test from? Since I wish to utilize an ARM64 computer rather than an AMD64 one, I have not yet tested this on an AMD64 machine. This might perhaps only be an ARM64 architecture issue. |
Hi @NorkzYT. Any update about your issue? |
Unfortunately, none. |
just tried with version 1.12 and first package on my Dockerfile
second package
|
Interesting. Does it work for you without any failures? I ask since the second package says " |
the second package, in this case, had to be re-built |
Had the same issue, and did some Wiresharkin during the docker-build process. I noticed that there was TLS-handshake error when connecting to turbo-cache server. I was also using node-slim baseimage and after installing ca-certificates package to the container remote cache started to work: RUN apt-get update && apt-get install -y |
@rahnarsson good call. We had noticed that in some cases with node-alpine it was necessary to install g++, make and libc6-compat |
Hope anyone that reads this is having a great day!
I only have the following line in the
Docker Container
logs, and no other log appears when I use the remote cache.How do I know when I run the npm script
build
command, the action is importing the cache, and/or exporting it?Is the
STORAGE_PATH
environmental variable correctly used along withvolumes
?The following contains the contents of the
TurboRepo Remote Cache
docker-compose.yml
file.Originally posted by @NorkzYT in #84
The text was updated successfully, but these errors were encountered: