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

No images after capture #1

Open
porkyhttp opened this issue Aug 14, 2020 · 5 comments
Open

No images after capture #1

porkyhttp opened this issue Aug 14, 2020 · 5 comments

Comments

@porkyhttp
Copy link

I tried to install it on my Raspberry with raspbian buster. I had some throubles with nodejs and npm packages, but i compiled your sofware. So, I startek Ekos with simulators and Ekoslive, but in uoy webpage localhost:3000 is see only string regards mount coordinates etc etc, but I do not see captured images.

I used Chrome 84.0.4147.125 from my desktop pc connected to the Raspberry ip on port 3000. So, as I said, I had problem when build the software because NPM package provided by raspbian is not compatible. I installed nodejs with this procedure
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

and then I was able to run NPM commands with some warnings

@porkyhttp
Copy link
Author

Compled from Docker, but the same issue

`sudo docker build -t ekos-web .
Sending build context to Docker daemon 3.725MB
Step 1/17 : FROM node:latest
latest: Pulling from library/node
323178d00ec2: Pull complete
a7b4e15a7945: Pull complete
caf9cb1ef704: Pull complete
a3ae4cf51f1a: Pull complete
883525c9d83b: Pull complete
b1907e1a1a78: Pull complete
bfb0a162ce79: Pull complete
24a019d06d82: Pull complete
05bb2e495e58: Pull complete
Digest: sha256:8b6401f8d15c900736a54a870994277b3de19ebd28cc483c497bf00d608e2a90
Status: Downloaded newer image for node:latest
---> 9317377e4a3c
Step 2/17 : RUN mkdir /client
---> Running in 4bbb019dcf2a
Removing intermediate container 4bbb019dcf2a
---> 6a813407b048
Step 3/17 : WORKDIR /client
---> Running in 81b787d98619
Removing intermediate container 81b787d98619
---> 6317c124027a
Step 4/17 : COPY client/package.json /client
---> ff1e51527705
Step 5/17 : RUN npm install
---> Running in 0b15b8fc08e3
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated

[email protected] install /client/node_modules/yorkie
node bin/install.js

setting up Git hooks
can't find .git directory, skipping Git hooks installation

[email protected] postinstall /client/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

[email protected] postinstall /client/node_modules/ejs
node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

[email protected] postinstall /client/node_modules/vue-native-websocket/node_modules/uglifyjs-webpack-plugin
node lib/post_install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"14.8.0","npm":"6.14.7"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/vue-native-websocket/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

added 2146 packages from 2110 contributors and audited 1354 packages in 302.584s

52 packages are looking for funding
run npm fund for details

found 1 high severity vulnerability
run npm audit fix to fix them, or npm audit for details
Removing intermediate container 0b15b8fc08e3
---> 83890a1f3682
Step 6/17 : RUN mkdir /server
---> Running in 9878f0ae771d
Removing intermediate container 9878f0ae771d
---> bb3a95bffd27
Step 7/17 : WORKDIR /server
---> Running in a2ccbaafcfd8
Removing intermediate container a2ccbaafcfd8
---> 76d13fab56d0
Step 8/17 : COPY server/package.json /server
---> 9e4d8dde41db
Step 9/17 : RUN npm install
---> Running in cbf9d5b79935
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

added 8 packages from 12 contributors and audited 8 packages in 3.581s
found 4 vulnerabilities (3 low, 1 high)
run npm audit fix to fix them, or npm audit for details
Removing intermediate container cbf9d5b79935
---> cf36e5d1f4f6
Step 10/17 : WORKDIR /client
---> Running in b0961f469453
Removing intermediate container b0961f469453
---> f6d5b7d48110
Step 11/17 : COPY client/ /client
---> e1c8b5132cf0
Step 12/17 : RUN npm run build
---> Running in 4e2340cf9cf0

[email protected] build /client
vue-cli-service build

  • Building for production...
    WARNING Compiled with 3 warnings7:31:09 PM

warning

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
css/chunk-vendors.d983f1ef.css (515 KiB)
js/chunk-vendors.ec5da916.js (917 KiB)

warning

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (1.41 MiB)
css/chunk-vendors.d983f1ef.css
js/chunk-vendors.ec5da916.js
js/app.fad86824.js

warning

webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

File Size Gzipped

dist/js/chunk-vendors.ec5da916.js 917.33 KiB 208.07 KiB
dist/js/app.fad86824.js 8.01 KiB 2.76 KiB
dist/css/chunk-vendors.d983f1ef.css 514.61 KiB 62.40 KiB

Images and other types of assets omitted.

DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

Removing intermediate container 4e2340cf9cf0
---> 368531f41bb4
Step 13/17 : RUN cp -r /client/dist/ /server/static
---> Running in 1978ac5bd4b8
Removing intermediate container 1978ac5bd4b8
---> 6b427889803f
Step 14/17 : RUN rm -Rf /client
---> Running in b9937eb562de
Removing intermediate container b9937eb562de
---> 550ec9b199bf
Step 15/17 : WORKDIR /server
---> Running in 5715ca562b7a
Removing intermediate container 5715ca562b7a
---> 82d9d834241c
Step 16/17 : COPY server/ /server
---> 806da74cc159
Step 17/17 : CMD [ "index.js" ]
---> Running in 49f8286fe13a
Removing intermediate container 49f8286fe13a
---> fe8b5d1ce92f
Successfully built fe8b5d1ce92f
Successfully tagged ekos-web:latest
Immagine
`

@rickbassham
Copy link
Owner

Hmm. What version of KStars are you running?

@porkyhttp
Copy link
Author

3.4.3

@rickbassham
Copy link
Owner

I haven't been able to reproduce this locally, using the same versions. Can you try refreshing the page after a failed capture, then doing another capture? Even just the camera preview on the capture tab in Ekos should send a new image.

@rickbassham
Copy link
Owner

I was finally able to reproduce it, and pretty sure I fixed it. Can you give it a try? Also added several new things to the app.

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

2 participants