How can I create a local mirror of odoo repository?

If none of the more specific forums is the right place to ask

How can I create a local mirror of odoo repository?

Postby batijuank » 2017-09-20 17:00

Following this guide
https://help.ubuntu.com/community/Debmirror

And this info about odoo's repository posted on this link https://www.odoo.com/documentation/9.0/setup/install.html#deb
Code: Select all
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo


I created a script named nightly.odoo.sh and put this code on it (retrieved from the guide and modified)
Code: Select all
#!/bin/bash
arch=i386,amd64
section=.
release=.
server=nightly.odoo.com
inPath=/9.0/nightly/deb
proto=http
outPath=/path/to/repos/odoo/
debmirror -a $arch \
          --ignore-release-gpg \
          --i18n \
          --postcleanup \
          --diff=none \
          -s $section \
          -h $server \
          -d $release \
          --verbose \
          --progress \
          -e $proto \
          -r $inPath \
          $outPath


When I execute my script it gives me the following output
Code: Select all
Mirroring to /mnt/Data/repos/odoo/ from http://nightly.odoo.com/9.0/nightly/deb/
Arches: i386,amd64
Dists: .
Sections: .
Including source.
Pdiff mode: none
Will clean up after mirroring.
Attempting to get lock ...
Updating remote trace files (using rsync) ...
rsync: failed to connect to nightly.odoo.com (188.165.210.169): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.0]
Warning: failed to use rsync to download extra files.
Getting meta files ...
[  0%] Getting: dists/./Release...   #** GET http://nightly.odoo.com/9.0/nightly/deb/dists/./Release ==> 404 Not Found
failed 404 Not Found
Errors:
 Download of dists/./Release failed: 404 Not Found
Failed to download some Release or Release.gpg files!
WARNING: releasing 1 pending lock...


I know that the problem is in here
Code: Select all
http://nightly.odoo.com/9.0/nightly/deb/dists/./Release ==> 404 Not Found

Because it should be
http://nightly.odoo.com/9.0/nightly/deb/Release

Please, how do I fix this? Any help will be appreciated

I don't mind receiving help either in English or Spanish
batijuank
 
Posts: 1
Joined: 2017-09-20 16:08

Return to General Questions

Who is online

Users browsing this forum: sgage and 4 guests

fashionable