Linux Repository Error
I created a network repository for the hosts that hasn't got internet connection.So the environment has 1 repo server and 1 client. (It's in the test stage so both host can go to internet). I did make a filesystem and mount it on the path /AllRepositories/Centos7. Than I tried to download the rpm packages to here. I also did the requirement steps createrepo / createrepo --update. The problem is, the client host can't install packages from this host.
Server config
createrepo /var/www/html/AllRepositories/Centos7
I download all packages with this command;
repoquery -a | xargs repotrack -a x86_64 -p .
I update db with;
createrepo --update /var/www/html/AllRepositories/Centos7
My client's .repo config is
[RemoteRepoDisk]
name=Remote Repository Disk
baseurl=http://<ip address>/AllRepositories/Centos7/
enabled=1
gpgcheck=0
So, when I try to download from client, I first type "yum repolist all" and my client see that repository is enabled and there are 9911 packets available. Than, when I type, "yum install nano" for example, it brings the packet download page.
Total download size: 440 k
Installed size: 1.6 M
Is this ok [y/d/N]:
When I type y, it says that
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
nano-2.3.1-10.el7.x86_64.rpm FAILED
http://<<ip address>>/AllRepositories/Centos7/nano-2.3.1-10.el7.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden0 B --:--:-- ETA
Trying other mirror.
Error downloading packages:
nano-2.3.1-10.el7.x86_64: [Errno 256] No more mirrors to try.
But from server, when I try to download the rpm packages to a normal directory(not mounted path), my client can see and download the packets.How can I download packets from clients from the mounted path?
UPDATE:
In error logs of httpd:
(13)Permission denied: [client 10.0.6.180:52939] AH00035: access to /AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm denied (filesystem path '/var/www/html/AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm') because search permissions are missing on a component of the path
It says that my search permissions are missing. I did some research for error 13. It indicates a filesystem permission problem. So I give chmod 755 to the directory /var/www/html and restart httpd but still it gives the same error.
rhel mount apache-httpd rpm repository
add a comment |
I created a network repository for the hosts that hasn't got internet connection.So the environment has 1 repo server and 1 client. (It's in the test stage so both host can go to internet). I did make a filesystem and mount it on the path /AllRepositories/Centos7. Than I tried to download the rpm packages to here. I also did the requirement steps createrepo / createrepo --update. The problem is, the client host can't install packages from this host.
Server config
createrepo /var/www/html/AllRepositories/Centos7
I download all packages with this command;
repoquery -a | xargs repotrack -a x86_64 -p .
I update db with;
createrepo --update /var/www/html/AllRepositories/Centos7
My client's .repo config is
[RemoteRepoDisk]
name=Remote Repository Disk
baseurl=http://<ip address>/AllRepositories/Centos7/
enabled=1
gpgcheck=0
So, when I try to download from client, I first type "yum repolist all" and my client see that repository is enabled and there are 9911 packets available. Than, when I type, "yum install nano" for example, it brings the packet download page.
Total download size: 440 k
Installed size: 1.6 M
Is this ok [y/d/N]:
When I type y, it says that
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
nano-2.3.1-10.el7.x86_64.rpm FAILED
http://<<ip address>>/AllRepositories/Centos7/nano-2.3.1-10.el7.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden0 B --:--:-- ETA
Trying other mirror.
Error downloading packages:
nano-2.3.1-10.el7.x86_64: [Errno 256] No more mirrors to try.
But from server, when I try to download the rpm packages to a normal directory(not mounted path), my client can see and download the packets.How can I download packets from clients from the mounted path?
UPDATE:
In error logs of httpd:
(13)Permission denied: [client 10.0.6.180:52939] AH00035: access to /AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm denied (filesystem path '/var/www/html/AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm') because search permissions are missing on a component of the path
It says that my search permissions are missing. I did some research for error 13. It indicates a filesystem permission problem. So I give chmod 755 to the directory /var/www/html and restart httpd but still it gives the same error.
rhel mount apache-httpd rpm repository
SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
Nov 13 '18 at 7:56
1
Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
Nov 13 '18 at 7:57
@mimish yes it gives permission error. So I gave 755 to the /var/www/html directory but still it gives the same error.
– G.Baysec
Nov 13 '18 at 12:12
@Haxiel your solution worked. Thanks
– G.Baysec
Nov 13 '18 at 12:24
add a comment |
I created a network repository for the hosts that hasn't got internet connection.So the environment has 1 repo server and 1 client. (It's in the test stage so both host can go to internet). I did make a filesystem and mount it on the path /AllRepositories/Centos7. Than I tried to download the rpm packages to here. I also did the requirement steps createrepo / createrepo --update. The problem is, the client host can't install packages from this host.
Server config
createrepo /var/www/html/AllRepositories/Centos7
I download all packages with this command;
repoquery -a | xargs repotrack -a x86_64 -p .
I update db with;
createrepo --update /var/www/html/AllRepositories/Centos7
My client's .repo config is
[RemoteRepoDisk]
name=Remote Repository Disk
baseurl=http://<ip address>/AllRepositories/Centos7/
enabled=1
gpgcheck=0
So, when I try to download from client, I first type "yum repolist all" and my client see that repository is enabled and there are 9911 packets available. Than, when I type, "yum install nano" for example, it brings the packet download page.
Total download size: 440 k
Installed size: 1.6 M
Is this ok [y/d/N]:
When I type y, it says that
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
nano-2.3.1-10.el7.x86_64.rpm FAILED
http://<<ip address>>/AllRepositories/Centos7/nano-2.3.1-10.el7.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden0 B --:--:-- ETA
Trying other mirror.
Error downloading packages:
nano-2.3.1-10.el7.x86_64: [Errno 256] No more mirrors to try.
But from server, when I try to download the rpm packages to a normal directory(not mounted path), my client can see and download the packets.How can I download packets from clients from the mounted path?
UPDATE:
In error logs of httpd:
(13)Permission denied: [client 10.0.6.180:52939] AH00035: access to /AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm denied (filesystem path '/var/www/html/AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm') because search permissions are missing on a component of the path
It says that my search permissions are missing. I did some research for error 13. It indicates a filesystem permission problem. So I give chmod 755 to the directory /var/www/html and restart httpd but still it gives the same error.
rhel mount apache-httpd rpm repository
I created a network repository for the hosts that hasn't got internet connection.So the environment has 1 repo server and 1 client. (It's in the test stage so both host can go to internet). I did make a filesystem and mount it on the path /AllRepositories/Centos7. Than I tried to download the rpm packages to here. I also did the requirement steps createrepo / createrepo --update. The problem is, the client host can't install packages from this host.
Server config
createrepo /var/www/html/AllRepositories/Centos7
I download all packages with this command;
repoquery -a | xargs repotrack -a x86_64 -p .
I update db with;
createrepo --update /var/www/html/AllRepositories/Centos7
My client's .repo config is
[RemoteRepoDisk]
name=Remote Repository Disk
baseurl=http://<ip address>/AllRepositories/Centos7/
enabled=1
gpgcheck=0
So, when I try to download from client, I first type "yum repolist all" and my client see that repository is enabled and there are 9911 packets available. Than, when I type, "yum install nano" for example, it brings the packet download page.
Total download size: 440 k
Installed size: 1.6 M
Is this ok [y/d/N]:
When I type y, it says that
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
nano-2.3.1-10.el7.x86_64.rpm FAILED
http://<<ip address>>/AllRepositories/Centos7/nano-2.3.1-10.el7.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden0 B --:--:-- ETA
Trying other mirror.
Error downloading packages:
nano-2.3.1-10.el7.x86_64: [Errno 256] No more mirrors to try.
But from server, when I try to download the rpm packages to a normal directory(not mounted path), my client can see and download the packets.How can I download packets from clients from the mounted path?
UPDATE:
In error logs of httpd:
(13)Permission denied: [client 10.0.6.180:52939] AH00035: access to /AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm denied (filesystem path '/var/www/html/AllRepositories/centos7/nano-2.3.1-10.el7.x86_64.rpm') because search permissions are missing on a component of the path
It says that my search permissions are missing. I did some research for error 13. It indicates a filesystem permission problem. So I give chmod 755 to the directory /var/www/html and restart httpd but still it gives the same error.
rhel mount apache-httpd rpm repository
rhel mount apache-httpd rpm repository
edited Nov 18 '18 at 13:22
Jeff Schaller
38.9k1053125
38.9k1053125
asked Nov 13 '18 at 6:24
G.Baysec
146
146
SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
Nov 13 '18 at 7:56
1
Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
Nov 13 '18 at 7:57
@mimish yes it gives permission error. So I gave 755 to the /var/www/html directory but still it gives the same error.
– G.Baysec
Nov 13 '18 at 12:12
@Haxiel your solution worked. Thanks
– G.Baysec
Nov 13 '18 at 12:24
add a comment |
SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
Nov 13 '18 at 7:56
1
Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
Nov 13 '18 at 7:57
@mimish yes it gives permission error. So I gave 755 to the /var/www/html directory but still it gives the same error.
– G.Baysec
Nov 13 '18 at 12:12
@Haxiel your solution worked. Thanks
– G.Baysec
Nov 13 '18 at 12:24
SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
Nov 13 '18 at 7:56
SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
Nov 13 '18 at 7:56
1
1
Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
Nov 13 '18 at 7:57
Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
Nov 13 '18 at 7:57
@mimish yes it gives permission error. So I gave 755 to the /var/www/html directory but still it gives the same error.
– G.Baysec
Nov 13 '18 at 12:12
@mimish yes it gives permission error. So I gave 755 to the /var/www/html directory but still it gives the same error.
– G.Baysec
Nov 13 '18 at 12:12
@Haxiel your solution worked. Thanks
– G.Baysec
Nov 13 '18 at 12:24
@Haxiel your solution worked. Thanks
– G.Baysec
Nov 13 '18 at 12:24
add a comment |
1 Answer
1
active
oldest
votes
I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481391%2flinux-repository-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.
add a comment |
I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.
add a comment |
I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.
I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.
answered Nov 13 '18 at 12:24
G.Baysec
146
146
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481391%2flinux-repository-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
Nov 13 '18 at 7:56
1
Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
Nov 13 '18 at 7:57
@mimish yes it gives permission error. So I gave 755 to the /var/www/html directory but still it gives the same error.
– G.Baysec
Nov 13 '18 at 12:12
@Haxiel your solution worked. Thanks
– G.Baysec
Nov 13 '18 at 12:24