papka24-core's People
Forkers
giopw denisgolius ikosyanenko bekberov imaginal koltsovmo kedd yarmol vilkoalexander leits marbug maxisoft-git oleksandrohavrylenko alex-anakin arsen-aliev kield-01 rotanev maximbelov classodua viptech gridl yevhenpalamarchuk usternes panaceya vsel skravets1987 syavson zoe704 goblin9700 spalax sankam-nikolya s1l2 lesha888 sergeypayu pliasun olax skycomua sashkanebesny wooddy mgordii j8088 evgenromanov atolok edgica vlisivka petrovasynyuk gmerzu terrium88 unsupportedcallbackexception leonidstakhovsky the-mikepapka24-core's Issues
Скрипт установки
Такой нескромный вопрос ..можно ли обновить установочный скрипт? ..существующий вариант не работает
Rewrite build scrips (sh) using gradle (or python, or maven)
Howto setup domain key
500 server error during reqistration
Add additional email parameter(s) to be able to use any external email servers
User postfix instance to send emails
Prerequisites
- Use postfix instance inside cluster, define next properties inside .env
EMAIL_SERVER_DOMAIN=smtp.example.com
EMAIL_SERVER_PORT=25
EMAIL_SERVER_USER=user
EMAIL_SERVER_PASSWORD=password
- Run cluster ./up.sh
Expected behaviour
- No error(s) in log
- Email is sent during registration
Actual behavior
- Front-end shows no error(s)
- Error(s) in log
static_1 | 176.241.139.47 - - [19/Aug/2017:10:07:39 +0000] "POST /api/reg/ HTTP/1.1" 200 0 "https://95.85.56.80/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" "-"
server_1 | 170819-10:07:47.893 [EmailQueue:172] fail to send email
server_1 | javax.mail.MessagingException: Could not convert socket to TLS
server_1 | at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1999)
server_1 | at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:709)
server_1 | at javax.mail.Service.connect(Service.java:364)
server_1 | at javax.mail.Service.connect(Service.java:245)
server_1 | at ua.papka24.server.api.helper.EmailQueueConsumer.sendEmails(EmailQueueConsumer.java:106)
server_1 | at ua.papka24.server.api.helper.EmailQueueConsumer.run(EmailQueueConsumer.java:182)
server_1 | at java.lang.Thread.run(Thread.java:748)
server_1 | Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
server_1 | at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
server_1 | at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
server_1 | at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
server_1 | at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
server_1 | at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
server_1 | at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
server_1 | at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
server_1 | at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
server_1 | at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
server_1 | at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
server_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
server_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
server_1 | at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:543)
server_1 | at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:480)
server_1 | at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1994)
server_1 | ... 6 common frames omitted
server_1 | Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Помилковий підпис если загрузить уже подписанный документ
Если загрузить документ, затем его подписать.
Нажать на кнопку "Завантажити документ з ЕЦП".
Потом снова загрузить на сервер только-что скачанный документ, то в окне "Підписали" сообщает - "Помилковий підпис".
В БД в колонке hash таблицы resource хэши различны. Я так понимаю, это происходить из-за того, что хэш документа считается до того, как произойдет проверка подписан документ или нет...
Scylla cluster starts before server properties are read
Issue
Server doesn't use Scylla server DNS name from the config.properties.
Whatever Scylla DNS is defined, server will use localhost
server_1 | com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.TransportException: [localhost/127.0.0.1:9042] Cannot connect), localhost/0:0:0:0:0:0:0:1:9042 (com.datastax.driver.core.exceptions.TransportException: [localhost/0:0:0:0:0:0:0:1:9042] Cannot connect))
server_1 | at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:232)
Environment
- Ubuntu 16.04
# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
Root cause
Scylla cluster starts before server reads properties from config.properties file.
Workaround
Hardcode Scylla server DNS name
server/src/main/java/ua/papka24/server/db/scylla/ScyllaCluster.java
ln 82
this.scyllaPath = "scylla";//scyllaPath;
Setup Jenkins instance and configure build process (+ web-hooks from github)
Define product license.
If would be nice to see what license this product have.
Maybe Apache 2? WDYT?
Java backend doesn't send email after registration
Build/Config/Deploy
Hey, guys!
It would be amazing, if you'll make any spec how to build/configure/deploy this application for ordinary mortal.
Probably would be great few options for community and others:
- Docket/Vagrant
- Console receipt
- Preconfigured AWS AMI.
- Puppet/Chef/Ansible (optional)
Ready to help to cover methods described above.
Thanks a lot, waiting for any feedback
"Помилка сервера реєстрації 404"
Error loading file to server 502
static_1 | 2017/08/18 12:17:43 [error] 5#5: *77 connect() failed (111: Connection refused) while connecting to upstream, client: 10.8.8.41, server: doclib.zokb.local, request: "GET /wss HTTP/1.1", upstream: "http://172.18.0.6:9999/wss", host: "doclib.zokb.local"
static_1 | 10.8.8.41 - - [18/Aug/2017:12:17:43 +0000] "GET /wss HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36" "-"
static_1 | 2017/08/18 12:17:46 [error] 5#5: *79 connect() failed (111: Connection refused) while connecting to upstream, client: 10.8.8.41, server: doclib.zokb.local, request: "GET /wss HTTP/1.1", upstream: "http://172.18.0.6:9999/wss", host: "doclib.zokb.local"
Проблема с регистрацией пользователя
host not found in upstream *:7777
server_1 | ... 11 more
server_1 | 170813-09:50:23.175 [Main:247] error
server_1 | java.net.SocketException: Unresolved address
server_1 | at sun.nio.ch.Net.translateToSocketException(Net.java:131)
server_1 | at sun.nio.ch.Net.translateException(Net.java:157)
server_1 | at sun.nio.ch.Net.translateException(Net.java:163)
server_1 | at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 76)
server_1 | at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind ToChannelAndAddress(TCPNIOBindingHandler.java:131)
server_1 | at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind (TCPNIOBindingHandler.java:88)
server_1 | at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPN IOTransport.java:238)
server_1 | at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPN IOTransport.java:218)
server_1 | at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPN IOTransport.java:209)
server_1 | at org.glassfish.grizzly.http.server.NetworkListener.start(Netwo rkListener.java:723)
server_1 | at org.glassfish.grizzly.http.server.HttpServer.start(HttpServer .java:277)
server_1 | at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.cr eateHttpServer(GrizzlyServerFactory.java:329)
server_1 | at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.cr eateHttpServer(GrizzlyServerFactory.java:346)
server_1 | at com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.cr eateHttpServer(GrizzlyServerFactory.java:245)
server_1 | at ua.papka24.server.Main.main(Main.java:214)
server_1 | Caused by: java.nio.channels.UnresolvedAddressException: null
server_1 | at sun.nio.ch.Net.checkAddress(Net.java:101)
server_1 | at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelIm pl.java:218)
server_1 | at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java: 74)
server_1 | ... 11 common frames omitted
Всё делал чётко по инструкции. Сертификаты сначала подсунул коммерческие, потом самоподписные ...вроде вебсервер должен был их съесть.
И я не могу разобраться куда вебсервер пишет логи..
Повідомлення: Invalid PDF structure
Correct value for jdbc.dbver property
What should be correct value for jdbc.dbver?
If I try to use default value: 5, I receive next error.
jdbc.dbver: 5
170627-20:28:05.059 [u.p.s.d.u.UpgradeUtil:133] error upgrade database:
org.postgresql.util.PSQLException: ERROR: relation "users" does not exist
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:301)
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:287)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:264)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:260)
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:92)
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
at ua.papka24.server.db.util.UpgradeUtil.upgrade(UpgradeUtil.java:84)
at ua.papka24.server.Main.main(Main.java:179)
Used DBs
I'm trying to build docker-compose setup
From source code and logs I can see references to
- Apache Cassandra
tried: localhost/127.0.0.1:9042
- postgresql
jdbc.driver=org.postgresql.Driver
- ScyllaDB
scylla.path=localhost
- Redis
redis.path=localhost
Should I deploy and configure all 4 DBs?
Thanks!
Create service high level UML diagram
When do you plan to re-add a cryptographic realization ?
I saw you dropped all realization of the cryptographic in the file:
https://github.com/Papka24/base/blob/master/server/src/main/java/ua/papka24/server/security/CryptoManager.java
When do you plan to re-add a cryptographic realization?
Rename repository name 'base' to 'papka24-base'
I would suggest change repository name to something which can reflect source org/project and will not be some general term.
Since after cloning, developers will see <user/org>/base formula for repository, this may conflict with other repositories.
Setup Sonarqube instance for static code analysis (+ unit-tests code coverage)
Отсутствие полной реализации работы с подписанной сущностью
на фронте подпись работает, на беке всегда bad request из-за отсутствия полной реализации работы с подписанной сущностью
Нет реализации getUniqueCms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.