Giter Club home page Giter Club logo

Comments (7)

sentriz avatar sentriz commented on May 26, 2024

hi! thanks for the report. may I ask what your $ go version is?

from gonic.

IUCCA avatar IUCCA commented on May 26, 2024

My go version is go1.10.4 linux/amd64. Should I install a newer Version from the go PPA?

from gonic.

sentriz avatar sentriz commented on May 26, 2024

ah okay. as of a few days ago, we added subsonic jukebox support which requires a more recent go version. however, if you don't fancy upgrating or use jukebox mode, you can install the most recent gonic without jukebox:

cd $(mktemp -d); go mod init tmp; go get go.senan.xyz/gonic/cmd/[email protected]

in the meantime, we'll be working on making gonic "go getable" for older versions of go

from gonic.

sentriz avatar sentriz commented on May 26, 2024

also please do let me know if it works for you

from gonic.

IUCCA avatar IUCCA commented on May 26, 2024

I installed version 1.14.2, now it runs. For this I had to add the following PPA:
sudo add-apt-repository ppa:longsleep/golang-backports

I also configured systemd so that it now runs as a service in the background. For this I moved $HOME/go to /var/gonic/ and created the following /etc/systemd/system/gonic.service:

[Unit]
Description=Gonic service
ConditionPathExists=/var/gonic/bin/gonic
After=network.target

[Service]
Type=simple
User=gonic
Group=gonic
LimitNOFILE=1024

Restart=on-failure
RestartSec=10
startLimitIntervalSec=60

WorkingDirectory=/var/gonic/
ExecStart=/var/gonic/bin/gonic -music-path /mnt/storage/media/Music/ -listen-addr 127.0.0.1:4747 --proxy-prefix /gonic -db-path /var/gonic/gonic.db -config-path /var/gonic/.config

# make sure log directory exists and owned by syslog
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /var/log/gonic
ExecStartPre=/bin/chown syslog:adm /var/log/gonic
ExecStartPre=/bin/chmod 755 /var/log/gonic
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sleepservice

[Install]
WantedBy=multi-user.target

from gonic.

sentriz avatar sentriz commented on May 26, 2024

thanks for the update and the script :) i might add it to a wiki in future if you're ok with it

from gonic.

IUCCA avatar IUCCA commented on May 26, 2024

I'm writing the instructions, coming up in the next few days

from gonic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.