-
Notifications
You must be signed in to change notification settings - Fork 90
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
perseus serve
crashes with no error on Arch Linux
#78
Comments
Would you mind trying with the latest beta version and seeing if you can reproduce it there? |
I will try tonight. perseus = "0.3.0-beta.17" or should I also update the cli? and if so how? |
@njittam, yes, the Perseus CLI also needs to be updated with |
Ok, It still doesnt't work for new reasons. I do see Hello world now. But the console errorrs. $ rm -rf .perseus
$ sed -i 's/0.2/0.3.0-beta.17/g' Cargo.toml
$ rm src/lib.rs && touch src/lib.rs
# update lib.rs to the new file at https://arctic-hen7.github.io/perseus/en-US/docs/0.3.x/hello-world
$ cargo install perseus-cli --version "0.3.0-beta.17"
$ perseus build
$ perseus serve # still doesn't work no new information here
$ perseus serve --no-build
# goto localhost:8080 console output:
Learn More link: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options |
@njittam, I guess you've installed user@debian:~$ cargo --version
cargo 1.55.0 (32da73ab1 2021-08-23) Did you also run the two following commands before installing # download the target for wasm
rustup target add wasm32-unknown-unknown
# install wasm-pack
cargo install wasm-pack I don't think this is Manjaro or Arch related issue, but it could be. |
$cargo --version
cargo 1.55.0 (32da73ab1 2021-08-23) $ cargo install wasm-pack
Updating crates.io index
Ignored package `wasm-pack v0.10.1` is already installed, use --force to override
|
I tried running the example in chromium Version 94.0.4606.81 (Official Build) Arch Linux (64-bit)
and after f5
in firefox I also get an 404 on bundle.js |
Can you give me an exact series of steps that you're following from scratch to replicate this? (I'm not getting the same issue.) |
@arctic-hen7, it's most likely Arch related. I've tried Dockerfile # get the base image
FROM rnestler/archlinux-rust:1.56.1 AS build
# install build dependencies
RUN pacman --noconfirm -Sy lsb-release \
base-devel curl
# vars
ENV PERSEUS_VERSION=0.3.0-beta.17
# prepare root project dir
WORKDIR /app
# download the target for wasm
RUN rustup target add wasm32-unknown-unknown
# install wasm-pack
RUN cargo install wasm-pack
# retrieve the src dir
RUN curl https://codeload.github.com/arctic-hen7/perseus/tar.gz/v${PERSEUS_VERSION} | tar -xz --strip=2 perseus-${PERSEUS_VERSION}/examples/tiny
# go to src dir
WORKDIR /app/tiny
# install perseus-cli
RUN cargo install perseus-cli --version $PERSEUS_VERSION
# clean app
RUN perseus clean
# specify deps in app config
RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" ./Cargo.toml \
&& cat ./Cargo.toml
# prep and eject app
RUN perseus prep && perseus eject
# adjust and append perseus config
RUN sed -i s"/perseus = .*/perseus = \"${PERSEUS_VERSION}\"/" .perseus/Cargo.toml \
&& cat .perseus/Cargo.toml
# deploy app
RUN perseus deploy
# prepare deployment image
FROM archlinux:base-20211114.0.39041
WORKDIR /app
COPY --from=build /app/tiny/pkg /app/
ENV PERSEUS_STANDALONE=true
ENV HOST=0.0.0.0
CMD ["./server"] Trimmed output of docker build ...
Step 14/20 : RUN perseus deploy
---> Running in 1987364a53d9
The command '/bin/sh -c perseus deploy' returned a non-zero code: 1 |
Okay that's very interesting. I guess I'm playing around in an Arch shell then! |
Okay, this is distinct from #74, because this issue is being caused by a segmentation fault in @njittam could you please confirm that downgrading |
perseus serve
crashes with no error on Arch Linux
@njittam I'm going to close this, please let me know if the issue is still persisting for you. |
Describe the bug
The bug consists of 2 bugs. But I think the first bug is already described in #74. It basicly crashes with the serve command. I Think I found a workaround by not building the package with serve. The second bug(the reason why I created a new issue) is the webpage crashes in the Hello World example. Presumably because of an example in the package.
To Reproduce
Steps to reproduce the behavior:
3.1 this stops with this output which is unexpected but I think this is related to Some errors in compilation/execution don't appear in the CLI output #74
Expected behavior
See a hello word
Screenshots
None
Environment (please complete the following information):
Additional context
Console Output
The text was updated successfully, but these errors were encountered: