GithubHelp home page GithubHelp logo

Comments (11)

sentriz avatar sentriz commented on June 1, 2024

Hmm interesting. Is this the first time you're using gonic? And could you also post the full gonic logs please? (Just for line numbers etc)

from gonic.

tordenflesk avatar tordenflesk commented on June 1, 2024

That's all the log says in Portainer, repeatedly.
I'm unable to connect to the console in Portainer because the container is constantly restarting.
I've used Gonic just fine before, but decided to start a new one, so there is no old database.
I did try restoring my old database file just to try with no change.

from gonic.

sentriz avatar sentriz commented on June 1, 2024

Could it be a permissions issue on your host perhaps? And port may need to be ":8080:" instead of "8080"

from gonic.

tordenflesk avatar tordenflesk commented on June 1, 2024
ls -la /sharedfolders/DOCKER_CONFIG/GONIC_Music/
total 8
drwxrwsrwx  2 root users 4096 Mar 13 02:12 .
drwxrwsrwx 19 root users 4096 Mar 13 02:12 ..

Doesn't look like it to me.

from gonic.

sentriz avatar sentriz commented on June 1, 2024

can you try change the list addr env var to ":8080" instead? i dont think gonic will start with just "8080"

from gonic.

tordenflesk avatar tordenflesk commented on June 1, 2024

I've tried both:
https://i.imgur.com/qHI0p8u.png

from gonic.

sentriz avatar sentriz commented on June 1, 2024

hmm okay. could you try get the logs from docker instead of portainer? docker logs --tail 200 -f <gonic_id> should show everything, even if it's restarting

from gonic.

tordenflesk avatar tordenflesk commented on June 1, 2024

That gives the same output:
2020/03/13 21:21:02 error opening database: with gorm: unable to open database file

from gonic.

sentriz avatar sentriz commented on June 1, 2024

ohh! i think i see it now. try change GONIC_DB_PATH to /data/gonic.db

these are the defaults defined in the dockerfile:

ENV GONIC_DB_PATH /data/gonic.db
ENV GONIC_LISTEN_ADDR :80
ENV GONIC_MUSIC_PATH /music
ENV GONIC_CACHE_PATH /cache

so it looks like gonic was trying to open a directory as a db

from gonic.

tordenflesk avatar tordenflesk commented on June 1, 2024

from gonic.

sentriz avatar sentriz commented on June 1, 2024

cool :) please reopen if there's anything else

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.