Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732394 - net-misc/x2goserver does not create db on install
Summary: net-misc/x2goserver does not create db on install
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
Depends on:
Reported: 2020-07-13 02:01 UTC by R030t1
Modified: 2020-07-19 15:28 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description R030t1 2020-07-13 02:01:04 UTC

Solved with `x2godbadmin --createdb`. Feels like this should be run automatically, but perhaps there is deeper issue.

Reproducible: Always

Steps to Reproduce:
1. Install x2goserver on machine.
2. Attempt to connect with x2goclient.
Actual Results:  
Long error message, see SO link. Potentially related bug on another project:

Expected Results:  
Connect to machine graphically.
Comment 1 Ionen Wolkens gentoo-dev 2020-07-13 15:26:40 UTC
Is the ebuild log warning not enough? Given there's different setups depending on USE and no cleanups, having the user do it and be aware of it may be preferable (not that it's up to me).

>    if use sqlite ; then
>        if [[ -f "${EROOT}"/var/lib/x2go/x2go_sessions ]] ; then
>            elog "To use sqlite and update your existing database, run:"
>            elog " # x2godbadmin --updatedb"
>        else
>            elog "To use sqlite and create the initial database, run:"
>            elog " # x2godbadmin --createdb"
>        fi
>    fi
>    if use postgres ; then
>        elog "To use a PostgreSQL database, more information is availabe here:"
>        elog ""
>    fi
Comment 2 R030t1 2020-07-13 16:05:54 UTC
If it got spit out in warning I admit I missed it. Perhaps this bug should be taken as a suggestion to perform these actions automatically. I can't see a reason not to.