Comments (10)
Hi @sstchur - can you verify that Docker is running?
Please enter docker ps
in your terminal:
- it should give you a table containing
CONTAINER ID
and some other things. - if Docker isn't running, it'll say something like
"Cannot connect to the Docker daemon"
.
If Docker isn't running, starting it depends on how you've installed it:
- if you've installed the Docker desktop client, you'll have to launch that.
- otherwise,
sudo systemctl start docker
might do the trick.
If you let me know how you get on with that I can advise further.
from hash.
So after starting up and a variety of messages like
[dev:frontend] This problem is likely caused by another plugin injecting
[dev:frontend] "SpinnerIcon" without registering it in the scope tracker. If you are the author
[dev:frontend] of that plugin, please use "scope.registerDeclaration(declarationPath)".
[dev:frontend] The exported identifier "HashIcon" is not declared in Babel's scope tracker
[dev:frontend] as a JavaScript value binding, and "@babel/plugin-transform-typescript"
[dev:frontend] never encountered it as a TypeScript type declaration.
[dev:frontend] It will be treated as a JavaScript value.
I now see:
[dev:backend:*realtime] info: Updated ownership of slot "realtime" {"service":"realtime","instanceId":"d8d911e6-3bda-4430-b440-3ec70a57beda","timestamp":"2022-02-17T15:56:00.712Z"}
[dev:backend:*realtime] info: Updated ownership of slot "realtime" {"service":"realtime","instanceId":"d8d911e6-3bda-4430-b440-3ec70a57beda","timestamp":"2022-02-17T15:56:05.707Z"}
[dev:backend:*realtime] info: Updated ownership of slot "realtime" {"service":"realtime","instanceId":"d8d911e6-3bda-4430-b440-3ec70a57beda","timestamp":"2022-02-17T15:56:10.720Z"}```
It doesn't seem to indicate what port the local dev server is running on, but I guessed 3000, and when I browse, there I see this (which I think is progress?):
from hash.
Hey, thanks for letting me know. I will try to find some time to try this out. Been out of commission sick this past week. But will try to find some time in the next few days.
I actually did get HASH to run quite a while back, but never updated this thread. Last time I managed to get to run though, it was so painfully slow as to mostly be useless. Not sure if I did something wrong. Happy to try it again now that there have been updates.
from hash.
Thanks for the help! Docker was not in fact running. sudo systemctl start docker
did not work (I got the error "System has not been booted with systemd as init system." After doing a bit of research, I learned this is because I'm using the WSL. Apparently I can use the equivalent Sysvinit commands to do the same thing. So I tried sudo service docker start
and got "* Starting Docker: docker"
I then ran sudo docker ps
and got:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
I then tried yarn external-services up --detach
again, but I got several permission denied errors. So then I tried sudo yarn external-services up --detach
and what do you know! It appears to be pulling the container code and starting up. It hasn't finished yet, so the jury's still out, but this looks promising.
from hash.
Yep, thatβs definitely progress
[dev:frontend] This problem is likely caused by another plugin injecting
[dev:frontend] "SpinnerIcon" without registering it in the scope tracker. If you are the author
[dev:frontend] of that plugin, please use "scope.registerDeclaration(declarationPath)".
β These warnings will be gone when we merge #320 β I hope it will be quite soon! Also we just merged #322, which should give you less noise in the output. Try to git pull; yarn install
before running yarn dev
again.
Once you run yarn seed-data
, you should be able to login as alice
or bob
. We use email confirmations instead of passwords and these emails are mocked during local dev. See console output once youβve entered one of the two demo logins
from hash.
Both #320 and #322 are merged now
from hash.
from hash.
from hash.
Alright, so I finally had some time to pull latest and try again. I can get the docker service running and successfully run yarn external services up --detach
. I then ran yarn dev
, but I see some errors, and it seems like the frontend service isn't running (it doesn't connect when I try localhost:3000). The output below shows a couple of Errors, like "failed to load next.config.js". Any idea what I might be doing wrong?
[dev:frontend] ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[dev:backend:*search-loader] [INFO] 16:04:48 ts-node-dev ver. 2.0.0-0 (using ts-node ver. 10.4.0, typescript ver. 4.5.5)
[dev:backend:*realtime] [INFO] 16:04:48 ts-node-dev ver. 2.0.0-0 (using ts-node ver. 10.4.0, typescript ver. 4.5.5)
[dev:backend:*api] [INFO] 16:04:48 ts-node-dev ver. 2.0.0-0 (using ts-node ver. 10.4.0, typescript ver. 4.5.5)
[dev:frontend] info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
[dev:frontend] Error: failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
[dev:frontend] TypeError: Cannot read properties of undefined (reading 'version')
[dev:frontend] at Object. (/home/sstchur/dev/hash/node_modules/html-webpack-plugin/lib/file-watcher-api.js:7:67)
[dev:frontend] at Module._compile (node:internal/modules/cjs/loader:1101:14)
[dev:frontend] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
[dev:frontend] at Module.load (node:internal/modules/cjs/loader:981:32)
[dev:frontend] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[dev:frontend] at Module.require (node:internal/modules/cjs/loader:1005:19)
[dev:frontend] at require (node:internal/modules/cjs/helpers:102:18)
[dev:frontend] at Object. (/home/sstchur/dev/hash/node_modules/html-webpack-plugin/lib/cached-child-compiler.js:41:24)
[dev:frontend] at Module._compile (node:internal/modules/cjs/loader:1101:14)
[dev:frontend] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
[dev:frontend] Exit code: 1
[dev:frontend] Command: /usr/local/bin/node
[dev:frontend] Arguments: /usr/local/lib/node_modules/yarn/lib/cli.js dev
[dev:frontend] Directory: /home/sstchur/dev/hash/packages/hash/frontend
[dev:frontend] Output:
[dev:frontend]
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[dev:frontend] yarn run dev:frontend exited with code 1
[dev:backend:*realtime] info: STARTED {"service":"realtime","instanceId":"e62f517d-3a09-498e-88c3-aa36814f4037","timestamp":"2022-03-03T00:04:50.018Z"}
[dev:backend:*realtime] info: HTTP server listening on port 3333 {"service":"realtime","instanceId":"e62f517d-3a09-498e-88c3-aa36814f4037","timestamp":"2022-03-03T00:04:50.020Z"}
[dev:backend:*search-loader] Opensearch is not enabled. Shutting down search-loader
[dev:backend:*api] (node:6106) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/sstchur/dev/hash/node_modules/@opensearch-project/opensearch/package.json.
[dev:backend:api] Update this package.json to use a subpath pattern like "./".
[dev:backend:*api] (Use node --trace-deprecation ...
to show where the warning was created)
[dev:backend:*api] info: Listening on port 5001 {"service":"api"}
[dev:backend:*api] info: GraphQL path: /graphql {"service":"api"}
[dev:backend:*realtime] info: HTTP server closed {"service":"realtime","instanceId":"5c5f9460-8130-4cd9-a212-29e5a2a75a14","timestamp":"2022-03-03T00:05:19.687Z"}
[dev:backend:*realtime] yarn run dev:backend:realtime exited with code SIGINT
from hash.
from hash.
Related Issues (20)
- H-357: Allow `change_context` to call `into_report` HOT 4
- Automatic conversion from errors to error stack? HOT 2
- Attachments are misaligned on 0.3.0 HOT 5
- GEN-68: `.into_report()` doesn't include error source chains HOT 8
- H-1: Support loading blocks in # Storybook
- [H-2] Make headings in hash.dev blog posts anchor-linkable HOT 1
- H-3: Add all HASH blocks to # Storybook
- [H-4] Add blurhash to hash.dev slide component HOT 1
- H-5: Automate publishing of new/updated HASH blocks to the block gallery & # Storybook
- Some CSV files that succeed in hCore single-runs fail in hCloud experiment mode
- H-7: Update hash.dev styles to match those in Figma HOT 2
- error[E0554]: `#![feature]` may not be used on the stable release channel HOT 10
- error[E0658]: use of unstable library feature 'lazy_cell' HOT 2
- Unable to run experiments in Python models with specific imports HOT 2
- Unexpected behaviors running experiments in Python simulation models HOT 2
- [H-12] Change title of hash.dev/blog/[post] pages HOT 1
- Unexpected behavior running Python Model Experiment HOT 1
- [H-13] hash.dev: appropriately comma separate author names when articles have 3 or more HOT 1
- hCloud Error when running experiment for Python Model - Using Pandas library HOT 1
- hEngine "ninja_gn_binaries.py" not found? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hash.