Hello/Hi/Greetings,
I'm having a heck of a time to get the script to work. I have a Dell Server for personal use that runs TrueNAS Scale 23.10 using TrueCharts as my charts to install programs.
https://truecharts.org/charts/stable/pi … tion_notes
I found out after trying to run the command inside the container shell of a error that was addressed before under this forum:
https://piwigo.org/forum/viewtopic.php?id=31297
The problem being is that TrueCharts uses Linuxserver.io built containers as a "template" so they are telling me the issue needs to be fixed upstream by LSIO. So I contacted them and informed them of the issue and was told to:
apk add perl-libwww
I then got permission denied so I:
chmod +x remote_sync.pl
then the error I got was
root@piwigo-7d7cbb5895-kgn77:/app/www/public/tools# ./remote_sync.pl
Use of uninitialized value $opt{"base_url"} in concatenation (.) or string at ./remote_sync.pl line 37.
Use of uninitialized value $opt{"base_url"} in concatenation (.) or string at ./remote_sync.pl line 54.
$VAR1 = bless( {
'_rc' => 400,
'_max_body_size' => undef,
'_content' => '400 URL must be absolute
',
'_msg' => 'URL must be absolute',
'_headers' => bless( {
'::std_case' => {
'client-date' => 'Client-Date',
'client-warning' => 'Client-Warning'
},
'client-date' => 'Thu, 26 Oct 2023 23:13:31 GMT',
'content-type' => 'text/plain',
'client-warning' => 'Internal response'
}, 'HTTP::Headers' ),
'_request' => bless( {
'_headers' => bless( {
'content-type' => 'application/x-www-form-urlencoded',
'content-length' => 108
}, 'HTTP::Headers' ),
'_content' => 'simulate=0&submit=1&sync=files&sync_meta=1&privacy_level=0&display_info=1&add_to_caddie=1&subcats-included=1',
'_method' => 'POST',
'_uri' => bless( do{\(my $o = '/admin.php?page=site_update&site=1')}, 'URI::_generic' ),
'_max_body_size' => undef
}, 'HTTP::Request' )
}, 'HTTP::Response' );
root@piwigo-7d7cbb5895-kgn77:/app/www/public/tools#
This is the point that I'm stuck at because LSIO the maker of the container for your app is telling me they don't support, TrueCharts is telling me they don't support and all I'm trying to do is make use of the script that you have provided to auto update the photos to the database. Any help you could provide would be appreciated trying to get this to work as TrueCharts and LSIO do not want to communicate with each other.
Offline
You invoked the script without passing the necessary parameters, so no wonder it complained. Take a look at its first comment line for how to invoke it.
Offline
Hello,
I had a problem with the script: o longer working.
Being not familiar with perl I spent quite some time to find out what was happening.
It was: return code 401 on pwg.session.login
I changed :
< $ua->default_headers->authorization_basic(
< $opt{username},
< $opt{password}
< );
---
> $ua->credentials( 'album.example.nl:443', 'ALBUM', $opt{username} => $opt{password});
Ik works for me
Rob Visser
Offline
erAck wrote:
You invoked the script without passing the necessary parameters, so no wonder it complained. Take a look at its first comment line for how to invoke it.
Hi there, thanks for sharing this.
Would you mind pasting the whole script? obviously without your credentials =)
I am surprised there is no more modern solutions to this, API-keys etc, this is wild
Last edited by jessica1998 (2026-01-19 04:52:58)
Offline
It is in your Piwigo installation, tools/remote_sync.pl
Offline
erAck wrote:
It is in your Piwigo installation, tools/remote_sync.pl
I am aware of that, however reports on Github mentioning it doesn't work with the newest version
Offline