Comments (5)
That's very strange. Since it proposed installing a service hook, I assume you chose to grant root privileges. So why would unshare() be disallowed?
Is Ubuntu running on bare metal, or in a VM, or in Docker, or...?
from sandstorm.
The server I wanted to use is in fact advertized as vserver (virtual server). I never really noticed any difference to a dedicated server other than performance until now but I guess this virtualization part (hoewever my provider implemented that) is the problem.
I guess there is no real workaround here for me other than switching my server?
from sandstorm.
Ah, assuming "vserver" refers to Linux-VServer, then that probably explains the problem. This behaves a lot like a Docker container. Inside the container, when you are "root", you aren't really root, and some things root can normally do won't work.
One thing you can try instead is installing and running Sandstorm as a non-root user (say "no" for the first question in the installer). In this case it takes a different path based on UID namespaces which will probably work. However, in this arrangement you will not be able to use the installation for app development (spk dev
won't work). But if you weren't planning to do development, everything else should be fine. (We hope to make spk dev
work in this setup someday, but it requires kernel support for mounting FUSE filesystems in a UID namespace, which isn't there yet.)
When you arrange to run as non-root, the installer does not create an initscript for you. Something like this should work, though:
#! /bin/bash
### BEGIN INIT INFO
# Provides: sandstorm
# Required-Start: $local_fs $remote_fs $networking $syslog
# Required-Stop: $local_fs $remote_fs $networking $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts Sandstorm personal cloud server
### END INIT INFO
DESC="Sandstorm server"
DAEMON=/opt/sandstorm/sandstorm
USER=sandstorm
exec su $USER -s "$DAEMON" -- "$@"
from sandstorm.
Hey Kenton,
Thx for the help but running standstorm as non root user did not work either.
The installation part finished without complaining but when I try to start sandstorm via
/home/fgrosse/sandstorm/sandstorm start
I get a somewhat similar error:
*** Uncaught exception ***
src/sandstorm/run-bundle.c++:1307: error from OS: unshare(CLONE_NEWUSER): Invalid argument
stack: 0x467fdd 0x46b634 0x41d2a7 0x425e44 0x425d69 0x425d5a 0x4733ff 0x474a0d 0x474cf6 0x468636 0x46d81d 0x407292 0x4bc3b0 0x401227
I guess I will try this on a real dedicated root server as soon as I have some more time and access to another server, Until then I guess the issue could be closed from my point of view but if you want to investigate this further I'lle be happy to try something else or give more information. I leave that for you to decide.
Best regards and keep up the great work
Friedrich
from sandstorm.
Huh. Apparently your kernel doesn't support userns creation. Perhaps this is a property of linux-vserver; it wouldn't surprise me if it conflicts. Well, Sandstorm definitely can't work without user namespaces, so I guess you're stuck. :/ Sorry!
from sandstorm.
Related Issues (20)
- Error reinstalling sandstorm HOT 6
- Automatic Grain Backups HOT 1
- Etherpad grains not working after upgrade to 0.304 HOT 7
- Email delivery failure messages no such grain with email not configured HOT 12
- Scheduled Tasks view in Grain Settings appears broken HOT 3
- Installer and docs disagree on which port the incoming mail SMTP service lives on HOT 5
- Can't turn off app updates in App Sources panel HOT 3
- Building Sandstorm in a Debian Bullseye VM fails due to old golang-go version HOT 4
- "App market" shortcut leads to invalid URL HOT 2
- 404 on token setup page HOT 2
- Anything important worth saving at Google Groups? HOT 4
- able to Install Apps from https://apps.sandstorm.io/ But Grains were loading for ever HOT 22
- Perfect Configuration in Nginx for Sandstorm *.Wildcard Setup HOT 3
- docker compose unshare(CLONE_NEWPID) HOT 4
- Lengthy Powerbox requests cannot be read in full
- Failed to renew Let's Encrypt certificate HOT 12
- sandstorm.conf for non-standard TLD? HOT 6
- I used HTTPS-verified install, But open site ,it is blank? HOT 3
- Upgrade Meteor Testapp to Meteor 3.0 (Beta) HOT 7
- Preventing access to client local network? HOT 8
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 sandstorm.