Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Urbackup #5213

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

add Urbackup #5213

wants to merge 17 commits into from

Conversation

hgy59
Copy link
Contributor

@hgy59 hgy59 commented Apr 19, 2022

Description

This is a followup of #3983 as it was closed by @josef109

Closes #3819

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Bug fix
  • New Package
  • Package update
  • Includes small framework changes
  • This change requires a documentation update (e.g. Wiki)

Status

  • urbackup-server runs on DSM 7 (tested with DS218+ apollolake/x64, DSM 7.0.1)
  • urbackup-server runs on DSM 6 (tested with DSM 6.2.4 on DS115j armada370/armv7, and DS218 aarch64)
  • Fixed: ubrackup-server fails to generate certificates on aarch64 (seems a problem with cross/cryptopp)

@hgy59
Copy link
Contributor Author

hgy59 commented Apr 19, 2022

@adn77 you are probably interested in this PR, as you tried already to get it working on DSM 7 (adn77@899720a)

mk/spksrc.copy.mk Outdated Show resolved Hide resolved
@hgy59
Copy link
Contributor Author

hgy59 commented Apr 20, 2022

My personal build successfully installed on DS-218+ with DSM 7.0.1, web gui is working 😄

EDIT: next build will work on DSM 7, as c495514 fixes the INSTALL_PREFIX_VAR.

install log:

Wed Apr 20 17:42:50 CEST 2022
Begin service_prestart
End service_prestart
Starting urbackup command /volume1/@appstore/urbackup/bin/urbackupsrv run --daemon --user sc-urbackup --http-port 55414 --pidfile /volume1/@appdata/urbackup/urbackup.pid --loglevel info --logfile /volume1/@appdata/urbackup/urbackup.log
Raising maximum file descriptor to 65535 failed. This may cause problems with many clients. (errno=1)
Raising nice-ceiling to 35 failed. (errno=1)
2022-04-20 17:42:50: Starting HTTP-Server on port 55414
2022-04-20 17:42:50: HTTP: Server started up successfully!
2022-04-20 17:42:50: Generating Server identity...
2022-04-20 17:42:50: Generating Server private/public ECDSA key...
2022-04-20 17:42:50: Calculating public key...
2022-04-20 17:42:51: Generating Server private/public DSA key...
2022-04-20 17:42:51: Calculating public key...
2022-04-20 17:42:51: Generating Server token...
2022-04-20 17:42:51: WARNING: Upgrading...
2022-04-20 17:42:51: WARNING: Upgrading database to version 8
2022-04-20 17:42:51: WARNING: Upgrading database to version 9
2022-04-20 17:42:52: WARNING: Upgrading database to version 10
2022-04-20 17:42:52: WARNING: Upgrading database to version 11
2022-04-20 17:42:52: WARNING: Upgrading database to version 12
2022-04-20 17:42:52: WARNING: Upgrading database to version 13
2022-04-20 17:42:52: WARNING: Upgrading database to version 14
2022-04-20 17:42:52: WARNING: Upgrading database to version 15
2022-04-20 17:42:52: WARNING: Upgrading database to version 16
2022-04-20 17:42:53: WARNING: Upgrading database to version 17
2022-04-20 17:42:53: WARNING: Upgrading database to version 18
2022-04-20 17:42:53: WARNING: Upgrading database to version 19
2022-04-20 17:42:53: WARNING: Upgrading database to version 20
2022-04-20 17:42:53: WARNING: Upgrading database to version 21
2022-04-20 17:42:53: WARNING: Upgrading database to version 22
2022-04-20 17:42:53: WARNING: Upgrading database to version 23
2022-04-20 17:42:54: WARNING: Upgrading database to version 24
2022-04-20 17:42:54: WARNING: Upgrading database to version 25
2022-04-20 17:42:54: WARNING: Upgrading database to version 26
2022-04-20 17:42:54: WARNING: Upgrading database to version 27
2022-04-20 17:42:54: WARNING: Upgrading database to version 28
2022-04-20 17:42:55: WARNING: Upgrading database to version 29
2022-04-20 17:42:55: WARNING: Upgrading database to version 30
2022-04-20 17:42:55: WARNING: Upgrading database to version 31
2022-04-20 17:42:55: WARNING: Upgrading database to version 32
2022-04-20 17:42:55: WARNING: Upgrading database to version 33
2022-04-20 17:42:56: WARNING: Upgrading database to version 34
2022-04-20 17:42:56: WARNING: Upgrading database to version 35
2022-04-20 17:42:56: WARNING: Upgrading database to version 36
2022-04-20 17:42:57: WARNING: Upgrading database to version 37
2022-04-20 17:42:57: WARNING: Upgrading database to version 38
2022-04-20 17:42:57: WARNING: Upgrading database to version 39
2022-04-20 17:42:57: WARNING: Upgrading database to version 40
2022-04-20 17:42:57: WARNING: Upgrading database to version 41
2022-04-20 17:42:58: WARNING: Upgrading database to version 42
2022-04-20 17:42:58: WARNING: Upgrading database to version 43
2022-04-20 17:42:58: WARNING: Upgrading database to version 44
2022-04-20 17:42:58: WARNING: Upgrading database to version 45
2022-04-20 17:42:59: WARNING: Upgrading database to version 46
2022-04-20 17:42:59: WARNING: Upgrading database to version 48
2022-04-20 17:42:59: WARNING: Upgrading database to version 49
2022-04-20 17:42:59: WARNING: Upgrading database to version 50
2022-04-20 17:42:59: WARNING: Upgrading database to version 51
2022-04-20 17:42:59: WARNING: Upgrading database to version 52
2022-04-20 17:43:00: WARNING: Upgrading database to version 53
2022-04-20 17:43:00: WARNING: Upgrading database to version 54
2022-04-20 17:43:00: WARNING: Upgrading database to version 55
2022-04-20 17:43:00: WARNING: Upgrading database to version 56
2022-04-20 17:43:00: WARNING: Upgrading database to version 57
2022-04-20 17:43:00: WARNING: Upgrading database to version 58
2022-04-20 17:43:01: WARNING: Upgrading database to version 59
2022-04-20 17:43:01: WARNING: Done.
2022-04-20 17:43:01: Deleting database journal...
2022-04-20 17:43:01: Copying/reflinking database...
2022-04-20 17:43:01: WARNING: Creating file entry index. This might take a while...
2022-04-20 17:43:01: Getting number of files...
2022-04-20 17:43:01: Dropping index...
2022-04-20 17:43:01: Starting creating files index...
2022-04-20 17:43:01: Creating backupid index...
2022-04-20 17:43:01: Syncing...
2022-04-20 17:43:01: Renaming back result...
2022-04-20 17:43:01: SQLite: recovered 1 frames from WAL file /volume1/@appdata/urbackup/urbackup/backup_server.db-wal code: 283
2022-04-20 17:43:01: SQLite: recovered 2 frames from WAL file /volume1/@appdata/urbackup/urbackup/backup_server_settings.db-wal code: 283
2022-04-20 17:43:01: Started UrBackup...
2022-04-20 17:43:01: Removing temporary files...
2022-04-20 17:43:01: ERROR: No permission to access "/volume1/urbackup2/urbackup_tmp_files"
2022-04-20 17:43:01: Recreating temporary folder...
2022-04-20 17:43:01: Image mounting disabled: Backupfolder not set
2022-04-20 17:43:01: Backup destination cannot handle subvolumes and snapshots. Snapshots disabled.
2022-04-20 17:43:01: Broadcasting on ipv4 interface ovs_eth0 addr 192.168.0.227
2022-04-20 17:43:01: Broadcasting on ipv4 interface docker0 addr 172.17.0.1
2022-04-20 17:43:02: UrBackup Server start up complete.
2022-04-20 17:43:02: Server started up successfully!
2022-04-20 17:43:02: Looking for old Sessions... 0 sessions
2022-04-20 17:43:03: Downloading version file...
2022-04-20 17:43:03: Downloading version file...
2022-04-20 17:43:03: Downloading signature...
2022-04-20 17:43:03: Getting update file URL...
2022-04-20 17:43:03: Downloading update file...
2022-04-20 17:43:07: Successfully downloaded update file.
2022-04-20 17:43:07: Downloading server version info...
2022-04-20 17:43:07: Downloading dataplan database...

@hgy59
Copy link
Contributor Author

hgy59 commented Apr 20, 2022

A question to @josef109, @adn77 or any other urbackup user:

Is it useful to combine urbackup-server and urbackup-client into one package - or shall I create two dedicated packages, as you either need the server or the client on one diskstation but not both?

@hgy59
Copy link
Contributor Author

hgy59 commented Apr 20, 2022

@th0ma7 c495514 is another fix for #5163

without this fix, I got the error below in urbackup.log on DSM 7

... ERROR: Cannot set working directory to directory /var/packages/urbackup/target/../var

@th0ma7
Copy link
Contributor

th0ma7 commented Apr 20, 2022

@th0ma7 c495514 is another fix for #5163

without this fix, I got the error below in urbackup.log on DSM 7

... ERROR: Cannot set working directory to directory /var/packages/urbackup/target/../var

Quite odd but indeed interesting fix, good catch again! May I suggest you create a disctinct PR as bug-fix so we can follow-up on it?

@adn77
Copy link

adn77 commented Apr 20, 2022

This might not be the right place to discuss this...
The reason I moved to the docker version was that it mostly works out of the box. I had great troubles getting the native server to work as non-root. Also Urbackup has its biggest benefits when using BTRFS and snapshots. https://forums.urbackup.org/t/synology-package/1501/28

I totally recognize the hard work that went into this PR ;)

@hgy59
Copy link
Contributor Author

hgy59 commented Aug 29, 2022

I moved to the docker version

Models without x64 arch do not support docker. Those need such a package.

Currently builds for aarch64 fail at startup when creating public/private key files with cross/cryptopp library.

@hgy59 hgy59 changed the title [WIP] add Urbackup add Urbackup Aug 29, 2022
@hgy59
Copy link
Contributor Author

hgy59 commented Aug 29, 2022

@ndroftheline when you still interested in urbackup you are invited to test this package.
To download packages built by github, navigate to: checks - build - artifacts.

@hgy59
Copy link
Contributor Author

hgy59 commented Aug 29, 2022

@josef109 are you still interested in this package and want to stay the maintainer?

@SonGokuSSJ
Copy link

SonGokuSSJ commented Apr 3, 2023

Is there a readme or how to, as I am not familiar with github actions, how to get the newest package? Or should I just try the last one from josef109 directly as I just saw that he released a new version (2.5.30) about 3 weeks ago as the previous version (2.5.27) was not working for my DS1817, which made me use his predecessor (2.4.15).

Edith says: OK, just tested the new Version from josef109 and that refuses to start like his other 2.5 release.

@hgy59 hgy59 added the new-package PR/WIP for a new package label Apr 7, 2023
josef109 and others added 8 commits October 2, 2023 20:12
- use package version as SPK_VERS
- use github user name as maintainer
- add app/config
- add admin url and changelog
- use empty PLIST for spk
- remove obsolete icons
- remove empty uifile (TODO add with content)
- todo: add pkgconfig
- update urbackup to v2.4.13
- replace embedded-cryptopp by cross/cryptopp to fix cross compilation for ARMV7 and ARMV5
- declare unsupported archs
- update license
- remove obsolete targets
- replace embedded-zstd by cross/zstd
- rename cross/urbackup to cross/urbackup-server
- add cross/urbackup-client
- provide urbackup-server and urbackup-client with spk/urbackup
- remove obsolete shared folder creation in service-setup.sh
- adjust wizard files
- update urbackup-server to v2.4.15
- update urbackup-client to v2.4.11
- create link from sbin to bin as for DSM 7 compatibility
- disable optimization to avoid endless loop in CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA256>::PublicKey.MakePublicKey()
- update urbackup-server to v2.5.31
- update urbackup-client to v2.5.24
- update cryptopp to v8.9.0
- update to use cross/openssl3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package PR/WIP for a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package Request] UrBackup
5 participants