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

Docker container crashes on UI startup #1270

Closed
jb33k opened this issue Jul 5, 2021 · 20 comments
Closed

Docker container crashes on UI startup #1270

jb33k opened this issue Jul 5, 2021 · 20 comments

Comments

@jb33k
Copy link

jb33k commented Jul 5, 2021

I'm trying to testdrive the system using the docker instructions provided in the README but as soon as I reach the Setting up docs search engine message, container crashes with the following message:

[ERROR] Error reading current branch.
Error: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    at GitExecutorChain.onFatalException (/app/Client/node_modules/simple-git/src/lib/runners/git-executor-chain.js:61:87)
    at GitExecutorChain.<anonymous> (/app/Client/node_modules/simple-git/src/lib/runners/git-executor-chain.js:52:28)
    at Generator.throw (<anonymous>)
    at rejected (/app/Client/node_modules/simple-git/src/lib/runners/git-executor-chain.js:6:65)
[ERROR] Client -> client-> unhandledRejection -> reason = {}
[ERROR] Client -> client-> unhandledRejection -> p = {}

The UI does load pass the docs search engine message, but images are broken because docker container is down. If I restart it, some images work but most not. I'm getting these errors:

[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/en.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/en.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/bullet/bullet-warning.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/bullet/bullet-warning.png'

docker 18.09.7 on Ubuntu 18.04, but that shouldn't matter because this is docker after all.

@harrellbm
Copy link
Member

Have you brought up this issue on any of the telegram channels? I'm pretty sure the devs working on docker have been putting in patches to fix things like this.

@jb33k
Copy link
Author

jb33k commented Jul 8, 2021

@harrellbm No because I thought this was the right channel to report issues.

@harrellbm
Copy link
Member

Issues are a good place to put feature requests but the dev channels on telegram or discord are a much better place to collaborate and get issues like this taken care of faster. A lot more of the devs will see and pick up issues reported there.

@harrellbm
Copy link
Member

@jb33k I just got in contact with the devs working on the docker image. They are looking into this now. If you want to join the conversation it is happening on the Superalgos Discord server in the developers chat.

@ssplatt
Copy link
Collaborator

ssplatt commented Jul 11, 2021

if you are trying to using one of the latest develop branch builds then it's probably got something to do with the fact that there is no "git" environment in the docker container and some of the commits recently are about saving the git branch into the UI application.

@ssplatt
Copy link
Collaborator

ssplatt commented Jul 12, 2021

I think this merge is why the error is occurring. #1262. if you pull the container tagged 268d5eba7ca6c7d9814369668a9602de85ea0ca0 (the commit before that merge) I think you'll see you don't receive the error anymore. Of course, keep in mind that the docker container doesn't have git things in it so you won't be able to switch between branches or commit changes. The docker container is intended to be used for "production" deployments.

@ssplatt
Copy link
Collaborator

ssplatt commented Jul 14, 2021

I've started working on a fix that will check if git is installed before trying to do "git" things.

@ssplatt
Copy link
Collaborator

ssplatt commented Jul 15, 2021

a fix was merged. can you confirm you are not experiencing crashes anymore?

@mercadeoweb
Copy link

Not crash but log show an error: [ERROR] git not installed.

@ssplatt
Copy link
Collaborator

ssplatt commented Jul 16, 2021

Yes that's intentional.

@mercadeoweb
Copy link

[ERROR] git not installed.
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/en.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/en.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/bullet/bullet-warning.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/bullet/bullet-warning.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/bullet/bullet-warning.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/bullet/bullet-warning.png'

@harrellbm
Copy link
Member

You will need to install git for things to work correctly. There are instructions in the readme to help you out.

@mercadeoweb
Copy link

Is not possible, because running shell command from Docker container, show..

$ apt-get install git-all
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

sudo is not installed, maybe do you need add command to Dockerfile on Image?

@ssplatt
Copy link
Collaborator

ssplatt commented Jul 16, 2021

It is intentional that git isn't installed and that it isn't able to be installed. The docker images are intended to be immutable so the code and other packages are not supposed to change once the image is built. They are meant for production-like deployment where consistency, predictability, and reproducibility are key.

What steps are you taking to get the image errors? I cannot reproduce that right now. Are you using a brand new workspace?

@mercadeoweb
Copy link

mercadeoweb commented Jul 16, 2021

Images errors with Tutorial (flags and icons)

[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/data/dataset-definition.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/data/dataset-definition.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/charting-space.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/charting-space.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/mouse/mouse-right-click.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/mouse/mouse-right-click.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/time/time-machine.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/time/time-machine.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/hand-drag.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/hand-drag.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/mouse/mouse-wheel-up.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/mouse/mouse-wheel-up.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/mouse/mouse-pointer.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/mouse/mouse-pointer.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/mouse/mouse-left-click.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/mouse/mouse-left-click.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/time/time-scale.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/time/time-scale.png'
[ERROR] httpInterface -> respondWithImage -> onFileRead -> File Not Found: ./Projects/Foundations/Icons/rate-scale.png or Error = Error: ENOENT: no such file or directory, open './Projects/Foundations/Icons/rate-scale.png'

@tty666
Copy link

tty666 commented Aug 3, 2021

Hey guys I have the same behavior, please just consider that the docker image is not working currently, could someone have a look and fix it ?
We have the message "The UI is loading..." on the browser port 34248, we have the message "Upgrade Required" on the browser port 18041.
And that's it ... not working.
could you update with a new docker image and share with us the url ( I tested latest and develop both has the same issue ... )

@ssplatt
Copy link
Collaborator

ssplatt commented Aug 3, 2021

I can't reproduce either of these issues. Can you provide some more information please?

Operating system:
Output of docker image ls:
command executed to start the container:
output of docker ps -a after starting the container:
output of docker logs after starting the container:

@ssplatt
Copy link
Collaborator

ssplatt commented Aug 4, 2021

I think this issue can be closed now since these secondary issues are not actual "Docker container crashes". If the other issues persist please open new issues or ask for assistance in Telegram or Discord.

@Luis-Fernando-Molina
Copy link
Member

good job @ssplatt !!!

@tty666
Copy link

tty666 commented Aug 5, 2021

I found the problem anyway it was the ad blocker uBlock Origin blocking scripts and freezing the page on this message.
Thanks for the support

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

Successfully merging a pull request may close this issue.

6 participants