Local repository

Hi every one,
I have too many FreeBSD servers in my network but I have poor internet. How can I set up a local repository in one server, and set up other servers to install packages from that?
 
For "many Servers" I am a fan of building the packages on one machine using poudriere (https://www.freebsd.org/doc/handbook/ports-poudriere.html) and just use these packages inside the network.

Advantage: You can configure all the options on the BuildBox and just use pkg install on the production machines.
I don't want to stress the CPUs of the production machines with compiling and building. Most of the time I don't need a special option on each server, so I can save a lot of computing resources.

Regards
Markus
 
Last edited by a moderator:
For "many Servers" I am a fan of building the packages on one machine using poudriere (https://www.freebsd.org/doc/handbook/ports-poudriere.html) and just use these packages inside the network.

Advantage: You can configure all the options on the BuildBox and just use pkg install on the production machines.
I don't want to stress the CPUs of the production machines with compiling and building. Most of the time I don't need a special option on each server, so I can save a lot of computing resources.

Regards
Markus
Is there any good "how to" or tutorial for it?
 
iI'm use :
https://www.digitalocean.com/commun...m-to-create-packages-for-your-freebsd-servers
bBut on when iI use my IP address of my server iI get this error:
Code:
Invalid request or no data available yet.
hHow should iI fix it?

aAdditional info, iI get this error on nginx error-log:
Code:
[LIST=1]
[*]T /data/.data.json HTTP/1.1", host: "LocalHost", referrer: "http://LocalHost"
[*]2015/07/26 15:34:03 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[*]2015/07/26 15:34:05 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[*]2015/07/26 15:34:07 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[*]2015/07/26 15:34:09 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[/LIST]
(iI change my IP address to localhost).
 
iI'm use :
https://www.digitalocean.com/commun...m-to-create-packages-for-your-freebsd-servers
bBut on when iI use my IP address of my server iI get this error:
Code:
Invalid request or no data available yet.
hHow should iI fix it?

aAdditional info, iI get this error on nginx error-log:
Code:
[LIST=1]
[*]T /data/.data.json HTTP/1.1", host: "LocalHost", referrer: "http://LocalHost"
[*]2015/07/26 15:34:03 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[*]2015/07/26 15:34:05 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[*]2015/07/26 15:34:07 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[*]2015/07/26 15:34:09 [error] 3495#0: *3 open() "/usr/local/poudriere/data/logs/bulk/.data.json" failed (2: No such file or directory), client: LocalHost, server: LocalHost, request: "GET /data/.data.json HTTP/1.1", host: "172.16.33.223", referrer: "http://LocalHost"
[/LIST]
(iI change my IP address to localhost).

Do you have any idea?
 
You need to configure nginx correctly. See the example in /usr/local/share/examples/poudriere/nginx.conf.sample.
 
Back
Top