Package Details: dbgate-bin 6.1.0-1

Git Clone URL: https://aur.archlinux.org/dbgate-bin.git (read-only, click to copy)
Package Base: dbgate-bin
Description: Database manager for MySQL, PostgreSQL, SQL Server, MongoDB, SQLite and others.(Prebuilt version.Use system-wide electron)
Upstream URL: https://dbgate.org/
Keywords: database-gui database-manager electron mongodb mysql postgresql sql sql-server sqlite
Licenses: MIT
Conflicts: dbgate
Provides: dbgate
Submitter: aulonsal
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 8
Popularity: 0.95
First Submitted: 2021-05-09 13:36 (UTC)
Last Updated: 2024-12-19 02:39 (UTC)

Latest Comments

petris commented on 2024-05-08 11:15 (UTC)

I noticed the change to the dbgate.bin script in the latest "fix errors" commit.

A section was added to read flags from a flags file, if it exists:

_FLAGS_FILE="${XDG_CONFIG_HOME}/@appname@-flags.conf"
declare -a flags
if [[ -f "${_FLAGS_FILE}" ]]; then
    mapfile -t < "${_FLAGS_FILE}"
fi
for line in "${MAPFILE[@]}"; do
    if [[ ! "${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "${line}" ]]; then
        flags+=("${line}")
    fi
done

And then I assume the intent was to use those flags, however _USER_FLAGS was used instead of flags:

if [[ "${EUID}" -ne 0 ]] || [[ "${ELECTRON_RUN_AS_NODE}" ]]; then
    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS}" "$@" || exit $?
else
    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS}" "$@" || exit $?
fi

So I'm guessing the declare -a flags and flags+= lines should be _USER_FLAGS instead.

Also, if you were intending these flags to be interpreted as separate command line arguments rather than just using the first line that was found, you need to change the usage of _USER_FLAGS to:

"${_USER_FLAGS[@]}"

Thus the last few lines should look like:

if [[ "${EUID}" -ne 0 ]] || [[ "${ELECTRON_RUN_AS_NODE}" ]]; then
    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS[@]}" "$@" || exit $?
else
    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS[@]}" "$@" || exit $?
fi

h8ray commented on 2024-03-29 11:31 (UTC) (edited on 2024-03-29 11:32 (UTC) by h8ray)

{"pid":36145,"caller":"databaseConnections","name":"main","level":50,"msg":"Error in database connection 323ce430-edbc-11ee-9d74-916d926c71bd, database main.db:
/usr/lib/dbgate/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node: cannot open shared object file: Permission denied","time":1711710471333}

There is wrong permissions for /usr/lib/dbgate/app.asar.unpacked:

~$ ll /usr/lib/dbgate/
-rw-r--r-- 1 root root  38M Mar 29 18:15 app.asar
drwx------ 4 root root 4.0K Mar 29 18:02 app.asar.unpacked

makoto2600 commented on 2024-03-21 12:18 (UTC)

Is it possible to use electron25 instead of electron25-bin as dependency ? electron25 is more widely used and more recent. Thx

Pauel commented on 2024-01-18 09:50 (UTC)

When installed from AUR the dbgate refuses to connect using SSH tunnel. Same version when run directly using AppImage works fine

andrew7 commented on 2022-09-27 03:32 (UTC)

Upgrade to 5.1.3 just change the following in PKGBUILD

pkgver=5.1.3

b2sums=('acb79c7320cb5ecf78b3e34929b5ca58db2aec9e9cdfb2c2272fea56180fba244df47164d54f9b76a14d91e2b40c9f6d01dcf7bfeb32f954dbd1ac301c8e8888'
'9cc4e2813f0978862b0960aa0c8d5b0bc75ae299f10b793ae152202f2e6f43127381c9153c6f51ca1bc83ab633d198dac5d817105a8e7b43e1aad401e0b6eb2f')

aulonsal commented on 2022-05-29 13:03 (UTC) (edited on 2023-01-28 21:36 (UTC) by aulonsal)

Powersource: I've now added a symlink to the binary in /usr/bin, which is consistent with the upstream deb package, thank you.

Powersource commented on 2022-05-27 12:40 (UTC)

Please add the dbgate binary to the PATH