Coder Social home page Coder Social logo

Deployment issues on M1 Mac about pyvespa HOT 9 CLOSED

TTitcombe avatar TTitcombe commented on July 21, 2024
Deployment issues on M1 Mac

from pyvespa.

Comments (9)

kkraune avatar kkraune commented on July 21, 2024

removing the image sounds excessive - maybe the last container is not cleaned up - what does docker ps -a -q -f status=exited show?

from pyvespa.

TTitcombe avatar TTitcombe commented on July 21, 2024

Only containers unrelated to vespa when I run that command and lsof shows that 8080 isn't in use.

I agree that removing the image is a ridiculous workaround seeing as images != containers, but yet it seems to work 🤷

from pyvespa.

kkraune avatar kkraune commented on July 21, 2024

I am working on reproducing the problem now

from pyvespa.

kkraune avatar kkraune commented on July 21, 2024

Hi again, we have found that the signal handling in the start script does not seem to properly trap the TERM signal, so stopping the container isn't correct. We are working to find out more, and a fix, will update

from pyvespa.

kkraune avatar kkraune commented on July 21, 2024

vespa-engine/docker-image#44 will fix the Docker stop issue and be released later this week - so can test pyvespa again then - I will update

from pyvespa.

kkraune avatar kkraune commented on July 21, 2024

https://hub.docker.com/r/vespaengine/vespa/tags - 8.122.27 (latest as of today) has a fix for stopping the Docker container without the wait (link in above comment). Maybe that will help fix your issue, I don't have your problem, but I'm on intel...

Can I ask you to test again with the latest image? if still an issue, I will find someone with an M1 and try to reproduce

from pyvespa.

arnej27959 avatar arnej27959 commented on July 21, 2024

copy-pasting the "getting started" sample python scripts and running it twice with stop/rm between works fine for me.
this is on M1 mac, pyvespa-0.31.0 and vespa-8.122.27 versions.

% python3 dd.py 
Waiting for configuration server, 0/300 seconds...
Waiting for configuration server, 5/300 seconds...
Waiting for application status, 0/300 seconds...
Waiting for application status, 5/300 seconds...
Waiting for application status, 10/300 seconds...
Waiting for application status, 15/300 seconds...
Waiting for application status, 20/300 seconds...
Waiting for application status, 25/300 seconds...
Finished deployment.
% docker stop qa
qa
% docker rm qa  
qa
% python3 dd.py 
Waiting for configuration server, 0/300 seconds...
Waiting for configuration server, 5/300 seconds...
Waiting for application status, 0/300 seconds...
Waiting for application status, 5/300 seconds...
Waiting for application status, 10/300 seconds...
Waiting for application status, 15/300 seconds...
Waiting for application status, 20/300 seconds...
Finished deployment.

from pyvespa.

kkraune avatar kkraune commented on July 21, 2024

Thanks Arne!

from pyvespa.

TTitcombe avatar TTitcombe commented on July 21, 2024

I can also confirm this works. Thank you @kkraune + team (and sorry for not testing the fix sooner)

from pyvespa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.