Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How can I create a local mirror of odoo repository?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
batijuank
Posts: 1
Joined: 2017-09-20 16:08

How can I create a local mirror of odoo repository?

#1 Post by batijuank »

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/ ... l.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

Post Reply