Coder Social home page Coder Social logo

Comments (21)

diemol avatar diemol commented on June 9, 2024 1

@alokkr016, what you are commenting is not related to this issue; please create an issue as I mentioned above. This will help the Appium maintainers focus on what they need to check.

from appium.

alokkr016 avatar alokkr016 commented on June 9, 2024 1

SeleniumHQ/selenium#13913

from appium.

tking16 avatar tking16 commented on June 9, 2024

Have just uploaded a newer version of the appium log, I had to reload the console to grab more logs

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

I don't observe any suspicious traces in the server log. Have you tried to ask at the Selenium hub issues tracker?

from appium.

tking16 avatar tking16 commented on June 9, 2024

@mykola-mokhnach I did, unfortunately didn't get much help with a resolution, can see here

from appium.

tking16 avatar tking16 commented on June 9, 2024

I may be wrong, but seems as soon as it encounters a failure, instead of quitting the app and starting a new test it will just end the entire server instance. I tried to debug with telnet and the server seems to have shut off there too

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

As @diemol mentioned in the issue report above the exception means the server just stops responding to network requests.
I cannot see any hints in the server log above. Try to collect the Appium's node.js process output on that server - maybe it contains some more details or a stack trace.

from appium.

tking16 avatar tking16 commented on June 9, 2024

Try to collect the Appium's node.js process output on that server - maybe it contains some more details or a stack trace.

Will do, could you please advise on how I can do this?

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

Unfortunately I cannot help there. It highly depends on how the server is configured. Maybe hire a consultant to help you with that

from appium.

tking16 avatar tking16 commented on June 9, 2024

I've added --long-stacktrace=true to the server command, will share here once it fails and see if we can find anything else

from appium.

tking16 avatar tking16 commented on June 9, 2024

error_log.log
That managed to give a bit more info, I'm still confused as to why. Next steps I'll try are trying the nightly version of selenium server, as I'm on an old version due to this bug

EDIT: Just saw this in the trace 🤔

2024-05-03 09:10:08:365 [Xcode] 2024-05-03 10:10:08.338669+0100 WebDriverAgentRunner-Runner[57142:3015952] Error Domain=com.facebook.WebDriverAgent Code=1 "Cannot take a screenshot within 20000 ms timeout" UserInfo={NSLocalizedDescription=Cannot take a screenshot within 20000 ms timeout}

Maybe I didn't configure the mjpeg capabilities properly?

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

2024-05-03 09:10:08:373 uncaughtException: write EPIPE
Error: write EPIPE

This error means that the server logging lib (winston) was not able to write its logs into one of the requested destinations. Make sure all log destinations are writeable while the server is running.

from appium.

tking16 avatar tking16 commented on June 9, 2024

Make sure all log destinations are writeable while the server is running.

Don't know how to do that, but wouldn't Winston be failing because the server is shutting down? So there would technically be no way to know what went wrong

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

Don't know how to do that, but wouldn't Winston be failing because the server is shutting down

I am not sure what exactly you mean by that. Winston allows to forward logs to one or more pipes. These could be files, consoles or TCP streams. If any of these streams is unsuspectedly closed during the lifecycle of the node server then the EPIPE exception is triggered

from appium.

alokkr016 avatar alokkr016 commented on June 9, 2024

I am also facing the same issue, only when I am running the grid and the server programatically using shell script.
image

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

@alokkr016 Your issue is related to SeleniumHQ/selenium#13481

from appium.

alokkr016 avatar alokkr016 commented on June 9, 2024

I am facing the same exception when I am using the selenium-server-4.13.0.jar
Unable to execute request: java.net.ConnectException: Connection refused: /127.0.0.1:4723
but when I am using the selenium-server-4.21.0-SNAPSHOT.jar then I am getting the:
java.io.UncheckedIOException: java.io.IOException: HTTP/1.1 header parser received no bytes

from appium.

diemol avatar diemol commented on June 9, 2024

@alokkr016 please create an issue in the Selenium repo with the details when you use the snapshot jar.

from appium.

alokkr016 avatar alokkr016 commented on June 9, 2024

Could you please tell me why I encounter these exceptions when I run the grid and Appium server programmatically, but not when I run them manually?

from appium.

tking16 avatar tking16 commented on June 9, 2024

@alokkr016 Please let me know when you create that issue so I can track also, as I see similar problems - it works for me locally but when running through Github Actions I get all the errors

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 9, 2024

Closed as not an issue

from appium.

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.