<pcuci>
paul@paul-netbook:~/workspace/gitimd$ groups paul
<pcuci>
paul : paul adm cdrom sudo dip plugdev lpadmin sambashare libvirtd sandstorm
<pcuci>
zarvox:same error
<pcuci>
sandstorm/run-bundle.c++:978: failed: You do not have permission to read the pidfile directory. Perhaps your user account is not a member of the server's group?
<zarvox>
ls -l /opt/sandstorm/var/
<pcuci>
drwxrwx--- 7 root sandstorm 4096 Oct 10 17:03 sandstorm
<pcuci>
and log mongo ppid too
<pcuci>
paul@paul-netbook:~/workspace/gitimd$ ls -l /opt/sandstorm/var/
<pcuci>
total 16
<pcuci>
drwxrwx--- 2 root sandstorm 4096 Oct 10 17:03 log
<pcuci>
drwxrwx--- 4 root sandstorm 4096 Oct 10 17:03 mongo
<pcuci>
drwxrwx--- 2 root sandstorm 4096 Oct 10 17:03 pid
<pcuci>
drwxrwx--- 7 root sandstorm 4096 Oct 10 17:03 sandstorm
<zarvox>
and if you run meteor-spk dev from that same shell, it still fails?
<zarvox>
note that when you added yourself to the group, any shell spawned before you changed /etc/group will still only have the old groups, so you might have to close and reopen your shell
<pcuci>
zarvox:new shell, same error
<pcuci>
what if I wipe the pid dir?
<zarvox>
you could stop and start sandstorm again, I guess? sudo sandstorm stop && sudo sandstorm start
<pcuci>
Hi everyone, switched computers, no more segfault on sandstorm, yey!
<pcuci>
accounts-sandstorm takes over the whole accounts system in Meteor apps
<pcuci>
Is sandstorm paying attention to changed files and rebuilding the app as I code?
<pcuci>
I'm not noticing any hot code pushes
<pcuci>
accounts-sandstorm normally only does anything when running inside Sandstorm. However, it's often a lot more convenient to develop Meteor apps using Meteor's normal dev tools which currently cannot run inside Sandstorm. This makes it hard to test your Sandstorm integration.
<pcuci>
lol, ok - not compatible with hackathon timelines :-D
<pcuci>
How do I figure out Meteor.user() inside the iframe? (picked the grain iframe in Chrome) Doing Meteor.user() keeps showing null; I'm trying with only the accounts-base package, dropped accounts-ui and accounts-password
<pcuci>
...** SANDSTORM SUPERVISOR: Starting up grain.
<pcuci>
sandstorm/supervisor.c++:1144: warning: ip_tables kernel module not loaded; cannot set up transparent network forwarding.
<pcuci>
** Starting Mongo...
<pcuci>
about to fork child process, waiting until server is ready for connections.
<pcuci>
2015-10-11T03:28:11.908+0000 I STORAGE Engine custom option: log=(prealloc=false,file_max=200KB)
<pcuci>
forked process: 6
<pcuci>
child process started successfully, parent exiting
<pcuci>
** Starting Meteor...
<pcuci>
Wondering about that transparent network forwarding feature warning; showstopper?
kamalmarhubi has joined #sandstorm
neynah has joined #sandstorm
<pcuci>
anyone around?
<pcuci>
I'm trying the jacksingleton:accounts-sandstorm-dev now, not much documentation on how I can use it...
<pcuci>
Meteor.user() gives null
<kentonv>
hi
<pcuci>
Hey kenton, been strugling for a few hours, can you help?
<kentonv>
possibly
<kentonv>
the network forwarding thing doesn't matter
<pcuci>
cool, neyna is fantastic on the UX side :-)
<kentonv>
we should really remove that warning, it confuses people. :/
<pcuci>
lol, k
<pcuci>
saw your 4min youtube on how you configured things, you made it look easy!
<kentonv>
hmm so I haven't used accounts-sandstorm-dev myself
<pcuci>
kentonv: I finally understood what sandstorm does, and I want to use it
<pcuci>
ok, let me remove it, and just keep your pkg
<pcuci>
I only have accounts-base
<kentonv>
well, accounts-sandstorm-dev does make development a lot easier
<pcuci>
and your package now
<kentonv>
ok
<kentonv>
when you run inside Sandstorm, you say you aren't getting logged in?
<pcuci>
I'm running meteor-spk dev
<pcuci>
and it worked
<pcuci>
now I see a new app in sandstorm
<pcuci>
I'm logged in as Alice (change Alice's name to mine)
<pcuci>
clicked my app, it's booting up an instance
<pcuci>
but not logged in as any user; I have not done any config, except remove meteor-useraccounts from my original app so it works with accounts-sandstorm
<kentonv>
hmm
<pcuci>
as I understood from the docs
<pcuci>
what should happen now
<pcuci>
?
<kentonv>
it *should* log you you in automatically
<pcuci>
Error: failed [500] TypeError: Cannot call method 'indexOf' of undefined at AccountsServer._onCreateUserHook (server/accounts/accountInit.js:15:1) at AccountsServer.Ap.insertUserDoc (accounts_server.js:1230:21) at AccountsServer.Ap.updateOrCreateUserFromExternalService (accounts_server.js:1384:20) at packages/kenton_accounts-sandsto
<pcuci>
rm/server.js:49:1 at runWithEnvironment (packages/meteor/packages/meteor.js:1065:1)
<pcuci>
at XMLHttpRequest.o.call.g.onreadystatechange (7c4abefe4d0a29a22a97b6b58daf11027698bef7.js?meteor_js_resource=true:170)
<pcuci>
at a (7c4abefe4d0a29a22a97b6b58daf11027698bef7.js?meteor_js_resource=true:170)
<kentonv>
ok, so there's an on-create-user hook and it's throwing an exception
<kentonv>
is this your hook, or is it in a package you depend on?
<pcuci>
I'm on an ubuntu 15.04 box
<pcuci>
searched through the whole project, nothing comes up
<pcuci>
AccountsServer
<kentonv>
I mean in meteor
<kentonv>
accountInit.js -- is that your file?
<pcuci>
ah, gotcha, yes - I see now
<pcuci>
it's expecting a username
<pcuci>
I'll remove the whole hook
<kentonv>
ah
<kentonv>
so, accounts-password provides usernames
<kentonv>
but other Meteor accounts packages do not, usually
<kentonv>
and sandstorm's does not either
<kentonv>
it does provide profile.name
<kentonv>
but that contains a display name, like "Kenton Varda"
<pcuci>
ok, rebuilding
<pcuci>
how did you guys pass info to the iframe like this?
<pcuci>
(what's the trick?)
<kentonv>
which info?
<pcuci>
ok rebuild, I'm logged in
<pcuci>
Meteor.user() doesn't list any profile
<kentonv>
you'll need to publish/subscribe it
<pcuci>
I'm checking inside the iframe (chrome)
<kentonv>
by default it is not subscribed from the client side
<pcuci>
gotcha, what would be next steps?
<pcuci>
I find it wonky to develop like this - there is no hot code push
<kentonv>
right, that's where accounts-sandstorm-dev helps
<kentonv>
you can do most development outside of Sandstorm
<kentonv>
using hot code push, etc.
<kentonv>
we do want hot code push to work directly inside Sandstorm some day, but it's complicated
<kentonv>
due to the sandboxing
<kentonv>
probably the reason accounts-sandstorm-dev wasn't working for you is the same account creation hook failing
<pcuci>
ok, switched to jacksingleton:accounts-sandstorm-dev - no luck here
<pcuci>
Meteor.user() null
<kentonv>
ok, you are now *not* running inside Sandstorm, correct?
<pcuci>
meteor (vanilla way)
<pcuci>
no errors either
<kentonv>
hmm
<pcuci>
kentonv:ok, got it! it's not one or the other
<pcuci>
I need your package too, it doesn't load it as a hard dependency
<kentonv>
ah
<pcuci>
cool, well, I have something to show when my other 2 team mates wake up in Europe, haha - I was getting worried :-D
<pcuci>
they should be able to code without needing to install sandstorm, correct?
<kentonv>
sorry that it was confusing!
<kentonv>
yes, using accounts-sandstorm-dev and setting the env variables as its readme says
<pcuci>
ok, we also wanted to deploy to meteor.com
<pcuci>
I'll need to manually remove the packages, and $ meteor deploy
<pcuci>
?
jacksingleton has joined #sandstorm
<kentonv>
and add back the regular meteor accounts packages, yes
<pcuci>
yes, that too - ah, nor pretty, as meteor-useraccounts requires html changes
<pcuci>
it's good enough for now :-D
<pcuci>
I like the phylosophy of sandstorm, now that I understand it
<kentonv>
yeah unfortunately meteor isn't great at having multiple builds with different packages
<kentonv>
maybe Sandstorm should be treated like mobile, as its own separate target platform... hmm
<pcuci>
I'll come back after the hackathon for other questions if you guys hang out in here, the general inquiry is to help my friends boot up instances of peer-to-peer like apps, e.g.: http://pump.io/
<kentonv>
yep, we're always here
<kentonv>
I'd love to see pump.io running on sandstorm
<pcuci>
it's a tricky throughput requirements question, i.e.: if you follow a lot people, you'll use lots of bandwidth
<pcuci>
it'd be cool if sandstorm can throttle use
<kentonv>
it could
<kentonv>
when a sandstorm app communicates with the outside world, it first needs a "capability" to do so
<kentonv>
and it does the communications through that capability
<kentonv>
the platform has a lot of ability to control and throttle capabilities
<kentonv>
not all of it is done yet, though. :)
<pcuci>
interesting, I'll spend some time to learn more, reminds me of DAPPS
<pcuci>
I'll keep in touch, thanks much for the help!
<kentonv>
ok, let me know if you have any more questions
<pcuci>
This package automatically populates profile.name based on the user's
<pcuci>
display name provided by Sandstorm - this does not seem to happen...
<pcuci>
Meteor.publish("allUserDataProfile", function () {
<pcuci>
if (this.userId) {
<pcuci>
return Meteor.users.find(
<pcuci>
{_id:this.userId},
<pcuci>
{
<pcuci>
fields: {
<pcuci>
"profile.name":1,
<pcuci>
"profile.bio":1
<pcuci>
}
<pcuci>
}
<pcuci>
);
<pcuci>
};
<pcuci>
});
<pcuci>
it gets the profile.bio field outside sandstorm
<pcuci>
also jacksingleton's package fails to get profile.name (probably because of kenton:accounts-sandstorm
<pcuci>
)
<pcuci>
I don't see profile.name data in the db - at what point should it get populated?
<jacksingleton>
pcuci: what error do you get from my package? it doesn't try to read profile.name anywhere, just stubs out sandstorm headers so that kenton:accounts-sandstorm will pick them up
<pcuci>
jacksingleton:not seeing any errors...
<jacksingleton>
oh you just mean profile.name does not show up in the client?
<pcuci>
jacksingleton:yes
<pcuci>
inside sandstorm nothing shows up under profile, at least in vanila meteor (with your package), I see one of my fields profile.bio
<jacksingleton>
hmm. so the accounts-sandstorm-dev github repo is actually a Meteor app that directly contains the package I publish to atmosphere. you could check that you see profile.name in that app and then start trying to find any differences between it and your app
<pcuci>
jacksingleton: let me give that a try right now :)
<pcuci>
jacksingleton:if I forget to comment out your package before meteor-spk dev - does it still work, or will they interfere?
<jacksingleton>
nope no need to comment it out, meteor lets me mark the package as dev only, and just for good measure I also check that there aren't already sandstorm user headers
<pcuci>
ah, cool :)
jacksingleton has quit [Ping timeout: 240 seconds]
<synchrone>
so there's some wild interactive input required by the scripts?
xet7_ has quit [Read error: Connection reset by peer]
xet7_ has joined #sandstorm
<dwrensha>
something like that, I guess
<synchrone>
ok, i am trying with that commit reverted
mort___ has quit [Quit: Leaving.]
xet7_ is now known as xet7
<synchrone>
hmm, works fine, but never really asked anything
<synchrone>
i guess those scripts need DEBIAN_FRONTEND=nonteractive
<synchrone>
dwrensha: one thing i don't get is how am i supposed to debug my app if nginx is reconfigured for log to stderr, no access log, and is being ran internally by sandstor inside launcher.sh script?
<synchrone>
there's no way for me to see the error log, after i'm welcomed by Internal Server Error inside my grain
<fkautz>
so, is it possible to set up sandstorm using admin generated users via signup links and without smtp?
<fkautz>
i get this nifty error when i try to have it create only a link
<fkautz>
Error: User must be admin or provide a valid token [403]
<fkautz>
that's using the URL from sandstorm admin-token
xet7_ has joined #sandstorm
xet7 has quit [Read error: Connection reset by peer]
<dwrensha>
fkautz: sounds like a bug somewhere
<dwrensha>
fkautz: when are where do you see that error?
<dwrensha>
can you visit the /admin/invites page?
<fkautz>
created new sandstorm instance, visited the URL
<fkautz>
i tried signing up via the link to the right next, then tried resending it using a new token and it generated a link
<fkautz>
which just asked me to create a user again using the same email :\
<fkautz>
i don't have an smtp server available, maybe i should give github authentication a try instead and see if it works
xet7 has joined #sandstorm
<dwrensha>
I think you've lost me somewhat...
<dwrensha>
are you trying to invite new users?
<dwrensha>
you should only need SMTP for email token login, or for "Send an e-mail" invites
<fkautz>
i was trying to create a user for myself on a new instance
<fkautz>
i basically want to run it in a vm
<fkautz>
github auth won't work, won't be able to access the callback
<fkautz>
so basically, how do i create a user with no smtp access? i don't mind that sandstorm apps won't be able to email out
<dwrensha>
I've been able to get Github and Google auth working on an instance that's only accessible locally
xet7_ has quit [Ping timeout: 264 seconds]
<dwrensha>
I don't think there's any special magic involved...
<fkautz>
mmm, that doesn't sound right. oauth has an authorization callback url
<dwrensha>
I think it's only your browser that will hit that URL
<dwrensha>
or something
<fkautz>
ah, you're right
<fkautz>
anyways, that fixes the problem, thanks
<dwrensha>
by the way, are you aware of "dev" accounts?
<dwrensha>
Just in case you haven't: if you set "ALLOW_DEV_ACCOUNTS=true" in /opt/sandstorm/sandstorm.conf, you can log on as a dev user without needing any external authentication
gopar has joined #sandstorm
<fkautz>
ah, haven't seen that yet
ZucchiniZe- is now known as ZucchiniZe
larjona has joined #sandstorm
Tiffany has joined #sandstorm
<Tiffany>
I'm getting a "GPG signature is NOT valid! Please report to security@sandstorm.io immediately!" when I try to install sandstorm
<Tiffany>
I tried manually reproducing the bit of code that checks the signatures, and this happened: http://sprunge.us/ahNU
<Tiffany>
I tried listing the keys in the keyring it creates, and there are none
<Tiffany>
which is weird
<Tiffany>
it's trying to install build 118, and this is gpg 2.1.8
<Tiffany>
it looks like the script is invoking gpg incorrectly, since using a different command works
<zarvox>
what invocation works better?
<Tiffany>
this one, but I believe it is importing the sandstorm key into the user's keyring, which may be undesirable: gpg --verify --keyring ./sandstorm-keyring.gpg --status-fd 1 sandstorm-118.tar.xz.sig
<Tiffany>
hm, maybe not
<Tiffany>
ah, I misread the manpage for gpg
NwS has joined #sandstorm
<Tiffany>
actually, I'm not sure now
<Tiffany>
I added back --no-default-keyring and the {.sig,} and it continues to work
<Tiffany>
oh
<Tiffany>
I must have initialized gpg or something, since the installer is now working
<Tiffany>
this is on a fresh user, so there was no trustdb or local keyring
<zarvox>
Interesting; so it failed the first time you ran gpg2, but the second time everything was fine?
<Tiffany>
it actually failed multiple times
<Tiffany>
I think the important one might have been when one of the gpg commands I tried executing printed "gpg: /srv/sandstorm/.gnupg/trustdb.gpg: trustdb created"
<Tiffany>
which was gpg --list-keys
<zarvox>
hmm, so perhaps we should specify a whole --homedir so we can make sure the trustdb exists?
isd has joined #sandstorm
NwS has quit [Quit: See you in Isla de Muerte!]
isd has quit [Quit: Leaving.]
jadewang has joined #sandstorm
bb010g has joined #sandstorm
larjona has quit [Ping timeout: 268 seconds]
jadewang has quit [Remote host closed the connection]
Tiffany has left #sandstorm ["Leaving"]
mort___ has quit [Read error: Connection reset by peer]