Page 1 of 1

Synchronization to remote repository

Published: June 18, 2020 - 1:39 PM
by dsp
Good morning,
I wanted to set up synchronization to a secondary repository; it works, but in the console my repository still shows as NO SYNC, even though the agent for my secondary repository correctly retrieves the packages

secondary repository.png
secondary repository.png (5.89 KB) Viewed 3609 times
I don't know if this is related, but every time a package synchronizes, I get this type of error

Jun 18 13:16:38 wapt57 waptservice[25991]: errors: {u'wapt/icons/5ea1b401-dae2-494d-bb36-bdd93fb60691.png': "unsupported operand type(s) for -: 'str' and 'float'", u'wapt/Packages': "unsupported operand type(s) for -: 'str' and 'float'", u'wapt/ge-microsoft-edge_83.0.478.54-1_x64_fb255b2d8a131b3544cea99787fec5d8.wapt': "unsupported operand type(s) for -: 'str' and 'float'"}
Jun 18 13:16:38 wapt57 waptservice[25991]: success: False


I should point out that both the primary and secondary repositories are on Linux systems with fresh installs of version 1.8.2

Re: Synchronization to remote repository

Published: June 18, 2020 - 3:53 PM
by eblaudy
Hello again,
I found the problem while waiting for a new build; you can fix it manually on the secondary repository.
The following line needs to be replaced /opt/wapt/waptenterprise/repositories.py :

Code: Select all

print('Downloaded in %f seconds.\n' % time.time()-self.start_time_download)
By :

Code: Select all

print('Downloaded in %f seconds.\n' % (time.time()-self.start_time_download))
Can you then tell me if the status is correct in the console?

Re: Synchronization to remote repository

Published: June 18, 2020 - 4:08 PM
by dsp
Hello again,
I no longer have the error message in the logs, but the status remains unchanged.