Linux Repository Error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












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.












share|improve this question























  • SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
    – Haxiel
    20 hours ago






  • 1




    Your web server prevents from downloading rpm packages from repository for permission issues.
    – minish
    20 hours ago










  • @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
    16 hours ago











  • @Haxiel your solution worked. Thanks
    – G.Baysec
    16 hours ago














up vote
-1
down vote

favorite












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.












share|improve this question























  • SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
    – Haxiel
    20 hours ago






  • 1




    Your web server prevents from downloading rpm packages from repository for permission issues.
    – minish
    20 hours ago










  • @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
    16 hours ago











  • @Haxiel your solution worked. Thanks
    – G.Baysec
    16 hours ago












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











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.












share|improve this question















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.









linux mount apache-httpd rpm repository






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 16 hours ago

























asked 22 hours ago









G.Baysec

146




146











  • SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
    – Haxiel
    20 hours ago






  • 1




    Your web server prevents from downloading rpm packages from repository for permission issues.
    – minish
    20 hours ago










  • @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
    16 hours ago











  • @Haxiel your solution worked. Thanks
    – G.Baysec
    16 hours ago
















  • SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
    – Haxiel
    20 hours ago






  • 1




    Your web server prevents from downloading rpm packages from repository for permission issues.
    – minish
    20 hours ago










  • @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
    16 hours ago











  • @Haxiel your solution worked. Thanks
    – G.Baysec
    16 hours ago















SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
20 hours ago




SELinux may be interfering with your RPM files: serverfault.com/questions/697752/…
– Haxiel
20 hours ago




1




1




Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
20 hours ago




Your web server prevents from downloading rpm packages from repository for permission issues.
– minish
20 hours ago












@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
16 hours ago





@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
16 hours ago













@Haxiel your solution worked. Thanks
– G.Baysec
16 hours ago




@Haxiel your solution worked. Thanks
– G.Baysec
16 hours ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.






share|improve this answer




















    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',
    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
    );



    );













     

    draft saved


    draft discarded


















    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






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.






    share|improve this answer
























      up vote
      0
      down vote













      I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.






        share|improve this answer












        I turned off selinux after giving the permissions to directories with setenforce 0 and it worked.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 16 hours ago









        G.Baysec

        146




        146



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?