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

connection timeout in update.php --init-updates #1083

Closed
Rajavelu opened this issue Jul 5, 2018 · 2 comments
Closed

connection timeout in update.php --init-updates #1083

Rajavelu opened this issue Jul 5, 2018 · 2 comments

Comments

@Rajavelu
Copy link

Rajavelu commented Jul 5, 2018

Met the following connection timeout error while init updates.

/Nominatim-3.1.0/build>./utils/update.php --init-updates
PHP Warning: file_get_contents(https://download.geofabrik.de/europe/andorra-updates/state.txt): failed to open stream: Connection timed out in /home/user/Nominatim-3.1.0/build/utils/update.php on line 65

Cannot find state.txt file at the configured replication URL.
Does the URL point to a directory containing OSM update data?

ERROR: replication URL not reachable.
replication URL not reachable.

Nominatim-3.1.0/build>curl 'https://download.geofabrik.de/europe/andorra-updates/state.txt'
original OSM minutely replication sequence number 3043991
timestamp=2018-07-04T19:59:02Z
sequenceNumber=1933

@mtmail
Copy link
Collaborator

mtmail commented Jul 5, 2018

Works fine for me (centos7, php5.4)

php -r 'echo file_get_contents("https://download.geofabrik.de/europe/andorra-updates/state.txt");'
# original OSM minutely replication sequence number 3043991
timestamp=2018-07-04T19\:59\:02Z
sequenceNumber=1933

Check if other URLs work, e.g. 'https://example.com'. If not check if allow-url-fopen is set to On in your php.ini (probably /etc/php.ini) http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

@lonvia
Copy link
Member

lonvia commented Jul 6, 2018

The discussion in this ticket has drifted into matters of generic system and database administration and as such out of scope for this issue tracker. Please use google and generic help sites like stackoverflow to resolve the issue. Closing here.

@lonvia lonvia closed this as completed Jul 6, 2018
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

No branches or pull requests

3 participants