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

1.0 Beta Non-UI version Doesn't Work #21

Open
lovenemesis opened this issue Jan 14, 2022 · 0 comments · May be fixed by #23
Open

1.0 Beta Non-UI version Doesn't Work #21

lovenemesis opened this issue Jan 14, 2022 · 0 comments · May be fixed by #23

Comments

@lovenemesis
Copy link

Just tried using the Non-UI version to perform batch upload. But it simply doesn't work.

Below is the command line I use based on example:

java -jar ~/remotesync.jar -url https://example.piwigo.com -usr demouser -pwd demopassword -dir /absolute/folder/path -tsslc true -cs 500 -debug

Of course I use the real one in practice. Nevertheless, I only got below outputs:

15:13:29.680 [main] DEBUG o.piwigo.remotesync.api.AbstractMain - Debug is enabled
15:13:29.697 [main] DEBUG o.p.r.api.conf.ConfigurationUtil - no userConfig file found
15:13:29.700 [main] DEBUG org.piwigo.remotesync.api.Main - will start batch Remotesync

And the app exits itself with exit code of 0. Strange...

If using 0.14 and 0.13 version, the same command line without -debug flag will initialize the sync as expected:

14:22:22.742 [main] INFO  o.piwigo.remotesync.api.sync.SyncJob - User demouser will sync gallery https://example.piwigo.com with directory /absolute/folder/path
14:22:22.846 [main] INFO  o.p.r.api.sync.SyncDirectoryWalker - will create album for /absolute/folder/path/PhotoLibs/
14:22:22.847 [main] INFO  o.p.r.api.sync.ConnectedWalker - Connecting... 
14:22:29.002 [main] INFO  o.p.r.api.sync.ConnectedWalker - Connect successful
14:22:32.501 [main] INFO  o.p.r.api.sync.SyncDirectoryWalker - will upload image for /absolute/folder/path/PhotoLibs/Photo1.jpg in album with id 1745
...

The test is done on a Debian Buster ARM32 setup with OpenJDK:

$ java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-post-Debian-1deb10u1)
OpenJDK Server VM (build 11.0.13+8-post-Debian-1deb10u1, mixed mode)

I also tried the this non-ui version on a laptop with Fedora 35:

$ java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment 18.9 (build 11.0.13+8)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)

Same result.

Surprisingly, the 1.0-beta UI version works on the same laptop, though it seems to use CPU very hard.

Some my folder names are in Chinese, which only seems to work with 1.0-beta version. Hence I would like to see 1.0-beta non-ui works as its ui counterpart and its predecessors.

Thanks,

@mingan666 mingan666 linked a pull request Dec 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant