Cacti 0.8.8a / CentOS 6.4 / ERROR: opening '/usr/share/cacti/rra/*.rrd': No such file or directory - cacti

I've just installed Cacti 0.8.8a from EPEL repo of CentOS 6.4. Everything is fine except the graphs do not show up. I checked the log of httpd then I see:
ERROR: opening '/usr/share/cacti/rra/localhost_mem_buffers_3.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/rra/localhost_proc_7.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/rra/localhost_users_6.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/rra/localhost_load_1min_5.rrd': No such file or directory
Seems like rrdtool did not generate those files.
This is in /usr/share/cacti
ls -ls /usr/share/cacti
total 872
8 -rw-r--r-- 1 root root 5945 Jun 28 2012 about.php
8 -rw-r--r-- 1 root root 5348 Jun 28 2012 auth_changepassword.php
16 -rw-r--r-- 1 root root 14288 Jun 28 2012 auth_login.php
24 -rw-r--r-- 1 root root 21658 Jun 28 2012 cdef.php
0 lrwxrwxrwx 1 root root 18 Jul 25 13:42 cli -> /var/lib/cacti/cli
28 -rwxr-xr-x 1 root root 26620 Jun 28 2012 cmd.php
8 -rw-r--r-- 1 root root 6974 Jun 28 2012 color.php
28 -rw-r--r-- 1 root root 25068 Jun 28 2012 data_input.php
36 -rw-r--r-- 1 root root 35505 Jun 28 2012 data_queries.php
60 -rw-r--r-- 1 root root 60117 Jun 28 2012 data_sources.php
36 -rw-r--r-- 1 root root 32920 Jun 28 2012 data_templates.php
8 -rw-r--r-- 1 root root 6107 Jun 28 2012 gprint_presets.php
4 -rw-r--r-- 1 root root 3657 Jun 28 2012 graph_image.php
16 -rw-r--r-- 1 root root 13469 Jun 28 2012 graph.php
12 -rw-r--r-- 1 root root 9208 Jun 28 2012 graph_settings.php
20 -rw-r--r-- 1 root root 17426 Jun 28 2012 graphs_items.php
40 -rw-r--r-- 1 root root 40166 Jun 28 2012 graphs_new.php
60 -rw-r--r-- 1 root root 60571 Jun 28 2012 graphs.php
12 -rw-r--r-- 1 root root 10006 Jun 28 2012 graph_templates_inputs.php
20 -rw-r--r-- 1 root root 18542 Jun 28 2012 graph_templates_items.php
28 -rw-r--r-- 1 root root 26703 Jun 28 2012 graph_templates.php
40 -rw-r--r-- 1 root root 40313 Jun 28 2012 graph_view.php
8 -rw-r--r-- 1 root root 6022 Jun 28 2012 graph_xport.php
60 -rw-r--r-- 1 root root 60031 Jun 28 2012 host.php
20 -rw-r--r-- 1 root root 20031 Jun 28 2012 host_templates.php
4 drwxr-xr-x 2 root root 4096 Jul 25 13:42 images
4 drwxr-xr-x 4 cacti root 4096 Jul 25 13:50 include
4 -rw-r--r-- 1 root root 2313 Jun 28 2012 index.php
4 drwxr-xr-x 2 root root 4096 Jul 25 13:42 install
4 drwxr-xr-x 3 root root 4096 Jul 25 13:42 lib
0 lrwxrwxrwx 1 root root 15 Jul 25 13:42 log -> /var/log/cacti/
4 -rw-r--r-- 1 root root 2838 Jun 28 2012 logout.php
4 drwxr-xr-x 2 root root 4096 Jul 25 13:42 plugins
28 -rw-r--r-- 1 root root 27362 Jun 28 2012 plugins.php
8 -rw-r--r-- 1 root root 4310 Jun 28 2012 poller_commands.php
4 -rw-r--r-- 1 root root 2243 Jun 28 2012 poller_export.php
20 -rwxr-xr-x 1 root root 18056 Jun 28 2012 poller.php
4 drwxr-xr-x 5 root root 4096 Jul 25 13:42 resource
**0 lrwxrwxrwx 1 cacti cacti 18 Jul 25 13:42 rra -> /var/lib/cacti/rra**
8 -rw-r--r-- 1 root root 7394 Jun 28 2012 rra.php
0 lrwxrwxrwx 1 root root 22 Jul 25 13:42 scripts -> /var/lib/cacti/scripts
12 -rw-r--r-- 1 root root 10820 Jun 28 2012 script_server.php
8 -rw-r--r-- 1 root root 5761 Jun 28 2012 settings.php
4 -rw-r--r-- 1 root root 1407 Jun 3 2012 snmpv3_priv_proto_none.patch
8 -rw-r--r-- 1 root root 6345 Jun 28 2012 templates_export.php
8 -rw-r--r-- 1 root root 5835 Jun 28 2012 templates_import.php
20 -rw-r--r-- 1 root root 19529 Jun 28 2012 tree.php
44 -rw-r--r-- 1 root root 44997 Jun 28 2012 user_admin.php
68 -rw-r--r-- 1 root root 65635 Jun 28 2012 utilities.php
I also changed the owner of rra folder to cacti user like this:
ls -ls /var/lib/cacti/
total 12
4 drwxr-xr-x 2 root root 4096 Jul 25 13:42 cli
0 lrwxrwxrwx 1 root root 24 Jul 25 13:42 include -> /usr/share/cacti/include
0 lrwxrwxrwx 1 cacti root 20 Jul 25 13:42 lib -> /usr/share/cacti/lib
**4 drwxr-xr-x 2 cacti cacti 4096 Jun 28 2012 rra**
4 drwxr-xr-x 2 root root 4096 Jul 25 13:42 scripts
What should I do next?
Thanks a lot!

What worked for me was to go into System Utilities (bottom of console) and click on Rebuild Poller Cache.

The most common case of a missing RRD file in Cacti is a data source problem.
This probably means that the Cacti poller could not retrieve data from the host.
Check the status of the device in the device list, if it's "Unknown" and if you didn't fiddle around with the availability detection, it means that Cacti is unable to get an SNMP reply from the host. This could have different reasons:
Check SNMP connectivity between the Cacti host and the polled host (in your case, since both sides are the Cacti host, make sure snmpd is running and listening on the same port Cacti is trying to reach it (default 161).
Check the community string on both ends
if DNS is used make sure resolving is possible and successful on the Cacti host (less relevant for localhost, but still a good idea imho).
Check the datasource using debug mode to get some extra info (Devices ›› Localhost ›› Data Source List ›› Localhost - Logged in Users ›› Turn On Data Source Debug Mode) and also try to poll the host using snmpget or snmpwalk:
snmpget -cCOMMUNITY -vVERSION HOSTNAME OID
I usually use snmpwalk which uses the same syntax:
snmpwalk -cpublic -v2c localhost 1.3.6.1.2.1
1.3.6.1.2.1 is for MIB-2
Further debugging help: Great guide by gandalf from the Cacti forums
Cacti forums, where you can try and post your question there.
Good luck!

Check your permissions. I had the same issue when I stood up a cacti instance on Debian. Everything was displaying correctly except for the graphs, and I had the same "No such file or directory" errors. Changing the ownership of the rra directory to cacti:www-data resolved the issue for me.
Good luck.

Related

cmake complains "Could NOT find X11 (missing: X11_X11_LIB)",but all x11 related stuff got installed already

I got this error in ubuntu 21.04
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find X11 (missing: X11_X11_LIB)
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/lib/x86_64-linux-gnu/cmake/vtk-9.0/patches/99/FindX11.cmake:366 (find_package_handle_standard_args)
/usr/lib/x86_64-linux-gnu/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:209 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/vtk-9.0/vtk-config.cmake:131 (include)
but all x11 related stuff got installed already by
sudo apt install libx11*
I can find related includes and libs in their location:
alex#x-space:~/workspace/Scene/Debug$ sudo locate libX11
/usr/lib/i386-linux-gnu/libX11-xcb.so.1
/usr/lib/i386-linux-gnu/libX11-xcb.so.1.0.0
/usr/lib/i386-linux-gnu/libX11.so.6
/usr/lib/i386-linux-gnu/libX11.so.6.4.0
/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
/usr/lib/x86_64-linux-gnu/libX11.a
/usr/lib/x86_64-linux-gnu/libX11.so
/usr/lib/x86_64-linux-gnu/libX11.so.6
/usr/lib/x86_64-linux-gnu/libX11.so.6.4.0
alex#x-space:~/workspace/Scene/Debug$ lh /usr/include/X11/
total 1.1M
-rw-r--r-- 1 root root 2.3K Apr 15 2020 ap_keysym.h
drwxr-xr-x 2 root root 4.0K Apr 20 18:48 bitmaps
-rw-r--r-- 1 root root 4.0K Aug 17 2020 CallbackI.h
-rw-r--r-- 1 root root 3.5K Aug 17 2020 Composite.h
-rw-r--r-- 1 root root 4.7K Aug 17 2020 CompositeP.h
-rw-r--r-- 1 root root 4.0K Aug 17 2020 ConstrainP.h
-rw-r--r-- 1 root root 2.6K Aug 17 2020 Constraint.h
-rw-r--r-- 1 root root 3.4K Aug 17 2020 ConvertI.h
-rw-r--r-- 1 root root 2.6K Aug 17 2020 Core.h
-rw-r--r-- 1 root root 8.4K Aug 17 2020 CoreP.h
-rw-r--r-- 1 root root 1.4K Aug 17 2020 CreateI.h
-rw-r--r-- 1 root root 3.1K May 20 01:00 cursorfont.h
-rw-r--r-- 1 root root 2.8K Apr 15 2020 DECkeysym.h
drwxr-xr-x 2 root root 4.0K Sep 14 21:02 dri
-rw-r--r-- 1 root root 4.2K Aug 17 2020 EventI.h
drwxr-xr-x 2 root root 4.0K Sep 30 18:01 extensions
drwxr-xr-x 2 root root 4.0K Sep 30 15:59 fonts
-rw-r--r-- 1 root root 2.2K Aug 17 2020 HookObjI.h
-rw-r--r-- 1 root root 6.0K Apr 15 2020 HPkeysym.h
drwxr-xr-x 2 root root 4.0K Sep 14 21:04 ICE
-rw-r--r-- 1 root root 405 May 20 01:00 ImUtil.h
-rw-r--r-- 1 root root 13K Aug 17 2020 InitialI.h
-rw-r--r-- 1 root root 63K Aug 17 2020 Intrinsic.h
-rw-r--r-- 1 root root 6.8K Aug 17 2020 IntrinsicI.h
-rw-r--r-- 1 root root 9.5K Aug 17 2020 IntrinsicP.h
-rw-r--r-- 1 root root 172K Apr 15 2020 keysymdef.h
-rw-r--r-- 1 root root 2.8K Apr 15 2020 keysym.h
-rw-r--r-- 1 root root 2.6K Aug 17 2020 Object.h
-rw-r--r-- 1 root root 6.8K Aug 17 2020 ObjectP.h
-rw-r--r-- 1 root root 5.4K Aug 17 2020 PassivGraI.h
-rw-r--r-- 1 root root 2.6K Aug 17 2020 RectObj.h
-rw-r--r-- 1 root root 6.3K Aug 17 2020 RectObjP.h
-rw-r--r-- 1 root root 2.9K Aug 17 2020 ResConfigP.h
-rw-r--r-- 1 root root 3.7K Aug 17 2020 ResourceI.h
-rw-r--r-- 1 root root 5.1K Aug 17 2020 SelectionI.h
-rw-r--r-- 1 root root 18K Aug 17 2020 Shell.h
-rw-r--r-- 1 root root 212 Aug 17 2020 ShellI.h
-rw-r--r-- 1 root root 13K Aug 17 2020 ShellP.h
drwxr-xr-x 2 root root 4.0K Sep 14 21:04 SM
-rw-r--r-- 1 root root 30K Aug 17 2020 StringDefs.h
-rw-r--r-- 1 root root 4.0K Apr 15 2020 Sunkeysym.h
-rw-r--r-- 1 root root 4.2K Aug 17 2020 ThreadsI.h
-rw-r--r-- 1 root root 17K Aug 17 2020 TranslateI.h
-rw-r--r-- 1 root root 2.4K Aug 17 2020 VarargsI.h
-rw-r--r-- 1 root root 2.8K Aug 17 2020 Vendor.h
-rw-r--r-- 1 root root 3.5K Aug 17 2020 VendorP.h
-rw-r--r-- 1 root root 4.5K Apr 15 2020 Xalloca.h
-rw-r--r-- 1 root root 2.9K Apr 15 2020 Xarch.h
-rw-r--r-- 1 root root 2.5K Apr 15 2020 Xatom.h
-rw-r--r-- 1 root root 3.8K Feb 25 2021 Xauth.h
-rw-r--r-- 1 root root 21K May 20 01:00 Xcms.h
-rw-r--r-- 1 root root 2.4K Apr 15 2020 Xdefs.h
-rw-r--r-- 1 root root 6.3K Feb 25 2021 Xdmcp.h
-rw-r--r-- 1 root root 14K Apr 15 2020 XF86keysym.h
drwxr-xr-x 2 root root 4.0K Sep 14 21:59 Xft
-rw-r--r-- 1 root root 7.7K Apr 15 2020 Xfuncproto.h
-rw-r--r-- 1 root root 2.3K Apr 15 2020 Xfuncs.h
-rw-r--r-- 1 root root 20K Apr 15 2020 X.h
-rw-r--r-- 1 root root 31K May 20 01:00 XKBlib.h
-rw-r--r-- 1 root root 1.6K May 20 01:00 XlibConf.h
-rw-r--r-- 1 root root 98K May 20 01:00 Xlib.h
-rw-r--r-- 1 root root 40K May 20 01:00 Xlibint.h
-rw-r--r-- 1 root root 506 May 20 01:00 Xlib-xcb.h
-rw-r--r-- 1 root root 1.3K May 20 01:00 Xlocale.h
-rw-r--r-- 1 root root 5.1K Apr 15 2020 Xmd.h
drwxr-xr-x 2 root root 4.0K Sep 18 07:29 Xmu
-rw-r--r-- 1 root root 3.1K Apr 15 2020 Xosdefs.h
-rw-r--r-- 1 root root 4.3K Apr 15 2020 Xos.h
-rw-r--r-- 1 root root 33K Apr 15 2020 Xos_r.h
-rw-r--r-- 1 root root 7.6K Apr 15 2020 Xpoll.h
-rw-r--r-- 1 root root 52K Apr 15 2020 Xproto.h
-rw-r--r-- 1 root root 2.7K Apr 15 2020 Xprotostr.h
-rw-r--r-- 1 root root 5.9K May 20 01:00 Xregion.h
-rw-r--r-- 1 root root 11K May 20 01:00 Xresource.h
-rw-r--r-- 1 root root 13K Apr 15 2020 Xthreads.h
-rw-r--r-- 1 root root 2.9K Aug 17 2020 Xtos.h
drwxr-xr-x 2 root root 4.0K Sep 14 21:02 Xtrans
-rw-r--r-- 1 root root 21K May 20 01:00 Xutil.h
-rw-r--r-- 1 root root 1.9K Apr 15 2020 Xw32defs.h
-rw-r--r-- 1 root root 3.8K Apr 15 2020 XWDFile.h
-rw-r--r-- 1 root root 3.3K Apr 15 2020 Xwindows.h
-rw-r--r-- 1 root root 2.3K Apr 15 2020 Xwinsock.h
Why do I still get this error?

Pentaho DI 8.0 JDBC file location

I recently installed PDI 8.0 and do not see the usual JDBC file structure where the database driver jars are saved (pentaho/design-tools/data-integration/lib).
Below is what was extracted out, note I tried dropping the jar into Data Integration.app, as well as recreating the structure from prior versions and re-starting PDI but no success as of yet.
So my question is: where do the JDBC jar files go now in PDI 8.0?
douglas#localhost:~/pentaho$ ls -lth
total 11M
drwxr-xr-x 2 douglas douglas 4.0K Feb 18 12:51 logs
drwxr-xr-x 3 douglas douglas 4.0K Feb 18 12:34 design-tools
drwxr-xr-x 3 douglas douglas 4.0K Nov 5 16:49 Data Integration.app
drwxr-xr-x 4 douglas douglas 4.0K Nov 5 16:49 adaptive-execution
drwxr-xr-x 2 douglas douglas 4.0K Nov 5 16:49 Data Service JDBC Driver
drwxr-xr-x 28 douglas douglas 4.0K Nov 5 16:49 plugins
drwxr-xr-x 6 douglas douglas 4.0K Nov 5 16:49 libswt
drwxr-xr-x 2 douglas douglas 20K Nov 5 16:49 lib
-rw-r--r-- 1 douglas douglas 1.5K Nov 5 16:47 Carte.bat
-rwxr-xr-x 1 douglas douglas 1.3K Nov 5 16:47 carte.sh
drwxr-xr-x 2 douglas douglas 4.0K Nov 5 16:47 classes
drwxr-xr-x 3 douglas douglas 4.0K Nov 5 16:47 docs
-rw-r--r-- 1 douglas douglas 1.1K Nov 5 16:47 Encr.bat
-rwxr-xr-x 1 douglas douglas 1.1K Nov 5 16:47 encr.sh
-rw-r--r-- 1 douglas douglas 1.1K Nov 5 16:47 Import.bat
-rw-r--r-- 1 douglas douglas 2.3K Nov 5 16:47 import-rules.xml
-rwxr-xr-x 1 douglas douglas 1.2K Nov 5 16:47 import.sh
-rw-r--r-- 1 douglas douglas 1.1K Nov 5 16:47 Kitchen.bat
-rwxr-xr-x 1 douglas douglas 1.3K Nov 5 16:47 kitchen.sh
drwxr-xr-x 2 douglas douglas 4.0K Nov 5 16:47 launcher
-rw-r--r-- 1 douglas douglas 14K Nov 5 16:47 LICENSE.txt
-rw-r--r-- 1 douglas douglas 1.1K Nov 5 16:47 Pan.bat
-rwxr-xr-x 1 douglas douglas 1.2K Nov 5 16:47 pan.sh
-rw-r--r-- 1 douglas douglas 1.2K Nov 5 16:47 purge-utility.bat
-rwxr-xr-x 1 douglas douglas 1.3K Nov 5 16:47 purge-utility.sh
drwxr-xr-x 2 douglas douglas 4.0K Nov 5 16:47 pwd
-rw-r--r-- 1 douglas douglas 1.3K Nov 5 16:47 README.txt
-rw-r--r-- 1 douglas douglas 1.5K Nov 5 16:47 runSamples.bat
-rwxr-xr-x 1 douglas douglas 1.2K Nov 5 16:47 runSamples.sh
drwxr-xr-x 5 douglas douglas 4.0K Nov 5 16:47 samples
-rw-r--r-- 1 douglas douglas 5.0K Nov 5 16:47 set-pentaho-env.bat
-rwxr-xr-x 1 douglas douglas 4.5K Nov 5 16:47 set-pentaho-env.sh
drwxr-xr-x 2 douglas douglas 4.0K Nov 5 16:47 simple-jndi
-rw-r--r-- 1 douglas douglas 1.2K Nov 5 16:47 Spark-app-builder.bat
-rwxr-xr-x 1 douglas douglas 1.2K Nov 5 16:47 spark-app-builder.sh
-rw-r--r-- 1 douglas douglas 4.7K Nov 5 16:47 Spoon.bat
-rw-r--r-- 1 douglas douglas 220 Nov 5 16:47 spoon.command
-rw-r--r-- 1 douglas douglas 1.1K Nov 5 16:47 SpoonConsole.bat
-rw-r--r-- 1 douglas douglas 2.2K Nov 5 16:47 SpoonDebug.bat
-rwxr-xr-x 1 douglas douglas 1.9K Nov 5 16:47 SpoonDebug.sh
-rw-r--r-- 1 douglas douglas 362K Nov 5 16:47 spoon.ico
-rw-r--r-- 1 douglas douglas 745 Nov 5 16:47 spoon.png
-rwxr-xr-x 1 douglas douglas 7.1K Nov 5 16:47 spoon.sh
drwxr-xr-x 5 douglas douglas 4.0K Nov 5 16:47 system
drwxr-xr-x 3 douglas douglas 4.0K Nov 5 16:47 ui
-rwxr-xr-x 1 douglas douglas 1.7K Nov 5 16:47 yarn.sh
-rw-r--r-- 1 douglas douglas 11M Nov 5 14:13 PentahoDataIntegration_OSS_Licenses.html
Check the lib directory, and if not found at this place, run this command to find all jar files : find . -name '*.jar'

Cannot run imagenet download and preprocess script (suggestion in issue 202 did not work)

I am following the instruction here: https://github.com/tensorflow/models/tree/master/inception
After running bazel-bin/inception/imagenet_train --num_gpus=1 --batch_size=32 --train_dir=/tmp/imagenet_train --data_dir=/tmp/imagenet_data
I get the following error:
bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception/data/download_imagenet.sh: line 105: bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception/data/imagenet_lsvrc_2015_synsets.txt: No such file or directory"
I saw the post on this in 202 but the suggestion to "add main before /inception" in work_dir did not solve the problem. Below is the output of ls -l -R bazel-bin/inception/download_and_preprocess_imagenet.runfiles/:
bazel-bin/inception/download_and_preprocess_imagenet.runfiles/:
total 8
drwxr-xr-x 3 parsa parsa 4096 Jun 30 14:34 inception
-r-xr-xr-x 1 parsa parsa 1737 Jun 30 14:34 MANIFEST
bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception:
total 4
drwxr-xr-x 3 parsa parsa 4096 Jun 30 14:34 inception
bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception:
total 12
lrwxrwxrwx 1 parsa parsa 149 Jun 30 14:34 build_imagenet_data -> /home/parsa/.cache/bazel/_bazel_parsa/cf59658e104287859f50b192c32a27cc/execroot/inception/bazel-out/local-fastbuild/bin/inception/build_imagenet_data
drwxr-xr-x 2 parsa parsa 4096 Jun 30 14:34 data
lrwxrwxrwx 1 parsa parsa 162 Jun 30 14:34 download_and_preprocess_imagenet -> /home/parsa/.cache/bazel/_bazel_parsa/cf59658e104287859f50b192c32a27cc/execroot/inception/bazel-out/local-fastbuild/bin/inception/download_and_preprocess_imagenet
-r-xr-xr-x 1 parsa parsa 0 Jun 30 14:34 init.py
bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception/data:
total 32
lrwxrwxrwx 1 parsa parsa 94 Jun 30 14:34 build_imagenet_data.py -> /home/parsa/Documents/development/brain/models/inception/inception/data/build_imagenet_data.py
lrwxrwxrwx 1 parsa parsa 107 Jun 30 14:34 download_and_preprocess_imagenet.sh -> /home/parsa/Documents/development/brain/models/inception/inception/data/download_and_preprocess_imagenet.sh
lrwxrwxrwx 1 parsa parsa 92 Jun 30 14:34 download_imagenet.sh -> /home/parsa/Documents/development/brain/models/inception/inception/data/download_imagenet.sh
lrwxrwxrwx 1 parsa parsa 114 Jun 30 14:34 imagenet_2012_validation_synset_labels.txt -> /home/parsa/Documents/development/brain/models/inception/inception/data/imagenet_2012_validation_synset_labels.txt
lrwxrwxrwx 1 parsa parsa 103 Jun 30 14:34 imagenet_lsvrc_2015_synsets.txt -> /home/parsa/Documents/development/brain/models/inception/inception/data/imagenet_lsvrc_2015_synsets.txt
lrwxrwxrwx 1 parsa parsa 93 Jun 30 14:34 imagenet_metadata.txt -> /home/parsa/Documents/development/brain/models/inception/inception/data/imagenet_metadata.txt
-r-xr-xr-x 1 parsa parsa 0 Jun 30 14:34 init.py
lrwxrwxrwx 1 parsa parsa 110 Jun 30 14:34 preprocess_imagenet_validation_data.py -> /home/parsa/Documents/development/brain/models/inception/inception/data/preprocess_imagenet_validation_data.py
lrwxrwxrwx 1 parsa parsa 97 Jun 30 14:34 process_bounding_boxes.py -> /home/parsa/Documents/development/brain/models/inception/inception/data/process_bounding_boxes.py
I solved the problem by replacing the LABELS_FILE with the actual full file path in download_and_preprocess_imagenet.sh

How to deal with Gitlab Backup Files

I have a lot of different files in my backup directory for Gitlab.
Some of them are 26MB which seems like a whole backup.
Others are 10KB. Which one should I keep and why is there two different kind of files ?
ls -al backups/
total 34880
drwxr-xr-x 3 uhal uhal 4096 Mar 2 02:00 .
drwxr-xr-x 10 uhal uhal 4096 Jun 4 2016 ..
-rw------- 1 uhal uhal 10240 Feb 24 02:00 1487898010_gitlab_backup.tar
-rw------- 1 uhal uhal 10240 Feb 25 02:00 1487984409_gitlab_backup.tar
-rw------- 1 uhal uhal 26716160 Feb 26 02:00 1488070809_gitlab_backup.tar
-rw------- 1 uhal uhal 10240 Feb 27 02:00 1488157209_gitlab_backup.tar
-rw------- 1 uhal uhal 26716160 Feb 28 02:00 1488243609_gitlab_backup.tar
-rw------- 1 uhal uhal 10240 Feb 28 02:00 1488243610_gitlab_backup.tar
-rw------- 1 uhal uhal 10240 Mar 1 02:00 1488330010_gitlab_backup.tar
-rw------- 1 uhal uhal 10240 Mar 2 02:00 1488416410_gitlab_backup.tar
-rw------- 1 uhal uhal 146 Mar 2 02:00 artifacts.tar.gz
-rw-rw-r-- 1 uhal uhal 158 Mar 2 02:00 backup_information.yml
-rw------- 1 uhal uhal 146 Mar 2 02:00 lfs.tar.gz
drwxr-xr-x 4 uhal uhal 4096 Jun 15 2016 tmp
UPDATE : March 3rd 2017
tar -xvf 1488502809_gitlab_backup.tar
backup_information.yml
tar -xvf 1488070809_gitlab_backup.tar
repositories/
repositories/marketing/
repositories/thibaut/
repositories/thibaut/jhipster-test.bundle
artifacts.tar.gz
lfs.tar.gz
backup_information.yml
Lightweight tar are null backup. They contain only a .yml backup report saying there was nothing new to be done.
Heavy tar are full backup. They are generated only when something has changed.
A change within Gitlab can happen because of an automatic process. This is why you can have a full backup generated even if nobody is connecting to your Gitlab.

axis2c_http_server can't find axis2.xml

I am trying to use Axis2/c on OS X but when I launch axis2c_http_server, I get the following errors:
[Fri Mar 16 12:26:19 2012] [info] Starting Axis2 HTTP server....
[Fri Mar 16 12:26:19 2012] [info] Apache Axis2/C version in use : 1.6.0
[Fri Mar 16 12:26:19 2012] [info] Server port : 9090
[Fri Mar 16 12:26:19 2012] [info] Repo location : ../
[Fri Mar 16 12:26:19 2012] [info] Read Timeout : 60000 ms
[Fri Mar 16 12:26:19 2012] [error] dep_engine.c(324) Axis2 Configuration file name not found
[Fri Mar 16 12:26:19 2012] [error] conf_init.c(56) Creating deployment engine failed for repository ../
[Fri Mar 16 12:26:19 2012] [error] http_receiver.c(126) unable to create private configuration contextfor repo path ../
[Fri Mar 16 12:26:19 2012] [error] http_server_main.c(215) Server creation failed: Error code: 18 :: Configuration file cannot be found
It seems the server cannot locate the file axis2.xml.
I have put axis2.xml in the repo's root. I have correctly set the environment variable $AXIS2C_HOME because the server write the logs in the right folder.
Here is my repo's structure:
antoine#Antoines-MacBook-Air:repo $ pwd
/Users/antoine/Documents/axis2c_test/repo
antoine#Antoines-MacBook-Air:repo $ ll -R
total 16
-rw-r--r--# 1 antoine staff 5.8K Mar 16 10:06 axis2.xml
drwxr-xr-x 53 antoine staff 1.8K Mar 16 10:06 lib
drwxr-xr-x 4 antoine staff 136B Mar 16 12:26 logs
drwxr-xr-x 4 antoine staff 136B Mar 16 11:14 services
./lib:
total 25816
-rwxr-xr-x 1 antoine staff 246K Mar 16 10:06 libaxis2_axiom.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 246K Mar 16 10:06 libaxis2_axiom.0.dylib
-rw-r--r-- 1 antoine staff 1.3M Mar 16 10:06 libaxis2_axiom.a
-rwxr-xr-x 1 antoine staff 246K Mar 16 10:06 libaxis2_axiom.dylib
-rwxr-xr-x 1 antoine staff 1.0K Mar 16 10:06 libaxis2_axiom.la
-rwxr-xr-x 1 antoine staff 576K Mar 16 10:06 libaxis2_engine.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 576K Mar 16 10:06 libaxis2_engine.0.dylib
-rw-r--r-- 1 antoine staff 2.6M Mar 16 10:06 libaxis2_engine.a
-rwxr-xr-x 1 antoine staff 576K Mar 16 10:06 libaxis2_engine.dylib
-rwxr-xr-x 1 antoine staff 1.1K Mar 16 10:06 libaxis2_engine.la
-rwxr-xr-x 1 antoine staff 120K Mar 16 10:06 libaxis2_http_common.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 120K Mar 16 10:06 libaxis2_http_common.0.dylib
-rw-r--r-- 1 antoine staff 484K Mar 16 10:06 libaxis2_http_common.a
-rwxr-xr-x 1 antoine staff 120K Mar 16 10:06 libaxis2_http_common.dylib
-rwxr-xr-x 1 antoine staff 1.1K Mar 16 10:06 libaxis2_http_common.la
-rwxr-xr-x 1 antoine staff 20K Mar 16 10:06 libaxis2_http_receiver.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 20K Mar 16 10:06 libaxis2_http_receiver.0.dylib
-rw-r--r-- 1 antoine staff 57K Mar 16 10:06 libaxis2_http_receiver.a
-rwxr-xr-x 1 antoine staff 20K Mar 16 10:06 libaxis2_http_receiver.dylib
-rwxr-xr-x 1 antoine staff 1.2K Mar 16 10:06 libaxis2_http_receiver.la
-rwxr-xr-x 1 antoine staff 112K Mar 16 10:06 libaxis2_http_sender.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 112K Mar 16 10:06 libaxis2_http_sender.0.dylib
-rw-r--r-- 1 antoine staff 355K Mar 16 10:06 libaxis2_http_sender.a
-rwxr-xr-x 1 antoine staff 112K Mar 16 10:06 libaxis2_http_sender.dylib
-rwxr-xr-x 1 antoine staff 1.2K Mar 16 10:06 libaxis2_http_sender.la
-rwxr-xr-x 1 antoine staff 49K Mar 16 10:06 libaxis2_parser.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 49K Mar 16 10:06 libaxis2_parser.0.dylib
-rw-r--r-- 1 antoine staff 139K Mar 16 10:06 libaxis2_parser.a
-rwxr-xr-x 1 antoine staff 49K Mar 16 10:06 libaxis2_parser.dylib
-rwxr-xr-x 1 antoine staff 982B Mar 16 10:06 libaxis2_parser.la
-rwxr-xr-x 1 antoine staff 57K Mar 16 10:06 libaxis2_xpath.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 57K Mar 16 10:06 libaxis2_xpath.0.dylib
-rw-r--r-- 1 antoine staff 190K Mar 16 10:06 libaxis2_xpath.a
-rwxr-xr-x 1 antoine staff 57K Mar 16 10:06 libaxis2_xpath.dylib
-rwxr-xr-x 1 antoine staff 902B Mar 16 10:06 libaxis2_xpath.la
-rwxr-xr-x 1 antoine staff 193K Mar 16 10:06 libaxutil.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 193K Mar 16 10:06 libaxutil.0.dylib
-rw-r--r-- 1 antoine staff 982K Mar 16 10:06 libaxutil.a
-rwxr-xr-x 1 antoine staff 193K Mar 16 10:06 libaxutil.dylib
-rwxr-xr-x 1 antoine staff 867B Mar 16 10:06 libaxutil.la
-rwxr-xr-x 1 antoine staff 63K Mar 16 10:06 libguththila.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 63K Mar 16 10:06 libguththila.0.dylib
-rw-r--r-- 1 antoine staff 191K Mar 16 10:06 libguththila.a
-rwxr-xr-x 1 antoine staff 63K Mar 16 10:06 libguththila.dylib
-rwxr-xr-x 1 antoine staff 923B Mar 16 10:06 libguththila.la
-rwxr-xr-x 1 antoine staff 229K Mar 16 10:06 libneethi.0.6.0.dylib
-rwxr-xr-x 1 antoine staff 229K Mar 16 10:06 libneethi.0.dylib
-rw-r--r-- 1 antoine staff 1.4M Mar 16 10:06 libneethi.a
-rwxr-xr-x 1 antoine staff 229K Mar 16 10:06 libneethi.dylib
-rwxr-xr-x 1 antoine staff 1.0K Mar 16 10:06 libneethi.la
drwxr-xr-x 3 antoine staff 102B Mar 16 10:06 pkgconfig
./lib/pkgconfig:
total 8
-rw-r--r-- 1 antoine staff 256B Mar 16 10:06 axis2c.pc
./logs:
total 24
-rw-r--r-- 1 antoine staff 12K Mar 16 12:26 axis2.log
./services:
total 32
-rwxr-xr-x 1 antoine staff 10K Mar 16 12:26 libhello.dylib
-rw-r--r-- 1 antoine staff 209B Mar 16 10:06 services.xml
Does someone see what I am doing wrong?
I am using the client side consumer only, but maybe the solution I have can help you.
In order to run the server you need to set AXIS2C_HOME environment variable to point to the AXIS2C installation.
For the client you don't need to, you just specifiy the location of the axis2.xml file when creating a new instance of axis2c_stub_t type (aka set the client_home parameter.)