rickbassham / ekos-web

ISC License
19 stars 6 forks source link

No images after capture #1

Open porkyhttp opened 3 years ago

porkyhttp commented 3 years ago

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 commented 3 years ago

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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411) npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

yorkie@2.0.0 install /client/node_modules/yorkie node bin/install.js

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

core-js@3.6.5 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 -)

ejs@2.7.4 postinstall /client/node_modules/ejs node ./postinstall.js

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

uglifyjs-webpack-plugin@0.4.6 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 watchpack-chokidar2@2.0.0: 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: watchpack-chokidar2@2.0.0 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 fsevents@2.1.3: 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 fsevents@1.2.13: 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 fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/vue-native-websocket/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: 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 ekos-web@0.0.1 No description npm WARN ekos-web@0.0.1 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

ekos-web@0.1.0 build /client vue-cli-service build

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 commented 3 years ago

Hmm. What version of KStars are you running?

porkyhttp commented 3 years ago

3.4.3

rickbassham commented 3 years ago

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 commented 3 years ago

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.