Running a repo offof Amahi

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Running a repo offof Amahi

Postby rgmhtt » Mon Nov 01, 2010 10:12 am

I have another server running as a repo server. To make the files available all I had to do was put a sym link in the APache DocumentRoot directory. In this case it was "/var/www/html". The symlink pointed to where I actually had the repo tree (like for FC12).

But with Amahi, the DocumentRoot is still "/var/www/html", but Amahi does not use this location.

Where how would I get something like:

http://hda.home/fedora/12/os/i386/ accessible?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Running a repo offof Amahi

Postby bigfoot65 » Mon Nov 01, 2010 5:07 pm

I just so happen to have made script recently to do this. I made a web app called repo, then added a symlink there to go to the location of the files. Then, you can point the repo url to http://repo/path/to/repo/files.

It worked great. I was gonna post the guidance in the wiki. I have it in a html file at the moment.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Mon Nov 01, 2010 9:17 pm

Can you please pass the info over to me so I can set this up?

I want to rebuild my main repo server tomorrow and it seems to be easier to set up Amahi as my repo server than any of my other boxes here.

Also did you install craterepo (I don't need that right now, but have used it a lot for other projects).

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Running a repo offof Amahi

Postby bigfoot65 » Tue Nov 02, 2010 5:19 am

Cool. Here ya go http://wiki.amahi.org/index.php/HDA_as_ ... epo_Server. I still need to add the part for DVD packages. This is just the bits for updates.

If you have anything to add, please let me know. I have tested this on my hda and worked great.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Tue Nov 02, 2010 2:36 pm

Some feedback and need of help.

The web app setup went fine.

But http:repo/domain is NOT instantly available, as you have to wait until hdactl gets run again or:

service hdactl restart

Here is what I put in my index.html

<html>
<UL>
<LI><A HREF="FC12">Fedora 12</A>
<LI><A HREF="Centos-5.5">Centos 5.5</A>
</UL>
</html>

Having multiple directories under the repo is of vallue. But, the Centos one gets a 403 access error:

You don't have permission to access /Centos-5.5 on this server.

And I don't see it:

html]# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> /var/hda/files/repo/fedora/FC12
4 -rw-r--r-- 1 root root 99 2010-11-02 13:43 index.html
[root@homebase html]# ls -ls FC12/
total 8
4 drwxr-xr-x 3 root root 4096 2009-11-21 19:35 os
4 drwxr-xr-x 3 root root 4096 2009-11-22 21:25 updates
[root@homebase html]# ls -ls Centos-5.5/
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 os

Centos is on my USB drive, but the permissions SEEM ok...

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Running a repo offof Amahi

Postby bigfoot65 » Tue Nov 02, 2010 2:41 pm

Maybe its the symlink that is causing the issue.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Tue Nov 02, 2010 3:57 pm

What is that 2 and 0 in the first column? I created the symlinks the same way, using Nautilus while logged in as root.

In one case the symlink is to a 'regular' partition, in the other a USB drive.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Running a repo offof Amahi

Postby bigfoot65 » Tue Nov 02, 2010 5:32 pm

I don't understand what you mean by 2 and 0. So the symlink did not work?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Running a repo offof Amahi

Postby rgmhtt » Tue Nov 02, 2010 6:10 pm

Opps that is 0 and 4. Look at this:

html]# ls -ls
total 8
4 lrwxrwxrwx 1 root root 60 2010-11-02 13:42 Centos-5.5 -> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
0 lrwxrwxrwx 1 root root 31 2010-11-02 11:05 FC12 -> /var/hda/files/repo/fedora/FC12

The symlinks that are referenced in the index.html have the same permissions, but the 1st column is different. FC12 works, but Centos-5.5 does not. Further the actual directories have the same permissions:

# ls -ls /var/hda/files/repo/fedora
total 4
4 drwxr-xr-x 4 root root 4096 2010-11-02 11:04 FC12

# ls -ls /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos
total 4
4 drwxr-xr-x 3 root root 4096 2010-11-02 14:04 5.5

There is some difference in the trees getting to these links, but I thought that does not matter. Plus they are different drives (the one not working is removable), but why?

So any help is appreciated...

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Running a repo offof Amahi

Postby bigfoot65 » Tue Nov 02, 2010 6:26 pm

Ah...yea that is strange. Not real good with symlinks...but there has to be a simple answer I would think. Might need to google this one.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 52 guests