Skip to content
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

Error on start with latest docker image #252

Open
mike2307 opened this issue Sep 30, 2020 · 10 comments
Open

Error on start with latest docker image #252

mike2307 opened this issue Sep 30, 2020 · 10 comments

Comments

@mike2307
Copy link

After updating to the latest image from docker hub I'm getting this:

[2020-09-30 20:49:56 +0000] [6] [INFO] Starting gunicorn 19.6.0
[2020-09-30 20:49:56 +0000] [6] [INFO] Listening at: http://0.0.0.0:5000 (6)
[2020-09-30 20:49:56 +0000] [6] [INFO] Using worker: sync
[2020-09-30 20:49:56 +0000] [14] [INFO] Booting worker with pid: 14
/usr/local/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Downloading syncstorage-rs
Starting syncstorage-rs
run-syncstorage-rs.sh: line 3: git: not found
run-syncstorage-rs.sh: cd: line 8: can't cd to syncstorage-rs: No such file or directory
run-syncstorage-rs.sh: line 10: cargo: not found

It seems like there's something missing.
Help would be appreciated.
Thanks in advance.

@mike2307
Copy link
Author

I suspect that #248 might have caused this

@mike2307
Copy link
Author

mike2307 commented Oct 1, 2020

@rfk Is there any reason why this was closed? This is definitely not solved from my point of view...

@rfk
Copy link
Contributor

rfk commented Oct 1, 2020

Huh, weird - I mentioned this issue in #248 and it looks like github took that as a cue to automatically close the issue for some reason. Definitely wasn't intentional, reopening.

@rfk rfk reopened this Oct 1, 2020
@huguesgr
Copy link

huguesgr commented Oct 1, 2020

I was having a look at this, it seems that adding git missing from the Docker image is far from the only issue.
syncstorage-rs is then trying to run inside this image, and requires cargo command which is part of Rust.

The Docker image would then need to have Rust installed and run a heavy cargo build and/or cargo run... I have been tinkering with the Docker image, but currently I am failing with the following error during a cargo run:

error: failed to run custom build command for `grpcio-sys v0.6.0`

@fzzzy
Copy link
Contributor

fzzzy commented Oct 1, 2020

Sorry about that. There may be some dust as we do major renovations in this repository. Thank you very much for the report. I'll get this fixed soon.

@mmnaseri
Copy link

mmnaseri commented Oct 3, 2020

I have found that by installing cargo inside the Docker image (apk add cargo) the build makes some progress, but immediately bails when no Cargo.toml file can be found.

@mike2307
Copy link
Author

mike2307 commented Oct 5, 2020

Sorry about that. There may be some dust as we do major renovations in this repository. Thank you very much for the report. I'll get this fixed soon.

Well, in that case this PR (#248) should rather not have gotten merged to master but on an experimental branch instead.

Everyone who uses the latest docker image from docker hub will run in this issue. I changed my configuration to use the latest tagged image (https://hub.docker.com/layers/mozilla/syncserver/1.9.1/images/sha256-3192eb40fe421d29202780b759af9a0a2f08377de4fa30d1bde35fc3213d03d1?context=explore) as a workaround.

@eric-pierce
Copy link

Thanks @mike2307 - confirming switching to the 1.9.1 image resolves this. I'd love to use the new rust image but only when it's ready. Was this a mistake and is the rust image still not ready for prime time?

@fzzzy
Copy link
Contributor

fzzzy commented Oct 12, 2020

We just didn't realize so many people were still using this. We'll revert the rust version make it available with an optional flag until it's more ready.

@der-domi
Copy link

der-domi commented Oct 12, 2020

We just didn't realize so many people were still using this.

Which alternative do we have? Is https://github.com/mozilla-services/syncstorage-rs already ready for production usage? I cannot read something regarding this.

Mic92 pushed a commit to Mic92/syncserver that referenced this issue Feb 23, 2022
…ndex-name

chore: remove last last_modified -> modified remnant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants