Updating languages on offline server? TRANSLATIONS_FETCH_REQUEST_FAILED

breb

Joined: 2014-04-08
Posts: 3
Posted: Wed, 2014-04-09 07:13

Hi folks,

I'm enjoying the setup of the wonderful gallery3 project at the moment. So far everything runs smoothly, except for switching languages. Our server is running in an internal network and is not connected to the internet. So, when I switch the language in Admin > Languages, Gallery3 tries to fetch most recent translations from http://galleryproject.org/translations/ as JSON and this is bound to fail because our server is not connected to the web.

Here's the log:

Quote:
Task Update translations started (task id 18)
exception 'Exception' with message '@todo TRANSLATIONS_FETCH_REQUEST_FAILED ' in MY_WEBROOT\gallery3\modules\gallery\helpers\l10n_client.php:137
Stack trace:
#0 MY_WEBROOT\gallery3\modules\gallery\helpers\gallery_task.php(234): l10n_client_Core::fetch_updates(1226)
#1 [internal function]: gallery_task_Core::update_l10n(Object(Task_Model))
#2 MY_WEBROOT\gallery3\modules\gallery\helpers\task.php(90): call_user_func_array('gallery_task::u...', Array)
#3 MY_WEBROOT\gallery3\modules\gallery\controllers\admin_maintenance.php(195): task_Core::run('18')
#4 [internal function]: Admin_Maintenance_Controller->run('18')
#5 MY_WEBROOT\gallery3\modules\gallery\controllers\admin.php(62): call_user_func_array(Array, Array)
#6 [internal function]: Admin_Controller->__call('maintenance', Array)
#7 MY_WEBROOT\gallery3\system\core\Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#8 [internal function]: Kohana_Core::instance(NULL)
#9 MY_WEBROOT\gallery3\system\core\Event.php(208): call_user_func_array(Array, Array)
#10 MY_WEBROOT\gallery3\application\Bootstrap.php(67): Event_Core::run('system.execute')
#11 MY_WEBROOT\gallery3\index.php(116): require('MY_WEBROOT\...')
#12 {main}
@todo TRANSLATIONS_FETCH_REQUEST_FAILED

Here's the platform info from Admin > Dashboard.

Quote:
Operating system: Windows NT 6.1
Apache: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9
PHP: 5.5.9
MySQL: 5.6.16
Server load: Unknown
Graphics toolkit: graphicsmagick

I know Win32 is not supported as server OS, but in my opionion this is irrelevant here, since the problem would be the same on an offline *ix server.

Any ideas?

Cheers,

Philipp

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2014-04-09 13:23

Connect it up, at least temporarily. That is how it is designed.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
breb

Joined: 2014-04-08
Posts: 3
Posted: Wed, 2014-04-09 13:56

Hi floridave,

thanks for your answer. Will have to hypnotize, bribe or kill our server admins, but if that's what it takes to run gallery3 – it's worth it :-)

Regards,

Philipp

 
bhonhoff
bhonhoff's picture

Joined: 2008-04-05
Posts: 11
Posted: Thu, 2014-04-17 22:05

Hi, I am connected to the Internet. And have the same problem.

Task Update translations started (task id 222)
exception 'Exception' with message '@todo TRANSLATIONS_FETCH_REQUEST_FAILED HTTP/1.0 404 Not Found' in /home/www-data/gallery3/modules/gallery/helpers/l10n_client.php:137
Stack trace:
#0 /home/www-data/gallery3/modules/gallery/helpers/gallery_task.php(234): l10n_client_Core::fetch_updates(1553)
#1 [internal function]: gallery_task_Core::update_l10n(Object(Task_Model))
#2 /home/www-data/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('gallery_task::u...', Array)
#3 /home/www-data/gallery3/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('222')
#4 [internal function]: Admin_Maintenance_Controller->run('222')
#5 /home/www-data/gallery3/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#6 [internal function]: Admin_Controller->__call('maintenance', Array)
#7 /home/www-data/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#8 [internal function]: Kohana_Core::instance(NULL)
#9 /home/www-data/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#10 /home/www-data/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#11 /home/www-data/gallery3/index.php(116): require('/home/www-data/...')
#12 {main}
@todo TRANSLATIONS_FETCH_REQUEST_FAILED HTTP/1.0 404 Not Found

uname -a
bhonhoff@[hostname]:~$ uname -a
Linux [hostname] 3.2.0-52-generic-pae #78-Ubuntu SMP Fri Jul 26 16:43:19 UTC 2013 i 686 i686 i386 GNU/Linux

PHPINFO()

PHP Logo
PHP Version 5.3.10-1ubuntu3.11

System Linux boskoop 3.2.0-52-generic-pae #78-Ubuntu SMP Fri Jul 26 16:43:19 UTC 2013 i686
Build Date Apr 4 2014 01:09:11
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
Additional .ini files parsed /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

Suhosin logo This server is protected with the Suhosin Patch 0.9.10
Copyright (c) 2006-2007 Hardened-PHP Project Copyright (c) 2007-2009 SektionEins GmbH

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

PHP Credits

Configuration

apache2handler

Apache Version Apache
Apache API Version 20051115
Server Administrator webmaster@localhost
Hostname:Port boskoop:80
User/Group www-data(33)/33
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server Yes
Server Root /etc/apache2
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_status

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment

Variable Value
HTTP_HOST boskoop
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
HTTP_DNT 1
HTTP_ACCEPT_ENCODING gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE en,en-US;q=0.8,nl;q=0.6,de;q=0.4,pt-BR;q=0.2,pt;q=0.2
HTTP_COOKIE Gallery_l10n_client=0; g3sid=10837985875e68a27ca1370420bbc12621fb0999%7E0n80j8g1sveuevtqfqmi7rl1m5
HTTP_IF_NONE_MATCH "52000d-15-4f74431972f5b;4f7442e7cfed8"
HTTP_IF_MODIFIED_SINCE Thu, 17 Apr 2014 22:02:48 GMT
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE <address>Apache Server at boskoop Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME boskoop
SERVER_ADDR 192.168.178.80
SERVER_PORT 80
REMOTE_ADDR 192.168.178.160
DOCUMENT_ROOT /var/www
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/version.php
REMOTE_PORT 49984
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /version
SCRIPT_NAME /version.php

HTTP Headers Information

HTTP Request Headers
HTTP Request GET /version HTTP/1.1
Host boskoop
Connection keep-alive
Cache-Control max-age=0
Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
DNT 1
Accept-Encoding gzip,deflate,sdch
Accept-Language en,en-US;q=0.8,nl;q=0.6,de;q=0.4,pt-BR;q=0.2,pt;q=0.2
Cookie Gallery_l10n_client=0; g3sid=10837985875e68a27ca1370420bbc12621fb0999%7E0n80j8g1sveuevtqfqmi7rl1m5
If-None-Match "52000d-15-4f74431972f5b;4f7442e7cfed8"
If-Modified-Since Thu, 17 Apr 2014 22:02:48 GMT
HTTP Response Headers
X-Powered-By PHP/5.3.10-1ubuntu3.11
Vary Accept-Encoding
Content-Encoding gzip

bcmath

BCMath support enabled

Directive Local Value Master Value
bcmath.scale 0 0

bz2

BZip2 Support Enabled
Stream Wrapper support compress.bzip2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.6, 6-Sept-2010

calendar

Calendar support enabled

Core

PHP Version 5.3.10-1ubuntu3.11

Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 22527 22527
exit_on_timeout Off Off
expose_php On On
extension_dir /usr/lib/php5/20090626+lfs /usr/lib/php5/20090626+lfs
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors Off Off
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/php:/usr/share/pear .:/usr/share/php:/usr/share/pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.add_x_header On On
mail.force_extra_parameters no value no value
mail.log no value no value
max_execution_time 30 30
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 60 60
max_input_vars 1000 1000
memory_limit 128M 128M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv Off Off
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
request_order GP GP
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 17 17
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.enable_gc On On

ctype

ctype functions enabled

date

date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone Europe/Berlin

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dba

DBA support enabled
Supported handlers cdb cdb_make db4 inifile flatfile

Directive Local Value Master Value
dba.default_handler flatfile flatfile

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.7.8
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

ereg

Regex Library Bundled library enabled

exif

EXIF Support enabled
EXIF Version 1.4 $Id: exif.c 321634 2012-01-01 13:15:04Z felipe $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF

Directive Local Value Master Value
exif.decode_jis_intel JIS JIS
exif.decode_jis_motorola JIS JIS
exif.decode_unicode_intel UCS-2LE UCS-2LE
exif.decode_unicode_motorola UCS-2BE UCS-2BE
exif.encode_jis no value no value
exif.encode_unicode ISO-8859-15 ISO-8859-15

fileinfo

fileinfo support enabled
version 1.0.5-dev

filter

Input Validation and Filtering enabled
Revision $Revision: 321634 $

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value

ftp

FTP support enabled

gd

GD Support enabled
GD Version 2.0
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.4.8
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version unknown
PNG Support enabled
libPNG Version 1.2.46
WBMP Support enabled

Directive Local Value Master Value
gd.jpeg_ignore_warning 0 0

gettext

GetText Support enabled

hash

hash support enabled
Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv support enabled
iconv implementation glibc
iconv library version 2.15

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

json

json support enabled
json version 1.2.1

libxml

libXML support active
libXML Compiled Version 2.7.8
libXML Loaded Version 20708
libXML streams enabled

mbstring

Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) backtrack check On
Multibyte regex (oniguruma) version 4.7.1

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml)
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

mhash

MHASH support Enabled
MHASH API Version Emulated Support

mysql

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.5.35
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/i386-linux-gnu -lmysqlclient_r

Directive Local Value Master Value
mysql.allow_local_infile On On
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket /var/run/mysqld/mysqld.sock /var/run/mysqld/mysqld.sock
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

mysqli

MysqlI Support enabled
Client API library version 5.5.35
Active Persistent Links 0
Inactive Persistent Links 0
Active Links 0
Client API header version 5.5.35
MYSQLI_SOCKET /var/run/mysqld/mysqld.sock

Directive Local Value Master Value
mysqli.allow_local_infile On On
mysqli.allow_persistent On On
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket /var/run/mysqld/mysqld.sock /var/run/mysqld/mysqld.sock
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.max_persistent Unlimited Unlimited
mysqli.reconnect Off Off

openssl

OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1 14 Mar 2012
OpenSSL Header Version OpenSSL 1.0.1 14 Mar 2012

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 8.12 2011-01-15

Directive Local Value Master Value
pcre.backtrack_limit 1000000 1000000
pcre.recursion_limit 100000 100000

PDO

PDO support enabled
PDO drivers mysql

pdo_mysql

PDO Driver for MySQL enabled
Client API version 5.5.35

Directive Local Value Master Value
pdo_mysql.default_socket /var/run/mysqld/mysqld.sock /var/run/mysqld/mysqld.sock

Phar

Phar: PHP Archive support enabled
Phar EXT version 2.0.1
Phar API version 1.1.1
SVN revision $Revision: 321634 $
Phar-based phar archives enabled
Tar-based phar archives enabled
ZIP-based phar archives enabled
gzip compression enabled
bzip2 compression enabled
Native OpenSSL support enabled

Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.

Directive Local Value Master Value
phar.cache_list no value no value
phar.readonly On On
phar.require_hash On On

posix

Revision $Revision: 321634 $

Reflection

Reflection enabled
Version $Revision: 321634 $

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 0 0
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/lib/php5 /var/lib/php5
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 0 0

shmop

shmop support enabled

SimpleXML

Simplexml support enabled
Revision $Revision: 321634 $
Schema support enabled

soap

Soap Client enabled
Soap Server enabled

Directive Local Value Master Value
soap.wsdl_cache 1 1
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_limit 5 5
soap.wsdl_cache_ttl 86400 86400

sockets

Sockets Support enabled

SPL

SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
from no value no value
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value

sysvmsg

sysvmsg support enabled
Revision $Revision: 321634 $

tokenizer

Tokenizer Support enabled

wddx

WDDX Support enabled
WDDX Session Serializer enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.7.8

xmlreader

XMLReader enabled

xmlwriter

XMLWriter enabled

zip

Zip enabled
Extension Version $Id: php_zip.c 321634 2012-01-01 13:15:04Z felipe $
Zip version 1.9.1
Libzip version 0.9.0

zlib

ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.1
Linked Version 1.2.3.4

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules

Module Name
sysvsem
sysvshm

Environment

Variable Value
APACHE_RUN_DIR /var/run/apache2
APACHE_PID_FILE /var/run/apache2.pid
PATH /usr/local/bin:/usr/bin:/bin
APACHE_LOCK_DIR /var/lock/apache2
LANG C
APACHE_RUN_USER www-data
APACHE_RUN_GROUP www-data
APACHE_LOG_DIR /var/log/apache2
PWD /

PHP Variables

Variable Value
_COOKIE["Gallery_l10n_client"] 0
_COOKIE["g3sid"] 10837985875e68a27ca1370420bbc12621fb0999~0n80j8g1sveuevtqfqmi7rl1m5
_SERVER["HTTP_HOST"] boskoop
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_CACHE_CONTROL"] max-age=0
_SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
_SERVER["HTTP_DNT"] 1
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate,sdch
_SERVER["HTTP_ACCEPT_LANGUAGE"] en,en-US;q=0.8,nl;q=0.6,de;q=0.4,pt-BR;q=0.2,pt;q=0.2
_SERVER["HTTP_COOKIE"] Gallery_l10n_client=0; g3sid=10837985875e68a27ca1370420bbc12621fb0999%7E0n80j8g1sveuevtqfqmi7rl1m5
_SERVER["HTTP_IF_NONE_MATCH"] "52000d-15-4f74431972f5b;4f7442e7cfed8"
_SERVER["HTTP_IF_MODIFIED_SINCE"] Thu, 17 Apr 2014 22:02:48 GMT
_SERVER["PATH"] /usr/local/bin:/usr/bin:/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache Server at boskoop Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["SERVER_NAME"] boskoop
_SERVER["SERVER_ADDR"] 192.168.178.80
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 192.168.178.160
_SERVER["DOCUMENT_ROOT"] /var/www
_SERVER["SERVER_ADMIN"] webmaster@localhost
_SERVER["SCRIPT_FILENAME"] /var/www/version.php
_SERVER["REMOTE_PORT"] 49984
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /version
_SERVER["SCRIPT_NAME"] /version.php
_SERVER["PHP_SELF"] /version.php
_SERVER["REQUEST_TIME"] 1397772192

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact

.

 
bhonhoff
bhonhoff's picture

Joined: 2008-04-05
Posts: 11
Posted: Thu, 2014-04-17 22:08

Hi,

It is not an annoying problem, but persistent on my active server and my backupserver.

And I am grateful for all the developers who spend their time on this project, what I do follow for many years now.

Kodus!

bart

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Thu, 2014-04-17 22:44

It may be connected but it may not be able to access the updates, so that could be any number of things. You said it was connected to your internal network. Maybe TCP settings aren't correctly configured on your server (I'm thinking DNS server/resolution might be a culprit here). Alternatively, maybe your network isn't routing traffic from your server to the outside world (or from outside to in). Given it is a Windows box, maybe Windows Firewall is interfering.

If I were you, I'd try using Internet Explorer from your server and checking if it can download http://galleryproject.org (or anything for that matter).

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2014-04-17 23:00

From your phpinfo

Quote:
allow_url_include Off Off

others has had success changing this:
http://galleryproject.org/node/97435#comment-354943

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bhonhoff
bhonhoff's picture

Joined: 2008-04-05
Posts: 11
Posted: Thu, 2014-04-17 23:41

Hi Spags,

no Windows. Ubuntu LTS server. And 'sudo apt-get update' works fine.

ping to my internet provinder works too..

I will check out your next comment if that changes anything. Thanks for your response anyway!

bart

 
bhonhoff
bhonhoff's picture

Joined: 2008-04-05
Posts: 11
Posted: Fri, 2014-04-18 00:01

Hi Spags,

Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
allow_url_include On On

But still the same message.

From gallery3/var/logs

2014-04-18 01:57:59 +02:00 --- error: exception 'Exception' with message '@todo TRANSLATIONS_FETCH_REQUEST_FAILED HTTP/1.0 404 Not Found' in /home/www-data/$
Stack trace:
#0 /home/www-data/gallery3/modules/gallery/helpers/gallery_task.php(234): l10n_client_Core::fetch_updates(1553)
#1 [internal function]: gallery_task_Core::update_l10n(Object(Task_Model))
#2 /home/www-data/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('gallery_task::u...', Array)
#3 /home/www-data/gallery3/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('228')
#4 [internal function]: Admin_Maintenance_Controller->run('228')
#5 /home/www-data/gallery3/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#6 [internal function]: Admin_Controller->__call('maintenance', Array)
#7 /home/www-data/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#8 [internal function]: Kohana_Core::instance(NULL)
#9 /home/www-data/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#10 /home/www-data/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#11 /home/www-data/gallery3/index.php(116): require('/home/www-data/...')
#12 {main}

Thanks anyway for your response.

bart

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Sat, 2014-04-19 00:41

I don't use the module but looking in !10n_client_Core::fetch_updates, I think this is the part it is bombing out on:


$request_data = json_encode($request);
$url = self::_server_url("fetch");
list ($response_data, $response_status) = remote::post($url, array("data" =&gt; $request_data));
if (!remote::success($response_status)) {
  throw new Exception("@todo TRANSLATIONS_FETCH_REQUEST_FAILED " . $response_status);
}

As suggested in the link floridave posted, it is unable to download from the site for some reason. Suggest you temporarily modify the throw new Exception line to something like the following (just to prove that it is definitely trying to fetch the right URL):


throw new Exception("@todo TRANSLATIONS_FETCH_REQUEST_FAILED for " . $url . " - " .$response_status);

Just make sure you modify the right line - there is another similar throw not far from the above code.

 
bhonhoff
bhonhoff's picture

Joined: 2008-04-05
Posts: 11
Posted: Wed, 2014-05-07 03:00

The last thing helped me to find the cause.

It gave an "ERROR 404: Not Found" error.

Then I ran an wget command from the server to "http://galleryproject.org/translations/fetch"

$wget http://galleryproject.org/translations/fetch
--2014-05-07 04:54:01-- http://galleryproject.org/translations/fetch
Resolving galleryproject.org (galleryproject.org)... 64.62.166.252
Connecting to galleryproject.org (galleryproject.org)|64.62.166.252|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-05-07 04:54:02 ERROR 404: Not Found.

It turned out to be that the firewall rules from my router were too tight.
After loosen it a bit (for the time being ;-) I was able to run my updates.

Thanks!

 
breb

Joined: 2014-04-08
Posts: 3
Posted: Thu, 2014-05-08 08:02

Hi there,

it's me again. I'm afraid I could not connect my Server to the Web. So I tried some more steps:

* installed gallery3 on my private webspace and successfully set and updated the languages there.
* Made a SQL dump of the "gallery3incoming_translations" table on my private webspace
* set gallery3 to maintenance mode and made a backup of "gallery3incoming_translations" table on my offline server
* SQL imported the exported table on my offline server (no errors given)

But when I switch languages in my user prefs in gallery3 it's still in English
I checked in gallery3's translation mode – the other locales are there!

Any hints?

Thanks for your help

Philipp

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Thu, 2014-05-08 09:56

That is odd - I would have tried something like what you have done here as well (with the exporting and importing of the table) and expected that to work as well. I'm afraid I'm not sure where you could proceed from here.