That’s good to know ! I just bought my license. I’ll report back if the issue persist. Thanks !
Adding on to this as well, I have am having this same issue. Seems to always occur on boot of my Duplicacy docker container. I’m specifying the hostname directly and confirmed through the logs that it is seeing the correct hostname. The only solution is for me to delete the licenses.json
and machine-id
files and then restart the container again and let it recreate those files. I’ve noted that the machine-id
it creates each time is different, so I suspect that is probably the issue but am not sure of how to confirm off the top of my head without knowing how exactly it creates the data within the machine-id
file.
Given that I’m still evaluating Duplicacy, I’m not wanting to purchase a license just yet, in case that is a solution, but I’m also worried that the issue would persist after the fact given that it seems like the host is being recognized as a different machine each time the container is started.
If there is any information I can provide or tests I can do to help diagnose this, feel free to let me know or send me a message. Thus far I’m very happy with the software and, pending letting my data backup and performing tests with pruning, checking, and restoring, I’m going to be purchasing a license.
Depending on what container are you using, it’s managed by dbus.
machine-id is supposed to be unique machine identifier. Don’t delete it, it shall be persisted in the config folder. If it is missing or corrupted it gets created with dbus-uuidgen
which is pretty much random data for most intents and purposes.
Oddly, the only way that I can get the container (I am using yours, coincidentally) to actually function again is by deleting both the licenses.json
and the machine-id
. If I just delete the former, it will recreate it but continue to insist that I do not have a valid license. I looked into the code earlier and noted that it created the config/machine-id
and then symlinked it to /var/lib/dbus/machine-id
. I need to do some digging later and see if the value of /var/lib/dbus/machine-id
is consistent across container reboots or if it is changing somehow, perhaps the symlink breaking.
I don’t know details but this is a very good observation and likely means it’s a duplicacy licensing issue.
When you delete machine ID and the new one is generated duplicacy thinks its running on an entirely new machine and does somethign differently: e.g. requests a completely new licenses as opposed to renewing the current one.
Btw are you seeing this issue with paid or trial license? The trial behaves differently according to gchen comments above
Trial license. As noted, just started evaluating Duplicacy and want to verify it will work for my use case prior to grabbing up a license. Past this one issue it’s worked great and incredibly quick, much more so than all the other various options.
In an update that will probably surprise absolutely nobody, I finished up my backup and restarted the container with the intent of testing the above scenarios and…it’s continuing to work perfectly fine If the problem persists I will update. I made a note of the machine id I had prior in case it changes.
I rebooted my machine today and the issue has occurred again. According to the trial popup, I still have 17 days remaining on my trial, however I cannot resume a backup that was ongoing due to it stating my license is invalid or expired.
- I’ve confirmed that
/var/lib/dbus/machine-id
is still symlinked to/config/machine-id
- I’ve confirmed that both the above still have the original creation/modification date from Jan 20
- I’ve confirmed that the
licenses.json
still has an original creation/modification date of Jan 20
One thing I will note is that, within duplicacy.json
, computers
lists the only entry with a name of localhost
while the actual webui shows the hostname I am passing to the container. In fact, the passed in hostname for the container is not reflected in the duplicacy.json
file anywhere. If I run the hostname
command within the container I get the properly expected hostname. This makes me wonder, perhaps, if there is an issue where duplicacy is using an incorrect hostname or reference to localhost
, then seeing that the requests are coming from the defined hostname, and thus thinking these are separate computers.
This would potentially be backed up by the fact that, looking on the dashboard, I see the previous actions I have manually performed being reflected as localhost-*
, (localhost-1
, localhost-2
, …, localhost-8
)
I’m going to keep this state for a bit to try and provide any other information I can upon request before doing the needed steps to continue with my backup testing.
Ironically, because (from what I read so far) trial license handling is different, addressing issues with it won’t affect your future use of the software with an actual license. It’s essentially trial of a wrong thing in this case — and needs to be fixed. (Even at the expense of requiring trial users to create an account. Otherwise users will give up seeing like even trial version does not work reliably)
In your case, not to fight windmills with trial licensing, it may be more productive to trial an actual code path that will be used if you decide license. If @gchen agrees you can buy a license with an option to get a refund in a month. Or maybe @gchen can generate you a paid license code with expiration date in a month in the future. Either options will give you one month trial or actual app behavior. Just my 2c.
I’m good with any of the options. I’ll hold in the “broken” state for now, pending input from @gchen in case he needs some more information from this state to help any sort of debugging.
I just PM’ed you a trial license code. With a code the license should stay valid after a reboot/restart.
For what its worth, since buying a license I never had the issue again.
so far, same here. Things are working smoothly
Same as well. Thanks for the trial license, @gchen. Since that point I’ve had no issues, and will be upgrading to a full license at the end of the trial.
Apparently, I’m another victim of license loss. See here:
https://forum.duplicacy.com/t/duplicacy-web-docker-fails/6099
I bought the license for the year in January and now its says the same thing, invalid license.
You can re-activate the license by clicking the link that says invalid license
and enter the license active code.
I am seeing the “The license may have been issued to a different computer” message in the duplicacy_web.log as well. I checked duplicacy.json and I too see:
"computers": [
{
"name": "localhost",
"repositories": [
{
I have set hostname in my docker-compose.yml file:
duplicacy-web:
image: saspus/duplicacy-web:mini
container_name: duplicacy-web
hostname: duplicacy01
This hostname matches the license page and the hostname I set inside the container:
❯ docker exec -it duplicacy-web /bin/bash
bash-5.1# hostname
duplicacy01
bash-5.1#
licenses.json looks like it is correctly issued to duplicacy01 as well
I have deleted the licenses.json and machine-id files and have retrieved a new license for the same machine name. Will see how it goes.
Click the license type (which should say Personal
) next to the host name on the backup page, and enter your license code. I believe your machine id recently changed which made the web GUI think it was running on a different computer.