asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
joshbuddy has quit [Quit: joshbuddy]
isd has joined #sandstorm
joshbuddy has joined #sandstorm
* asheesh waves, now in SF.
joshbuddy has quit [Quit: joshbuddy]
<asheesh> bb010g & wolcen : Howdy
<asheesh> wolcen: Did you get your problems fixed?
<asheesh> bb010g: I believe the sandcats cert stuff tries to wait ~10 minutes for OCSP to settle down.
<asheesh> Did you recent restart your Sandstorm service, out of curiosity?
iangreenleaf has quit [Ping timeout: 240 seconds]
phildini has quit [Ping timeout: 272 seconds]
aldeka has quit [Quit: No Ping reply in 180 seconds.]
joshbuddy has joined #sandstorm
iangreenleaf has joined #sandstorm
<wolcen> asheesh: been doing client work all day, so I haven't had a chance to try again yet. It's easy enough though - I'll do it now.
aldeka has joined #sandstorm
phildini has joined #sandstorm
myguidingstar has quit [Ping timeout: 256 seconds]
myguidingstar has joined #sandstorm
<asheesh> wolcen: OK!
<asheesh> wolcen: Let me know how it goes. Hopefully it fails or succeeds quickly, and then you'll have a question you can ask, and then I can fix it if needed.
<wolcen> asheesh: yeah, it failed quick, but I have something to fix for now ;P way to be positive about it though.
<asheesh> (-:
<asheesh> Do let me know if there's anything I can help you debug.
wolcen has quit [Ping timeout: 250 seconds]
neynah has joined #sandstorm
jar286 has quit [Quit: jar286]
raoulzecat has quit [Ping timeout: 272 seconds]
jar286 has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neynah has joined #sandstorm
raoulzecat has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
simonv3 has quit [Quit: Connection closed for inactivity]
jar286 has quit [Quit: jar286]
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 240 seconds]
isd has quit [Remote host closed the connection]
jar286 has joined #sandstorm
jar286 has quit [Client Quit]
decipherstatic has joined #sandstorm
decipherstatic has quit [Ping timeout: 250 seconds]
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 245 seconds]
neynah has joined #sandstorm
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 240 seconds]
mnutt has joined #sandstorm
|jemc| has quit [Quit: WeeChat 1.3]
|jemc| has joined #sandstorm
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 272 seconds]
mnutt has quit [Quit: mnutt]
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aegis- has joined #sandstorm
<aegis-> Hi all! Just wondering if there is anyway to install sandstorm and use my existing apache2 webserver?
<au> perhaps you can set it up on a different port
mrflos has joined #sandstorm
<mrflos> hi, anyone with php/mysql packaging experience there?
<asheesh> Hi mrflos
<asheesh> Yes, though I'm going to bed soon
<asheesh> But happy to answer a couple of questions before I do.
<asheesh> I reviewed the code (and perhaps have edited it, over the past year) for the "lemp" stack.
<asheesh> mrflos: Are you running into problems at all?
<asheesh> If so, are you willing to do a 'git add' of the .sandstorm directory and share it on e.g. GitHub?
<mrflos> ok sure
<mrflos> thanks a lot for help
<mrflos> i'm really at the beginning
<asheesh> Awesome. FWIW there is a a .sandstorm/.vagrant which you should probably not 'git add'.
<asheesh> Cool
<asheesh> Did you manage to do the tutorial yet?
<mrflos> yes i can run my package, but i don't know how to inject sql
<mrflos> i needed to write my config file by hand
<mrflos> but the software had an installer that generate the config file and populated the db
<asheesh> Fascinating.
<mrflos> and now the db population is missing
<asheesh> For DB population, you have two real choices.
<mrflos> ok
<asheesh> 1. You can make a mysqldump of the database, then bundle the *.sql file, and on grain start, do 'mysql < /opt/app/initial.sql'
<asheesh> 2. You can do something similar to the above, but use a directory snapshot of /var/lib/mysql instead.
<asheesh> I recommend option 1 if possible.
<asheesh> Oh, the other thing you can do is
<asheesh> 3. Run the installer, via the command line, at grain creation time, before nginx and php5-fpm start.
<asheesh> That's probably the best answer, but depending on the app, it might really want the installer to be a web-based process.
<asheesh> But often you can find the installer's real functionality and call it from a command line PHP script.
<asheesh> Let me know if this is/isn't making sense.
<asheesh> https://docs.sandstorm.io/en/latest/vagrant-spk/customizing/ documents which scripts to modify - look at the discussion of launcher.sh in particular.
<asheesh> BTW, I'm curious - what app is this?
<mrflos> its a multilingual wiki
<asheesh> Neat!
<mrflos> with db capacities
<mrflos> i'm worried about leaflet integration
<mrflos> becuase it does map also
<asheesh> That should be fine, although in the long term it'll require that you ask the user if it's OK to communicate with leaflet, but that's a ways away at the moment, and anyway the user will presumably say yes.
<asheesh> That's assuming you need to communicate with leaflet. But maybe the app doesn't even need that, and can bundle whatever it needs. And again, that's a ways away, and we'll help you migrate, and we don't plan to break any existing apps.
<mrflos> ok thank you very much!! i have a lot of questions!
<asheesh> Great! Keep asking them for now, although if it can wait about 10 hours, that's easier for me, since I can sleep. But I don't know your schedule, etc.
<mrflos> here are some different visualisation from yeswiki
<asheesh> Oh my goodness that loks *so* good.
<asheesh> This is AMAZING.
<mrflos> there is a wiki style syntax to generate forms
<asheesh> This second one is also amazing. Bordering on breathtaking.
<mrflos> and you can render as map or calendar, or picture gallery
<mrflos> hehe don't make me blush
<asheesh> Seriously though. I'm amazed.
<mrflos> i just don't know how to handle themes
<asheesh> Gotcha.
<asheesh> How do themes work for this app in general?
<mrflos> and also yeswiki is multilingual
<mrflos> and defaut in french
<mrflos> i will package an english version of course
<mrflos> but i'm wondering how sandstorm will handle multilang
<asheesh> I think we pass the "Accept-Language" header through... let me check.
<mrflos> there is a theme folder
<mrflos> and you can associate a theme to everypage
<mrflos> or a default theme in config file
<asheesh> Yeah, per https://github.com/sandstorm-io/sandstorm/blob/master/src/sandstorm/web-session.capnp#L52 we do pass the languages through, via the web browser.
<asheesh> You can bundle themes, and/or you can allow users to upload them.
<mrflos> cool
<asheesh> If they upload them, they must go to /var somewhere, since the app can only write to /var
<mrflos> yes kentonv informed me about that, no problem
<asheesh> Great.
<mrflos> (if symlink is ok)
<asheesh> Ya, 'tis
<mrflos> cool i will explore this
<asheesh> (note: if you're using vagrant-spk on Windows, you might have symlink issues that come from VirtualBox; if you run into that, then I can possibly help diagnose)
<mrflos> also provide a git repo
<asheesh> A question for you:
<mrflos> i'm on linux and mac os
<asheesh> Is it OK for your package to always require the user to be logged in to Sandstorm?
<asheesh> And/or always have the Sandstorm top & side bar visible?
<asheesh> If so, great. If not, then you might want to look into https://docs.sandstorm.io/en/latest/developing/web-publishing/ as well.
<mrflos> yes i already experimented all this this ghost blog
<asheesh> I would use this for internal data organizing within groups, so for me the top/sidebar within Sandstorm is A-OK, but I wanted to bring that to your attention.
<asheesh> Cool.
<mrflos> great stuff
<asheesh> : D
<mrflos> i'm planning on using the acls of sandstorm for yeswiki
<mrflos> owner is admin
<mrflos> and invited guys can edit
<mrflos> inconito can read
<mrflos> something basic like this
<asheesh> Sounds pretty reasonable to me.
<mrflos> and in a second time, static publishing
<mrflos> but there is a long way!
<mrflos> jsut one last little question
<asheesh> FWIW the WordPress package literally uses wget for static publishing. But yes, there is a long way!
<asheesh> OK! What else?
<asheesh> You're fun to talk to, so I'm happy to answer other questions really.
<mrflos> in the future, could sandstorm work on arm processors?
<mrflos> or does it uses some strange virtualisation stuff
<asheesh> It doesn't use any strange virtualization, but there are 2 problems with Sandstorm on ARM.
<mrflos> (sorry i'm not super technical, got the big picture but no more)
<asheesh> 1. Sandstorm packages are "binary" packages, containing the full compiled code of the app. There's no meta-data about what CPU architecture a package is compiled using.
<mrflos> ok.
<asheesh> 2. Sandstorm uses MongoDB which has no officially-supported ARM build, if I understand correctly.
<mrflos> got it.
<mrflos> sad, by dream use case would be
<asheesh> These are not showstoppers, but they do mean that we (the main Sandstorm team) aren't currently prioritizing it working on ARM. If you end up making it work on ARM, we will be enthusiastic for you!
<mrflos> go to the forest, use an arm box on battery to provider sandstorm server
<mrflos> work with a group disconnected form internet, connected to sandstorm server
<mrflos> go home and publish on a real online server
<asheesh> I mean, wow, I would love that too.
<asheesh> http://www.digitaltrends.com/computing/jaguarboard-intel-processor-pi-alternative/ is another Intel-based Raspberry Pi-sized thing, it seems
<mrflos> this could be great for education et cooperation in lost places
<asheesh> Just make sure whatever you want to get, it's not just Intel, but supports 64-bit Intel
<mrflos> oh...
<mrflos> that i'm not sure
<asheesh> So you're good in this case.
<mrflos> great!
<mrflos> so jsut to publish my .sandstorm
<mrflos> can i use https://github.com/YesWiki
<asheesh> Yeah, sure!
<mrflos> or do you want to centralise
<mrflos> the whole directory or just .sandstorm?
<asheesh> The whole directory
<mrflos> ok
<asheesh> That way, the full source code anyone else would need to rebuild the app is in there.
<mrflos> public keys will be there too
<asheesh> Yeah, public is OK
<mrflos> good, so give me some time, but i'm in!
<asheesh> Amazing.
<mrflos> and than you again, have a nice rest
<asheesh> BTW are you on https://groups.google.com/forum/#!forum/sandstorm-dev yet? If not, please do join!
<mrflos> i'm spying there
<mrflos> but not contributing
<mrflos> will announce my beta package there of course
<mrflos> hopefully in 2016 ;)
<asheesh> Great!
<mrflos> nice talking to you, thank you!!
<mrflos> bye
<asheesh> You bet! Bye!
|jemc| has quit [Ping timeout: 250 seconds]
ecloud is now known as ecloud_wfh
mrflos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jar286 has joined #sandstorm
jar286 has quit [Client Quit]
jar286 has joined #sandstorm
jar286 has quit [Client Quit]
jar286 has joined #sandstorm
jar286 has quit [Client Quit]
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 256 seconds]
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 250 seconds]
nicolagreco has quit [Remote host closed the connection]
jar286 has joined #sandstorm
jar286 has quit [Ping timeout: 276 seconds]
jar286 has joined #sandstorm
Triplefox has joined #sandstorm
jar286 has quit [Ping timeout: 272 seconds]
mnutt has joined #sandstorm
rhiaro_ is now known as rhiaro
mnutt has quit [Quit: mnutt]
mnutt has joined #sandstorm
wolcen has joined #sandstorm
decipherstatic has joined #sandstorm
decipherstatic has quit [Remote host closed the connection]
decipherstatic has joined #sandstorm
mrflos has joined #sandstorm
decipherstatic has quit [Remote host closed the connection]
kecolus has joined #sandstorm
bb010g has quit [Quit: Connection closed for inactivity]
wolcen has quit [Ping timeout: 250 seconds]
|jemc| has joined #sandstorm
rolig has quit [Quit: Quit]
mnutt has quit [Quit: mnutt]
rolig has joined #sandstorm
relicanth has joined #sandstorm
relicanth has quit [Client Quit]
relicanth has joined #sandstorm
simonv3 has joined #sandstorm
canucky has joined #sandstorm
* asheesh waves, good morning all.
<canucky> hey folks - been looking around for the docs outlining how I can setup our landing page like you have at https://oasis.sandstorm.io/ - can you point me in the right direction
<asheesh> canucky: Hi! Right!
<asheesh> I can explain it to you here, but I haven't written up docs yet.
<asheesh> If you can wait ~1h then I can try to write some fairly comprehensible docs and point you at them; if you want it in the next 15 min, then I can answer over IRC.
<asheesh> I prefer the former, if that works for you. Thoughts?
<canucky> No rush - happy to wait for the notes
<asheesh> OK!
neynah has joined #sandstorm
raoulzecat has quit [Ping timeout: 272 seconds]
gambatte has quit [Ping timeout: 250 seconds]
gambatte has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
notevil has joined #sandstorm
gambatte has quit [Ping timeout: 260 seconds]
relicanth has quit [Quit: Leaving]
relicanth has joined #sandstorm
relicanth has quit [Client Quit]
relicanth has joined #sandstorm
Enerdhil has joined #sandstorm
<Enerdhil> Hi, i have this in my log and i don't find any solution on the internet : http://pastebin.com/ScDCGqvX
<Enerdhil> Thanks by advance
Enerdhil has quit [Client Quit]
canucky has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
canucky has joined #sandstorm
mnutt has joined #sandstorm
gambatte has joined #sandstorm
<asheesh> Hi enerdhil, it looks like you've found a bug where an unusual configuration can lead to a crash loop.
<asheesh> I know you're not around but I wanted to say that in case you go read the logs!
<asheesh> And for Google:
<asheesh> TypeError: Cannot call method 'slice' of null at Meteor.absoluteUrl.options (packages/meteor/url_server.js:11:1)
<asheesh> /programs/server/boot.js:283
bb010g has joined #sandstorm
<asheesh> Let me know if that explains things well. I should probably send an email to sandstorm-dev or something about it.
<asheesh> But first let me know if that explains things clearly enough.
relicanth has quit [Ping timeout: 276 seconds]
joshbuddy has quit [Quit: joshbuddy]
relicanth has joined #sandstorm
kecolus has quit [Quit: Leaving]
wolcen has joined #sandstorm
joshbuddy has joined #sandstorm
joshbuddy has quit [Quit: joshbuddy]
<mrflos> hi there
<mrflos> asheesh , are you here ?
<mrflos> i'm the yeswiki guy from yesterday
<mrflos> i made some progress but i'm a bit stuck
<mrflos> I opened a repository and documented my WIP
<mrflos> for now, my sql dump in the repo is very bad, and I would like to dump the database from my current grain
<mrflos> is there a way ?
<mrflos> i tried vagrant-spk ssh and mysqldump, but i cannot connect
<mrflos> also, my symlinks to /var to upload files don't work
mrflos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mrflos has joined #sandstorm
<asheesh> mrflos: Yes, hi!
<asheesh> Let me see.
<asheesh> mrflos: You can't "mv", since /opt/app is mounted read-only.
<asheesh> You can 'cp -a' though.
<asheesh> Similarly you can't write to /opt/app/cache but "ln -s /var/storage/cache /opt/app/cache" would write to /opt/app/cache
<asheesh> But you could make this symlink in build.sh instead.
<asheesh> Basically, I think the key insight here is "make (broken) symlinks in build.sh" and then "cp -a, not mv, in launcher.sh"
wolcen has quit [Ping timeout: 250 seconds]
<mrflos> mmmhh..
<mrflos> my problem is that i have usefull data already
<asheesh> If you want to connect to the grain... well basically there's a half-documented thing you can do which maybe I should document more formally today via "nsenter".
<mrflos> like in /themes
<mrflos> it should be writable, and containing data
<asheesh> https://github.com/sandstorm-io/vagrant-spk/issues/56 discusses how I get there.
<asheesh> s/how I get there/how to connect to the grain's MySQL/
<asheesh> This is a way you can mysqldump too
<mrflos> ok cool for the grains mysql, i think i can do this!
<asheesh> mrflos: You can ship the data in the SPK file (/opt/app) and then 'cp -a' it into the grain so that it's writeable.
<asheesh> Sweet.
<mrflos> so if i get it right, in the build.sh i create broken symlinks, then in the launcher.sh i can create dir and copy ? from what source?
decipherstatic has joined #sandstorm
canucky has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<asheesh> in launcher.sh , do something like
<asheesh> cp -a /opt/app/data /var/data
<asheesh> If you need "data" to be writeable.
mnutt has quit [Quit: mnutt]
<mrflos> ok i will give it a try
<mrflos> thanks a lot
<asheesh> FWIW that will mean that on grain creation, the data directory will use up user storage, and that you have no migration plan for updating themes on app update.
<asheesh> So you might be better off symlinking some of those files into /var so that the user can upload new ones, but the ones that come from the app are still auto-updated when the app is updated.
<asheesh> Feel free to decide to worry about that later, though.
<mrflos> yeah i'm starting to think that i should only have an uploads dir in var
<mrflos> and for now keep the themes in the application apk
<asheesh> That makes sense to me, for what it's worth.
<asheesh> What you could also do, if people want to add their own themes, is you could have the app code search /var/themes as *well* as /opt/app/themes
<asheesh> In which case the app would have to be able to search two theme directories.
<asheesh> BTW mrflos it's somewhat common to have the .sandstorm/ directory in the main project, so you don't really need to have a separate repo if you don't want to. ( https://github.com/YesWiki/yeswiki-sandstorm vs https://github.com/YesWiki/yeswiki )
<mrflos> yes could be possible, but i'm trying to have no code changes between main app and sandstorm
<asheesh> Yeah - you could make this be an option that the main app supports as well!
gambatte has quit [Ping timeout: 256 seconds]
<mrflos> yeah got it, but must convice my team
<asheesh> b (thumbs up)
<mrflos> another mini question : can i get the grains name in my php app, maybe some <script></script>
<mrflos> or is it in some headers parameter?
<asheesh> You can't yet, but https://github.com/sandstorm-io/sandstorm/issues/1117 is an issue requesting it.
relicanth has quit [Ping timeout: 276 seconds]
<mrflos> ok b b b
rolig has quit [Ping timeout: 240 seconds]
rolig has joined #sandstorm
<ocdtrekkie_> Wallabag on HN today, would be awesome on Sandstorm.
<ocdtrekkie_> Wallabag.org
<asheesh> +1
<asheesh> You gonna package it? : D
<asheesh> Oh *wow* re: Pocket migration
<asheesh> I want that.
<phildini> is docs.sandstorm.io hosted on readthedocs or somewhere else?
<asheesh> It's hosted on an instance of "GitWeb Pages" on alpha.sandstorm.io.
<asheesh> GitWeb Pages is an app that XgF made that I love but where no one has improved the UI enough for people to be excited about putting it on the app market. | :
<asheesh> Plus we keep thinking that the powerbox is just around the corner so then it wouldn't have to integrate as much functionality into one single app.
<phildini> it seems a) slower? and b) I just got a cloudflar error page trying to access.
<phildini> refreshing fixed the 'error', but something to be aware of.
<asheesh> Yeah, hilariously, we just fixed an out-of-disk condition on alpha.sandstorm.io.
<asheesh> Anyway should be OK now?
<maurer> Random stupid idea that I just feel like voicing - capnproto mediated remote zfs disks
<maurer> (ignore me! :) )
<phildini> asheesh: idea that I can file an issue against, and maybe even contribute to: vagrant-spk should be installable via homebrew on mac?
jadewang has quit [Remote host closed the connection]
jadewang has joined #sandstorm
jadewang has quit [Ping timeout: 264 seconds]
<ocdtrekkie_> paulproteus : I am really backlogged on other projects. I tagged you in a thing, someone suggested Wallabag be on Sandstorm months ago.
e_low is now known as prosody
mrflos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mrflos has joined #sandstorm
gambatte has joined #sandstorm
canucky has joined #sandstorm
joshbuddy has joined #sandstorm
mnutt has joined #sandstorm
rustyrazorblade has joined #sandstorm
notevil has quit [Quit: party pants time]
mnutt has quit [Quit: mnutt]
relicanth has joined #sandstorm
<ocdtrekkie_> Errr... asheesh
<ocdtrekkie_> Still haven't gotten used to the name change.
mnutt has joined #sandstorm
<asheesh> (-:
<ocdtrekkie_> Does vagrant-spk still not work on Windows, asheesh?
mnutt has quit [Quit: mnutt]
mnutt has joined #sandstorm
bb010g has quit [Quit: Connection closed for inactivity]
mnutt has quit [Quit: mnutt]
<asheesh> ocdtrekkie_: It does work on Windows! ndarilek uses it.
<asheesh> phildini: at least +0 for vagrant-spk via Homebrew
<asheesh> It should be relatively easy!
<asheesh> I don't know much about homebrew but if you want to pair on that this weekend when we're hanging out, +1
rolig has quit [Ping timeout: 250 seconds]
rolig has joined #sandstorm
jadewang has joined #sandstorm
* asheesh stretches.
<XgF> asheesh: I feel even less necessity to fix the UI when Davros exists :p
<XgF> (Also I kind of feel that maybe such functionality should be built into the main Gitweb app maybe?)
mnutt has joined #sandstorm
relicanth has quit [Ping timeout: 256 seconds]
mrflos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
relicanth has joined #sandstorm
mnutt has quit [Quit: mnutt]
rustyrazorblade has quit [Quit: rustyrazorblade]