Donmai

Danbooru Install Issues

Posted under General

After googling for 2 days straight I've got nothing younger than 2 years and none of then seem to work.

I'm no noob when it comes to system administration but for the life of me and the whole 2 days I cannot get Danbooru to work for me.

I've used the source INSTALL.debian but errors happen some towards the end and then things like "bundle command not found" even after installing and running the entire bundle exec end lines I try the site and get a "Something Broke".

Basically what I need to know is the basics as I'm gonna reinstall the server with Debian 7.0. What dependencies do I need to meet, any real spot that I need to edit within danbooru.

Any help is appreciated and I'm sorry if I come off as an ass, I've been tryin to do this one thing for the past 3 days and I just want to figure this out. And I mean it can't be this hard to install as there are a few danbooru sites out there. I just feel dumb for not being able to figure it out.

Toks said:

I don't know if these will help you but here are a couple recent discussions about problems with the INSTALL.debian:

https://github.com/r888888888/danbooru/issues/2242
https://github.com/r888888888/danbooru/issues/2256

Yeah I've looked at them, my issue is during the setup I get this error

bundle exec cap development deploy:setup

failed: "env PATH=$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH sh -c 'mkdir /var/www/danbooru2/shared/data/preview'" on localhost

So obviously I'm missing something here, a dependency or something. Everything behind this point works fine though.

alright, I got it a bit farther. I guess the installer misses quite a bit of dependencies or something because I saw errors for Unicorn and it wasn't even installed.

Honestly through everything so far the install.debian script is very lacking on its own install script.

I'm going to keep trying but I honestly feel like I'm running into a brick wall.

The install script doesn't really have any error checking; it's just a sequence of bash commands. Are you sure it ran without any errors? "All done" message would show up regardless of any errors that occurred in the process. Anyway, install.sh just installs the basics; you are failing on capistrano deploy script: https://github.com/r888888888/danbooru/blob/master/config/deploy.rb , specifically on mkdir part, which is quite strange. That's a bit silly, but are you running "bundle exec" as "danbooru" user, and from "~/danbooru" dir?

1