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