[MXS-2894] Fails to download avro tar file Created: 2020-02-18  Updated: 2020-03-13  Resolved: 2020-03-02

Status: Closed
Project: MariaDB MaxScale
Component/s: avrorouter
Affects Version/s: 2.4, 2.4.5, 2.4.7
Fix Version/s: 2.3.18

Type: Bug Priority: Critical
Reporter: Sangita Nalkar Assignee: Timofey Turenko
Resolution: Fixed Votes: 0
Labels: None
Environment:

x86


Attachments: Text File x86_install_deps_log.txt    

 Description   

While building MariaDB MaxScale from Source Code (link) , install build dependencies step : "../MaxScale/BUILD/install_build_deps.sh" fails with following error:

ls: cannot access 'avro*.tar.gz': No such file or directory
tar: option requires an argument – 'f'
Try 'tar --help' or 'tar --usage' for more information.
/build /tmp/tmp.l7OyoX4WKb
sed: can't read ../lang/c/CMakeLists.txt: No such file or directory
CMake Error: The source directory "/" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
/tmp/tmp.l7OyoX4WKb

Root cause:
The link used to download avro tar file at (link) has been moved.

root@1c45994869a5:~/build# wget -r -l1 -nH --cut-dirs=2 --no-parent -A.tar.gz --no-directories https://www-eu.apache.org/dist/avro/stable/c
-2020-02-18 12:12:33- https://www-eu.apache.org/dist/avro/stable/c
Resolving www-eu.apache.org (www-eu.apache.org)... 95.216.24.32, 2a01:4f9:2a:185f::2
Connecting to www-eu.apache.org (www-eu.apache.org)|95.216.24.32|:443... connected.
Unable to establish SSL connection.
root@1c45994869a5:~/build#

root@1c45994869a5:~/build# curl https://www-eu.apache.org/dist/avro/stable/c
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://downloads.apache.org/avro/stable/c">here</a>.</p>
</body></html>
root@1c45994869a5:

Fix:
Need to replace the link to download avro from "https://www-eu.apache.org/dist/avro/stable/c" to "https://downloads.apache.org/avro/stable/c"

Attaching log of "install_build_deps.sh" for reference.


Generated at Thu Feb 08 04:17:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.