Package Details: onedev 10.3.3-1

Git Clone URL: https://aur.archlinux.org/onedev.git (read-only, click to copy)
Package Base: onedev
Description: A self-hosted Git server with CI/CD and Kanban
Upstream URL: https://code.onedev.io/onedev/server
Licenses: MIT, custom:OneDev License
Submitter: bengcooper
Maintainer: bengcooper
Last Packager: bengcooper
Votes: 1
Popularity: 0.007567
First Submitted: 2023-04-27 21:01 (UTC)
Last Updated: 2024-03-18 14:30 (UTC)

Dependencies (4)

Required by (0)

Sources (4)

Latest Comments

snogard commented on 2024-02-01 16:22 (UTC)

sha256 of onedev-10.0.0.tar.gz is invalid

bengcooper commented on 2023-11-05 20:13 (UTC)

OneDev uses a slightly unconventional process to update itself which is documented here: https://docs.onedev.io/upgrade-guide/bare-metal

The installation in /opt/onedev-base is used as the seed/new version for the installation/upgrade. To create the 'real' installation or to update an existing installation you should run /opt/onedev-base/bin/upgrade.sh /opt/onedev as the onedev user. The systemd service etc will then work correctly.

I've included a helper script /usr/bin/onedev-upgrade in the AUR package which should have run automatically after installation to automate this. Running onedev-upgrade as root should seed the installation and set permissions correctly, and everything should work from there.

Apologies for any confusion - I haven't yet documented the above in the package or an ArchWiki page.

Thanks for the tip about the missing Java service config - I'm not an experienced Java dev so will look into it.

devqore commented on 2023-11-05 18:33 (UTC) (edited on 2023-11-05 18:35 (UTC) by devqore)

The package seems to be broken because:

  • systemd service ExecStart points to wrong path:

    ExecStart=/opt/onedev/bin/server.sh console

as a workaround, it can be created override file with the following content (systemctl edit onedev)

# /etc/systemd/system/onedev.service.d/override.conf
[Service]
ExecStart=
ExecStart=/opt/onedev-base/bin/server.sh console
  • directories seems to have wrong permissions and service cannot be started:

    server.sh[122529]: Unable to write test file. Make sure current user owns everything under '/opt/onedev-base'

as a workaround it can be used as root:

chown onedev:onedev /opt/onedev-base -R
  • pkg depends of java-runtime-headless=17 but it's not using this java in service configuration, and it uses java set as default (as a quick fix I've used archlinux-java set java-17-openjdk)