Архив за месяц: Сентябрь 2013

Lynx: работа через proxy-сервер с авторизацией
0 (0)

17 сентября 2013

При попытке открыть страницу в браузере Lynx, находясь при этом за прокси-сервером — получим ошибку: $ lynx http://ya.ru Looking up ya.ru Making HTTP connection to ya.ru Alert!: Unable to connect to remote host. lynx: Can’t access startfile http://ya.ru/

Loading

JAVA: Caused by: java.io.IOException: No space left on device
0 (0)

16 сентября 2013

При сборке Java-проекта с помощью Apache Maven — сборка прервалась с такой ошибкой: [INFO] Linking into /home/setevoy/***-4.3.0.49/com.***.Explorer [INFO]    Invoking Linker Standard [INFO]       [ERROR] Failed to link [INFO] java.lang.RuntimeException: Unable to write to byte cache … [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177) [INFO] Caused by: java.io.IOException: No space left on device [INFO] at java.io.RandomAccessFile.writeBytes(Native Method) [INFO] at java.io.RandomAccessFile.write(RandomAccessFile.java:486) [INFO]… Читать далее »

Loading

Java: Unable to locate the Javac Compiler
0 (0)

15 сентября 2013

Сборка проекта с помощью Apache Maven остановилась с такой ошибкой: [ERROR] BUILD FAILURE [INFO] ———————————————————————— [INFO] Compilation failure Unable to locate the Javac Compiler in: /usr/lib/jvm/java-6-openjdk-i386/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java… Читать далее »

Loading

CentOS: использование yum через proxy
0 (0)

15 сентября 2013

Без настроенного прокси-сервера для YUM — будем получать такую ошибку: # yum list Loaded plugins: fastestmirror, refresh-packagekit, security Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was 14: PYCURL ERROR 7 — «Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable» Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again Настройки… Читать далее »

Loading

CentOS: scp: command not found
0 (0)

15 сентября 2013

После установки CentOS 6.4 minimal install — в нём не оказалось даже SCP. При попытке копирования на него — получаем ошибку: Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP. Command failed… Читать далее »

Loading

CentOS: установка Graphite
0 (0)

13 сентября 2013

Устанавливаться система будет на: # cat /etc/redhat-release CentOS release 6.4 (Final) Устанавливаем необходимые пакеты: # yum -y install git python-devel mod_wsgi mod_python python-sqlite2 bitmap pycairo python-zope-interface python-simplejson django-tagging python-twisted-web bitmap-fonts gcc-c++ openssl-devel make

Loading

CentOS: mod_wsgi Permission denied — Couldn't bind unix domain socket.
0 (0)

12 сентября 2013

После установки mod_wsgi в операционной системе CentOS сервер Apache в лог-файл /var/log/httpd/error_log начал писать ошибку: [Thu Sep 12 04:12:38 2013] [alert] (13)Permission denied: mod_wsgi (pid=1754): Couldn’t bind unix domain socket ‘/etc/httpd/logs/wsgi.1754.0.1.sock’.

Loading

CentOS: отключение SELinux
0 (0)

12 сентября 2013

Это, скорее — анти-security. Настройки SELinux для CentOS находятся в файле /etc/sysconfig/selinux: # cat /etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: #       enforcing — SELinux security policy is enforced. #       permissive — SELinux prints warnings instead of enforcing. #       disabled -… Читать далее »

Loading

Использование Git через HTTP-proxy
0 (0)

11 сентября 2013

При попытке  использовать git на системе, находящейся за proxy-сервером — получаем сообщение об ошибке: # git clone https://github.com/graphite-project/carbon.git Initialized empty Git repository in /home/setevoy/carbon/.git/ error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/graphite-project/carbon.git/info/refs fatal: HTTP request failed Что бы настроить git на использование прокси — создаём файл настроек:

Loading