LINUX.ORG.RU

Сообщения kote

 

log4j не видит конфиг

 ,

Запускаю приложение с параметром -Dlog4j.configuration=$APP_HOME/conf/log4j.xml

System.out.println(System.getProperty(«log4j.configuration»));

выводит правильный путь до конфига.

Logger.getLogger(com.example.Main.class).info(«hello world») ничего никуда не выводит

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
        <param name="Target" value="System.out"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%p %c: %m%n"/>
        </layout>
    </appender>

    <logger name="com.example.Main">
        <level value="INFO" />
        <appender-ref ref="CONSOLE" />
    </logger>

    <root>
        <priority value ="info" />
        <appender-ref ref="CONSOLE" />
    </root>
</log4j:configuration>

Что я делаю не так?

kote
()

Последовательная инициализация приложения в angular

 

Возможно ли заставить ангулар при старте приложения ожидать первичной прогрузки данных с сервера и только потом инициализировать контроллеры и рисовать страницу? У меня с сервера получаются данные об авторизованном пользователе.

kote
()

Lucene не ищет цифры

 

Пытаюсь с помощью lucene индексировать , а потом искать интовое поле. В итоге ничего не находит (по текстовым полям все ищется прекрасно). Индексация выглядит следующим образом:

        Document doc = new Document();
//UserType = 1
        doc.add(new IntField("userType", user.getType().getId(), Field.Store.YES));
            FSDirectory dir = FSDirectory.open(FileSystems.getDefault().getPath(indexDir));
            IndexWriterConfig config = new IndexWriterConfig(new StandardAnalyzer());
            writer = new IndexWriter(dir, config);
            writer.addDocument(doc);

Для поиска пробовал использовать следующие запросы:

 new QueryParser(defautField, new StandartAnalyzer()).parse("userType:1");
и
 new QueryParser(defautField, new StandartAnalyzer()).parse("userType:[1 TO 1]");

kote
()

Добавить админа на геррит

 ,

Есть геррит с базой h2, авторизация админа была через гугловый openId. Пока был в теплых странах гугл свой openId сервис вырубил.

1) Как можно вернуть доступ к нему?

2) можно ли как то сделать нормальную авторизацию по логину/паролю и списком пользователей с правами

kote
()

Отключить триммирование результата фильтрации

 

Пытаюсь вывести дерево категорий в <select>, фильтром делаю отступ, в итоге этот отступ триммируется, можно ли это как то отключить?

<select id="cat">
   <option value="{{category.id}}" ng-repeat="category in   categories">{{category | intend}}</option>
</select>

app.filter('intend', function() {
    return function(category) {
        var INTENT_SIZE = 4;
        if (category == null) {
            return '';
        }
        var result = "";
        for (var i = 0; i < category.intend * INTENT_SIZE; i++) {
            result += " ";
        }
        result += category.name;
        return result;
    };
})
kote
()

Отправка email без настройки smtp

 ,

Php умеет отправлять email, через без настройки smtp (через sendmail и тп).

Возможно ли тоже самое сделать в java?

kote
()

Тянется не та версия servlet-api

 

Прописал версию 3.1.0 для javax.servlet-api, при сборке продолжает тянуться 2.3.0. В чем может быть причина

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example.web</groupId>
    <artifactId>rest</artifactId>
    <packaging>war</packaging>

    <name>web/rest</name>
    <version>1.0-SNAPSHOT</version>

    <parent>
        <groupId>com.example</groupId>
        <artifactId>root</artifactId>
        <version>1.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <dependencies>
        <!-- Project dependencies -->
        <dependency>
            <groupId>com.example</groupId>
            <artifactId>core</artifactId>
        </dependency>

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>nl.captcha.simplecaptcha</artifactId>
        </dependency>
        <!-- Jersey dependencies -->
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-json-processing</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-grizzly2-http</artifactId>
        </dependency>

        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-moxy</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-servlet-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.test-framework.providers</groupId>
            <artifactId>jersey-test-framework-provider-bundle</artifactId>
            <type>pom</type>
        </dependency>
    </dependencies>
</project>

kote
()

j_security_check 404

 , ,

Решил сделать аутентификацию в своем ангулар приложении, стандартные аутентификаторы не покатили решил свой написать.

Взял за основу томкатовский BasicAuthentificator и выпилил из него все лишнее (в идеале хочу чтобы он работал как рест-сервис, те json возвращал).

В итоге при обращении к j_security_check вылетает 404, хотя аутентификация проходит и сессия заполняется.

Стал копать, выяснил, что ошибку дает DefaultServlet в этих строках:

        CacheEntry cacheEntry = resources.lookupCache(path);
        if (!cacheEntry.exists) {

Вопрос: что это такое?

web.xml:

    <!-- j_security_check -->
    <security-constraint>
        <display-name>User</display-name>
        <auth-constraint>
            <role-name>user</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>default</realm-name>
    </login-config>
    <security-role>
        <role-name>user</role-name>
    </security-role>

context.xml:

<Valve className="com.example.authentificator.BasicAuthenticator" />

BasicAuthenticator:

public class BasicAuthenticator
    extends AuthenticatorBase {
    private static final Log log = LogFactory.getLog(BasicAuthenticator.class);

    /**
     * Descriptive information about this implementation.
     */
    protected static final String info =
        "com.example.authentificator.BasicAuthenticator/1.0";


    @Override
    public String getInfo() {

        return (info);

    }

    @Override
    public boolean authenticate(Request request, HttpServletResponse response, LoginConfig config) throws IOException {
        Principal principal = request.getUserPrincipal();
        String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE);
        if (principal != null) {
            if (log.isDebugEnabled())
                log.debug("Already authenticated '" + principal.getName() + "'");
            // Associate the session with any existing SSO session
            if (ssoId != null)
                associate(ssoId, request.getSessionInternal(true));
            return (true);
        }

        // Is there an SSO session against which we can try to reauthenticate?
        if (ssoId != null) {
            if (log.isDebugEnabled()) {
                log.debug("SSO Id " + ssoId + " set; attempting reauthentication");
            }
            if (reauthenticateFromSSO(ssoId, request)) {
                return true;
            }
        }

        String username = request.getParameter(Constants.FORM_USERNAME);
        String password = request.getParameter(Constants.FORM_PASSWORD);

        principal = context.getRealm().authenticate(username, password);
        if (principal != null) {
            register(request, response, principal,
                    HttpServletRequest.BASIC_AUTH, username, password);
            response.sendError(HttpServletResponse.SC_OK);
            return true;
        }

        response.sendError(HttpServletResponse.SC_FORBIDDEN);
        return false;

    }


    @Override
    protected String getAuthMethod() {
        return HttpServletRequest.BASIC_AUTH;
    }
}

kote
()

nginx проксирование

 

Есть внешний адрес 80.80.80.80:80 привязанный к адресу example.com

Нужно сделать в nginx'е чтобы при заходе на host1.example.com перебрасывалось автоматом на внутренний сервак(другая машина) 192.168.1.150:9091.

В какую сторону копать?

kote
()

jenkins gerrit-plugin with multiple repo

 , ,

Пытаюсь сделать автоверификацию на несколько проектов геррита. Возможно ли сделать это одним проектом дженкинса?

При попытке добавить еще 1 репозиторий в multiplescm-plugin сборка падает из-за того что не находит коммит.

Triggered by Gerrit: http://github.example.com:8082/79
Building in workspace /var/lib/jenkins/jobs/Precommit verifier/workspace
 > /usr/bin/git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.project1.url ssh://verifier@github.example.com:29418/project1.git
Fetching upstream changes from ssh://verifier@github.example.com:29418/project1.git
 > /usr/bin/git --version
using GIT_SSH to set credentials verifier
 > /usr/bin/git fetch --tags --progress ssh://verifier@github.example.com:29418/project1.git refs/changes/79/79/1
 > /usr/bin/git rev-parse 441380d2893e3bcd9289467ffc9dadfcd36cb947^{commit}
Checking out Revision 441380d2893e3bcd9289467ffc9dadfcd36cb947 (master)
 > /usr/bin/git config core.sparsecheckout
 > /usr/bin/git checkout -f 441380d2893e3bcd9289467ffc9dadfcd36cb947
 > /usr/bin/git rev-parse FETCH_HEAD^{commit}
 > /usr/bin/git rev-list 381cabeac3ef8a74d4e3a7867a94d91e93d32130
 > /usr/bin/git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.project2.url ssh://verifier@github.example.com:29418/project2.git
Fetching upstream changes from ssh://verifier@github.example.com:29418/project2.git
 > /usr/bin/git --version
using GIT_SSH to set credentials verifier
 > /usr/bin/git fetch --tags --progress ssh://verifier@github.example.com:29418/project2.git refs/changes/79/79/1
FATAL: Failed to fetch from ssh://verifier@github.example.com:29418/project2.git
hudson.plugins.git.GitException: Failed to fetch from ssh://verifier@github.example.com:29418/project2.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
	at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:118)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1252)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
	at hudson.model.Run.execute(Run.java:1732)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:234)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress ssh://verifier@github.example.com:29418/project2.git refs/changes/79/79/1" returned status code 128:
stdout: 
stderr: fatal: Couldn't find remote ref refs/changes/79/79/1

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1325)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1186)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:257)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:620)
	... 11 more
kote
()

yuicompressor-maven-plugin игнорирует конфигурацию

 

Пытаюсь сжать js скрипты из 1й из директорий в 1 файл, при этом yuicompressor-maven-plugin игнорирует конфигурацию.

  <build>
        <plugins>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>yuicompressor-maven-plugin</artifactId>
                <version>1.5.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compress</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <nosuffix>true</nosuffix>
                    <aggregations>
                        <aggregation>
                            <insertNewLine>true</insertNewLine>
                            <output>${project.build.directory}/${project.build.finalName}/static/all.js</output>
                            <includes>
                                <include>${basedir}/src/main/webapp/resources/app/*.js</include>
                            </includes>
                            <excludes>
                               <exclude>${basedir}/src/main/webapp/resources/js/*.js</exclude>
                    </excludes>
                        </aggregation>
                    </aggregations>
                </configuration>
            </plugin>

        </plugins>
    </build>

и падает с ошибкой:

[WARNING] ...angular-route.js:line -1:column -1:The symbol onNgViewEnter is declared but is apparently never used.
This code can probably be written in a more compact way.
,currentElement||$element).then(function ---> onNgViewEnter <--- (){if(angular.isDefined(autoScrollExp
[INFO] angular-route.js (35944b) -> angular-route.js (4584b)[12%]
[ERROR] ...angular.js:line 424:column 13:missing ( before function parameters.
	function int(str) {
[ERROR] ...angular.js:line 424:column 13:missing } after function body
	function int(str) {
[ERROR] ...angular.js:line 426:column 1:syntax error
	}
[ERROR] ...angular.js:line 429:column 33:missing ; before statement
	function inherit(parent, extra) {
[ERROR] ...angular.js:line 431:column 1:syntax error
	}
[ERROR] ...angular.js:line 449:column 17:missing ; before statement
	function noop() {}
[ERROR] ...angular.js:line 450:column 6:syntax error
	noop.$inject = [];
[ERROR] ...angular.js:line 10509:column 27:identifier is a reserved word
	  locationObj.$$port = int(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
[ERROR] ...angular.js:line 15921:column 14:identifier is a reserved word
	          int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
[ERROR] ...angular.js:line 15921:column 27:illegal character
	          int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
[ERROR] ...angular.js:line 15921:column 29:syntax error
	          int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
[ERROR] ...angular.js:line 15922:column 16:syntax error
	        boxee = /Boxee/i.test(($window.navigator || {}).userAgent),
[ERROR] ...angular.js:line 15923:column 19:syntax error
	        document = $document[0] || {},
[ERROR] ...angular.js:line 15924:column 21:syntax error
	        vendorPrefix,
[ERROR] ...angular.js:line 15925:column 22:syntax error
	        vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,
[ERROR] ...angular.js:line 15926:column 20:syntax error
	        bodyStyle = document.body && document.body.style,
[ERROR] ...angular.js:line 15927:column 22:syntax error
	        transitions = false,
[ERROR] ...angular.js:line 15928:column 21:syntax error
	        animations = false,
[ERROR] ...angular.js:line 17203:column 21:identifier is a reserved word
	        tzHour = int(match[9] + match[10]);
[ERROR] ...angular.js:line 17204:column 20:identifier is a reserved word
	        tzMin = int(match[9] + match[11]);
[ERROR] ...angular.js:line 17206:column 32:identifier is a reserved word
	      dateSetter.call(date, int(match[1]), int(match[2]) - 1, int(match[3]));
[ERROR] ...angular.js:line 17207:column 18:identifier is a reserved word
	      var h = int(match[4] || 0) - tzHour;
[ERROR] ...angular.js:line 17208:column 18:identifier is a reserved word
	      var m = int(match[5] || 0) - tzMin;
[ERROR] ...angular.js:line 17209:column 18:identifier is a reserved word
	      var s = int(match[6] || 0);
[ERROR] ...angular.js:line 17226:column 44:identifier is a reserved word
	      date = NUMBER_STRING.test(date) ? int(date) : jsonStringToDate(date);
[ERROR] ...angular.js:line 17419:column 18:identifier is a reserved word
	      limit = int(limit);
[ERROR] ...angular.js:line 21344:column 25:identifier is a reserved word
	        var intVal = int(value);
[ERROR] ...angular.js:line 21364:column 24:identifier is a reserved word
	        minlength = int(value) || 0;
[ERROR] ...angular.js:line 26055:column 11:invalid return
	    return;
[ERROR] ...angular.js:line 26068:column 1:syntax error
	})(window, document);
[ERROR] ...angular.js:line 1:column 0:Compilation produced 30 syntax errors.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.720 s

angular.js находиться в /src/main/webapp/resources/js/

kote
()

Объединение скриптов js в 1 на этапе сборки

 , ,

Есть ли какой нибудь плагин для мавена чтобы объединить js-скрипты в один скрипт на этапе сборки (кроме grunt)?

Grunt не устроил тем что требуется ставить nodejs для него, хотелось бы избежать таких трудностей

kote
()

Модульность angular

 

Наткнулся на такую структуру приложения :

http://stepansuvorov.com/blog/wp-content/uploads/2014/11/Screenshot-2014-11-1...

Вопрос: предполагается ли что каждый js скрипт будет отдельным модулем ангулара(с подключением всего в app.js) или нет? Вопрос№2: предполагается ли что загрузку всех этих скриптов надо вести в index'е?

kote
()

Перенос ветки в git

 

Есть 3 ветки: release branch1 branch2

Branch2 является мержем release и branch1

Вопрос: как перенести всё из branch2 в branch1 ?

kote
()

historyObject + angular + Tomcat

 , , ,

Возможно ли заставить как то томкат обрабатывать html5 (historyObject) роутинг ангулара (чтобы по ф5 страницы открывались)?

kote
()

angular + jquery plugins onReady

 ,

Здравствуйте. Была страница целостная на которой использовались плагины jquery типа placeholder'a (прописаны в head). Вынес часть содержимого в шаблоны ангулара в итоге placeholder перестал применяться. +  в firebug вылетает ошибка вида:

Error: node is undefined
compositeLinkFn@http://127.0.0.1:9090/web-design/resources/js/common/angular.js:7078:13
compositeLinkFn@http://127.0.0.1:9090/web-design/resources/js/common/angular.js:7078:13
compositeLinkFn@http://127.0.0.1:9090/web-design/resources/js/common/angular.js:7078:13
function init() {
    $('input, textarea').placeholder();
}
controllers.controller('MainController', ['$scope', '$http', '$rootScope',
  function($scope, $http, $rootScope) {
    init();
  }
]);
        <form action="" method="post">
            <input type="text" placeholder="Введите слово и словосочетание целиком">
            <input type="submit" value="Поиск" class="butt">
        </form>

+ вопрос №2 можно ли сделать нормальный document.onready, чтобы не прописывать init в каждый контроллер?

kote
()

java.lang.IllegalArgumentException: No query defined for that name

 , ,

Пытаюсь сделать простой запрос через jpa. Вылетает эта дрянь. Что это может быть?

java.lang.IllegalArgumentException: No query defined for that name {User.getAll}
	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.buildQueryFromName(AbstractEntityManagerImpl.java:788)
	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:925)
	at ru.example.dao.user.UserDao.loadUser(UserDao.java:39)
	...

User.java:

import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

@XmlRootElement
@Entity
@Table(name = "users")
@NamedQueries({
        @NamedQuery(name = "User.getAll", query = "SELECT u from User u"),
        @NamedQuery(name = "User.getByLogin", query = "SELECT u FROM User u WHERE u.login = :login")
})
public class User implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;
    @Column(name = "login", length = 50)
    private String login;
    public long getId() { return id; }
    public void setId(long id) { this.id = id; }

    public String getLogin() { return login; }

    public void setLogin(String login) { this.login = login;}
}

UserDao.java:

import ru.example.db.user.User;
import javax.persistence.TypedQuery;

public class UserDao {


    public User loadUser() {
    	EntityManager em = Persistence.createEntityManagerFactory("JPA").createEntityManager();
        TypedQuery <User> namedQuery = em.createNamedQuery("User.getAll", User.class);
        return namedQuery.getResultList().get(0);
    }

}

persistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
                                 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
             version="1.0">

    <persistence-unit name="JPA">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <properties>
            <property name="hibernate.archive.autodetection" value="true"/>
            <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
            <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/postgres"/>
            <property name="hibernate.connection.schema" value="public"/>
            <property name="hibernate.connection.username" value="postgres"/>
            <property name="hibernate.connection.password" value="owner"/>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL9Dialect"/>
            <property name="hibernate.hbm2ddl.auto" value="update"/>
        </properties>
    </persistence-unit>
</persistence>

kote
()

Проброс авторизационных данных из 1го war в другой

 , , ,

Возможно ли авторизационные(сессию) пробросить из 1го варика в другой. Хочу сделать в 1м варике дизайн + настройки j_security_check, а в другом рест который будет серверную логику всю осуществлять

kote
()

Opensuse 11.1 -> 13.1 update

 ,

Не могу обновить сюзю с 11 до 13 версии по онлайну. Прописал репозитории через яст для 13.1. Убрал репозитории 11.1.

zypper сыпит следующее:

linux-2qwu:/var/cache # zypper refresh
Repository 'oss' is up to date.
Building repository 'oss' cache [done]
Error building the cache database:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/oss/solv' '/var/cache/zypp/raw/oss'
Unknown checksum type: 6: SHA256

Skipping repository 'oss' because of the above error.
Repository 'Updates for 13.1' is up to date.
Building repository 'Updates for 13.1' cache [done]
Error building the cache database:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/Updates_for_11.0_1/solv' '/var/cache/zypp/raw/Updates_for_11.0_1'
cat: primary.xml*: No such file or directory
repo_rpmmd: no element found at line 1:0

Skipping repository 'Updates for 13.1' because of the above error.
Repository 'openSUSE-13.1-Non-Oss' is up to date.
Building repository 'openSUSE-13.1-Non-Oss' cache [done]
Error building the cache database:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/openSUSE-13.1-Non-Oss/solv' '/var/cache/zypp/raw/openSUSE-13.1-Non-Oss'
malformed line: RELNOTESURL
Unknown checksum type: 6: SHA256

Skipping repository 'openSUSE-13.1-Non-Oss' because of the above error.
Could not refresh the repositories because of errors.
linux-2qwu:/var/cache # zypper dup
Building repository 'oss' cache [done]
Error building the cache database:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/oss/solv' '/var/cache/zypp/raw/oss'
Unknown checksum type: 6: SHA256

Warning: Disabling repository 'oss' because of the above error.
Building repository 'Updates for 13.1' cache [done]
Error building the cache database:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/Updates_for_11.0_1/solv' '/var/cache/zypp/raw/Updates_for_11.0_1'
cat: primary.xml*: No such file or directory
repo_rpmmd: no element found at line 1:0

Warning: Disabling repository 'Updates for 13.1' because of the above error.
Building repository 'openSUSE-13.1-Non-Oss' cache [done]
Error building the cache database:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/openSUSE-13.1-Non-Oss/solv' '/var/cache/zypp/raw/openSUSE-13.1-Non-Oss'
malformed line: RELNOTESURL
Unknown checksum type: 6: SHA256

Warning: Disabling repository 'openSUSE-13.1-Non-Oss' because of the above error.
Reading installed packages...
Nothing to do.
linux-2qwu:/var/cache #

В какую сторону копать?

kote
()

jenkins все время рушит сборку с unstable

 , , ,

Постоянно после верификации патча на геррите дженкинс ставит -1 с Patch Set 1: Code-Review-1 Build Unstable http://10.172.10.11/job/Precommit verifier/90/ : UNSTABLE

как это лечить? Все другии патчи поабандонил, репу пропулил перед пушем

kote
()

RSS подписка на новые темы