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

Error when running wallet in Gramine (Intel SGX) #9369

Open
yagop opened this issue Jun 16, 2024 · 1 comment
Open

Error when running wallet in Gramine (Intel SGX) #9369

yagop opened this issue Jun 16, 2024 · 1 comment

Comments

@yagop
Copy link

yagop commented Jun 16, 2024

I'm trying to run monero-wallet-rpc in Gramine as for security purposes.

The http request are not working (it receives and close them), and errors got shadowed so not sure what's going on. Neither writing logs to log file seems working.

$ gramine-sgx /etc/gramine/monero-wallet --wallet-dir=/home/monero/wallet/ --rpc-bind-port=18083 --rpc-bind-ip=127.0.0.1 --disable-rpc-login --rpc-ssl disabled --offline --non-interactive --log-level=4 --log-file=/home/monero/monero-wallet.log --stagenet
...
2024-06-16 14:48:42.701	D handle_accept
2024-06-16 14:48:42.702	D New server for RPC connections, SSL disabled
2024-06-16 14:48:42.702	D Spawned connection #1 to 0.0.0.0 currently we have sockets count:2
(libos_epoll.c:406:do_epoll_mod) [P1:T2:monero-wallet-rpc] debug: epoll: modified 6 (0xffff268678) on epoll handle 0xffff268440
2024-06-16 14:48:42.702	D Destructing connection #0 to 127.0.0.1

Any idea how to proceed?

Full log: https://pst.innomi.net/paste/ubs4wyx4rxvc9pnfjb7kqk5v
Gramine template: https://pst.innomi.net/paste/6exw6jsndsh9jk6btjuxz9ya

@yagop yagop changed the title Running wallet in Gramine (Intel SGX) Error when running wallet in Gramine (Intel SGX) Jun 16, 2024
@0xFFFC0000
Copy link
Collaborator

Very interesting question. I will try Grammine myself.

But honestly I don't think this will be related to Monero code base. The error happens on much lower level (epoll syscall). There is all sort of restriction in SGX runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants