[openvps-dev] error creating reference server
Gregory (Grisha) Trubetskoy
grisha at ispol.com
Thu May 5 00:26:32 EDT 2005
Thanks! Clearly a bug - at some point we went from 'oh' (which stood for
open hosting') to 'openvps', but the reason this one went unnoticed is
perhaps we had made a symlink oh -> openvps on our test machine...
Just fixed it in the latest CVS (also renamed OH_DIR to OV_DIR, which is
more appropriate).
Grisha
On Wed, 4 May 2005, Penelope DEVEREUX wrote:
> Hi,
>
> I had an error creating a reference server. Basically, the openvps
> program was trying to copy traceroute from the directory noted by
> OH_MISC but traceroute is not there. Thus the program sadly stops in
> its tracks. I dumped the trace at the end of this post. Also, I
> using a 2.6.10 kernel with VS 1.9.4 on FC3.
>
> I tracked down the problem (I think). In file:
>
> openvps/host/dft.py (located in the site-packages)
>
> around line 35 you will see the following:
>
> OH_DIR = os.path.join(PREFIX, 'oh')
>
> However, the package I downloaded seems like it should be:
>
> OH_DIR = os.path.join(PREFIX, 'openvps')
>
> Since this is the proper directory that contains the traceroute that
> openvps buildref was looking for.
>
> So maybe this is a bug? I checked the /etc/openvps.conf and this
> doesn't seem to be configurable there. Also, the openvps buildref
> does not fail anymore. So maybe this will help someone out there.
>
> peace!
>
> --
> Traceback (most recent call last):
> File "/usr/sbin/openvps", line 258, in ?
> main()
> File "/usr/sbin/openvps", line 254, in main
> cmd_func()
> File "/usr/sbin/openvps", line 79, in cmd_buildref
> vds.buildref(refroot, distroot)
> File "/usr/lib/python2.3/site-packages/openvps/host/vds.py", line
> 443, in buildref
> ref_make_libexec_oh(refroot)
> File "/usr/lib/python2.3/site-packages/openvps/host/vds.py", line
> 362, in ref_make_libexec_oh
> shutil.copy(os.path.join(cfg.OH_MISC, short_name), dest_path)
> File "/usr/lib/python2.3/shutil.py", line 71, in copy
> copyfile(src, dst)
> File "/usr/lib/python2.3/shutil.py", line 37, in copyfile
> fsrc = open(src, 'rb')
> IOError: [Errno 2] No such file or directory: '/usr/oh/misc/traceroute'
>
> _______________________________________________
> dev mailing list
> dev at openvps.org
> http://dev.openhosting.com/mailman/listinfo/dev
>
More information about the dev
mailing list