Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562840 - www-servers/varnish-3.0.7 - varnishd.service - At least one of -d, -b, -f, -M, -S or -T must be specified
Summary: www-servers/varnish-3.0.7 - varnishd.service - At least one of -d, -b, -f, -M...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-11 15:34 UTC by dE
Modified: 2016-07-10 18:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2015-10-11 15:34:16 UTC
varnishd never starts using systemctl unit --

systemctl status varnishd
● varnishd.service - Varnish is a high-performance HTTP accelerator
   Loaded: loaded (/usr/lib64/systemd/system/varnishd.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2015-10-11 20:59:39 UTC; 3s ago
  Process: 4452 ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -P /var/run/varnishd.pid (code=exited, status=1/FAILURE)

Oct 11 20:59:39 desktopminer systemd[1]: varnishd.service: control process exited, code=exited status=1
Oct 11 20:59:39 desktopminer systemd[1]: Failed to start Varnish is a high-performance HTTP accelerator.
Oct 11 20:59:39 desktopminer systemd[1]: Unit varnishd.service entered failed state.
Oct 11 20:59:39 desktopminer systemd[1]: varnishd.service failed.
Oct 11 20:59:39 desktopminer varnishd[4452]: -V                           # version
Oct 11 20:59:39 desktopminer varnishd[4452]: -w int[,int[,int]]           # Number of worker threads
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -w <fixed_count>
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -w min,max
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -w min,max,timeout [default: -w2,500,300]
Oct 11 20:59:39 desktopminer varnishd[4452]: -u user                      # Priviledge separation user id

-----------------------------
Oct 11 20:59:38 desktopminer systemd[1]: Starting Varnish is a high-performance HTTP accelerator...
Oct 11 20:59:39 desktopminer varnishd[4452]: At least one of -d, -b, -f, -M, -S or -T must be specified
Oct 11 20:59:39 desktopminer varnishd[4452]: usage: varnishd [options]
Oct 11 20:59:39 desktopminer varnishd[4452]: -a address:port              # HTTP listen address and port
Oct 11 20:59:39 desktopminer varnishd[4452]: -b address:port              # backend address and port
Oct 11 20:59:39 desktopminer varnishd[4452]: #    -b <hostname_or_IP>
Oct 11 20:59:39 desktopminer varnishd[4452]: #    -b '<hostname_or_IP>:<port_or_service>'
Oct 11 20:59:39 desktopminer varnishd[4452]: -C                           # print VCL code compiled to C language
Oct 11 20:59:39 desktopminer varnishd[4452]: -d                           # debug
Oct 11 20:59:39 desktopminer varnishd[4452]: -f file                      # VCL script
Oct 11 20:59:39 desktopminer varnishd[4452]: -F                           # Run in foreground
Oct 11 20:59:39 desktopminer varnishd[4452]: -h kind[,hashoptions]        # Hash specification
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -h critbit [default]
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -h simple_list
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -h classic
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -h classic,<buckets>
Oct 11 20:59:39 desktopminer varnishd[4452]: -i identity                  # Identity of varnish instance
Oct 11 20:59:39 desktopminer varnishd[4452]: -l shl,free,fill             # Size of shared memory file
Oct 11 20:59:39 desktopminer varnishd[4452]: #   shl: space for SHL records [80m]
Oct 11 20:59:39 desktopminer varnishd[4452]: #   free: space for other allocations [1m]
Oct 11 20:59:39 desktopminer varnishd[4452]: #   fill: prefill new file [+]
Oct 11 20:59:39 desktopminer varnishd[4452]: -M address:port              # Reverse CLI destination.
Oct 11 20:59:39 desktopminer varnishd[4452]: -n dir                       # varnishd working directory
Oct 11 20:59:39 desktopminer varnishd[4452]: -P file                      # PID file
Oct 11 20:59:39 desktopminer varnishd[4452]: -p param=value               # set parameter
Oct 11 20:59:39 desktopminer varnishd[4452]: -s kind[,storageoptions]     # Backend storage specification
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -s malloc
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -s file  [default: use /tmp]
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -s file,<dir_or_file>
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -s file,<dir_or_file>,<size>
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -s persist{experimenta}
Oct 11 20:59:39 desktopminer varnishd[4452]: #   -s file,<dir_or_file>,<size>,<granularity>
Oct 11 20:59:39 desktopminer varnishd[4452]: -t                           # Default TTL
Oct 11 20:59:39 desktopminer varnishd[4452]: -S secret-file               # Secret file for CLI authentication
Oct 11 20:59:39 desktopminer varnishd[4452]: -T address:port              # Telnet listen address and port
Oct 11 20:59:39 desktopminer systemd[1]: varnishd.service: control process exited, code=exited status=1
Oct 11 20:59:39 desktopminer systemd[1]: Failed to start Varnish is a high-performance HTTP accelerator.

Reproducible: Always




Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.20-r2, 3.17.1-gentoo x86_64)
=================================================================
System uname: Linux-3.17.1-gentoo-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8117864 total,   2724704 free
KiB Swap:   18874364 total,  18874344 free
Timestamp of repository gentoo: Sat, 12 Sep 2015 03:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.17-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

my-tree
    location: /home/de/dev-tree
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n --complete-graph --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
USE="X a52 a53 aac aalib acc acpi adns alsa amd64 amr atm audiofile branding bzip2 cdda cdr cli consolekit cracklib css custom-cflags custom-optimization dbus dbx declarative dga dirac dri dts dv dvd dvdr emboss encode enscript exif faad ffmpeg firefox flac fortran gdu gif glamor glut gmp gsm gstreamer gzip iconv imlib ipc jit jpeg jpeg2k kde ladspa lame lcms libedit libnotify libsamplerate libwww lzma lzo mad matroska matrox mikmod mime minimal mmap mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack networkmanager nntp nocd nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp optimization orc osc pam pango pdf phonon pie plasma png policykit posix ppds pppd qt3support qt4 quicktime raw readline schroedinger seccomp sharedmem shorten smp sndfile sockets socks5 speex spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3 startup-notification strong-optimization svg symlink sysfs systemd taglib theora threads tiff toolame truetype twolame udev udisks unicode unixd upower usb vaapi vcd vhosts vorbis wavpack win32codecs wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xpm xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="unixd authn_core authz_core cgi cgid alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="ssse3 sse3 sse4_1 sse4_2 mmx sse avx mmx sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Anthony Basile gentoo-dev 2016-02-12 01:19:17 UTC
dE, this is an older bug which I never followed through on because i'm thinking of dropping 3.0.7 from the tree.  can you move to 4.0.3 or above?
Comment 2 Radoslav Stefanov 2016-02-20 13:41:01 UTC
Hey guys,

Is it possible to fix or go around this bug? I migrated varnish nodes to Gentoo boxes and need to be able to use reload function. My app is stuck with Varnish 3 for another year or so...
Comment 3 Anthony Basile gentoo-dev 2016-02-20 13:48:33 UTC
(In reply to Radoslav Stefanov from comment #2)
> Hey guys,
> 
> Is it possible to fix or go around this bug? I migrated varnish nodes to
> Gentoo boxes and need to be able to use reload function. My app is stuck
> with Varnish 3 for another year or so...

I don't use systemd and need a patch to fix this.
Comment 4 dE 2016-02-22 10:20:21 UTC
I'll do it when I get the time.
Comment 5 Anthony Basile gentoo-dev 2016-07-10 18:09:04 UTC
varnish 3.x has been EOL since 2015-03-23, sorry but its time to punt it.  See

http://www.varnish-cache.org/releases/index.html