Comments (13)
Could you try again, and when prompted for "Enter the name of the first user" enter something with a space, for example "B C", and confirm the error message in the middle of the logs is no longer present?
Just to confirm, did you see the initial Haplo login page when you visited the URL?
/cc @ptribble
from haplo.
Hi Ben,
thanks for the pointer. I can confirm that I could see the login page and navigate there, just not log in. I had abbreviated my input during the trials as I got tired of it, probably caused a new problem with that.
My last trial got a bit further and throws a different error:
Enter the name for this site: Haplo Test
Enter the name of the first user: Test User
Enter the email of the first user: [email protected]
Enter the password of the first user: XXXXX
*** Configuring application for haplo.simonserver.test
WARNING: user password does not meet security requirements
EXCEPTION IN RUNNER: #<ActiveRecord::RecordInvalid: Validation failed: Email is not a valid email address> (see server logs for more details)
DRb::DRbUnknownError: ActiveRecord::RecordInvalid
method_missing at /opt/haplo/vendor/jruby/lib/ruby/1.9/drb/drb.rb:1136
(root) at framework/console_client.rb:92
*** Haplo application for haplo.simonserver.test initialized ***
Browse to
http://haplo.simonserver.test/
And log in as the user you created above.
*** Welcome to Haplo ***
$
Same issues regarding the login. I am sure that this email is a valid one ;-) I am running it again with another address.
Where could I find the mentioned server logs? Screened briefly for them but could not find anything in the obvious locations.
from haplo.
I'm sorry for all the problems you're having. We need to make this setup script a bit more robust, and will do so ASAP.
It's not liking the email address for some reason. It should be accepted (I just tested it passes validation). Could you make absolutely sure there is no whitespace around the email?
Logs are in /haplo/log
Thanks for your patience.
from haplo.
I re-ran it with my personal email. Went through with the warning about a weak password, understandably.
I shall run it again with the failing email and pay attention to inserting it as it is. I will report back.
May I abuse this for a quick follow-up question? I looked at your documentation but did not find anything that helped me. If I want now install the haplo-repository and haplo-research-manager, or plugins, how would I do that? Can you point me to the right place in your docs, if available?
from haplo.
Great. Sounds like our setup script needs to be much more robust. Your feedback is very much appreciated.
There's some notes here on a quick start with Docker for Haplo Repository:
https://github.com/haplo-org/haplo-repository
To upload plugins into a development server which is running from a checkout of the haplo git repository:
Install the plugin tool: https://docs.haplo.org/dev/tool/plugin/install-unix
Then check out the git repositories next to each other, then see the instructions here under "Upload the plugin to your development server":
https://haplo.org/documentation/develop-plugin
In the haplo-repository git repository, use the command:
haplo-plugin -p hresrepodemo_application
This will then install and configure everything in the demo repository application.
from haplo.
Thanks a lot Ben!
I ran the script again and it worked with the other email. I might have entered an escape sequence trying to enter the "@" in the setup keyboard layout. This resolves my issues with the haplo-setup. Looking forward to test the next release as well.
Regarding the other question, thanks for the instructions. I had to see that i only looked at the "pinned projects" on this site, so I missed the other projects. I think I will get far with your instructions and see how it goes. The docker solution is not possible currently, as I am using VirtualBox constantly and was told during Docker setup that those two won´t go along well on the same system.
Thanks again!
from haplo.
My pleasure. You've been very helpful in reporting the problems you've encountered.
I'm going to leave this issue open until we have resolved the issues with the setup script and our documentation.
from haplo.
Hi again. One more issue here, as it could be connected to the setup script. I hope I got the workflow correct, but in any way here is what I did and what I saw.
- installing haplo with the script, giving haplo.simonserver.test as URL. Set name, username, email, password. Can access site and log in through web interface.
- Installing the plugin-tool using https://raw.githubusercontent.com/haplo-org/haplo-plugin-tool/master/install/haplo_plugin_install.sh . (I installed it on the server, is that an issue?)
- Following the instructions here, https://haplo.org/documentation/develop-plugin the "haplo-plugin auth" aborts due to wrong certificate. I see that the one in ~/haplo-dev-support/certificates/server.crt and /haplo/sslcerts/server.crt differ.
- using /haplo/sslcerts/server.crt I can run haplo-plugin, but get an error from the server.
~/x$ cp /haplo/sslcerts/server.crt .
~/x$ haplo-plugin auth haplo.simonserver.test:8443
Haplo Plugin Tool (33a3b9b)
NOTICE: Using alternative CAs for SSL from server.crt
Requesting token from https://haplo.simonserver.test:8443 ...
Server returned an error. Check hostname and port.
The server logs show during this request
==> /haplo/log/app.log <==
Request: 2019-05-07T11:16:03Z GET /api/plugin-tool-auth/start-auth
app: 4000
params: {"name":"ubuntu"}
Incorrect URL requested /api/plugin-tool-auth/start-auth
==> /haplo/log/http.log <==
2019-05-07 11:16:03,560 127.0.0.1 haplo.simonserver.test GET /api/plugin-tool-auth/start-auth?name=ubuntu 404 111 111 i 44 34 TLS_DHE_RSA_WITH_AES_256_CBC_SHA "-" "plugin-tool"
So I can connect to the server it seems, using the certificate from /haplo/sslcerts/ but the server does not understand the request.
Did I miss something in the server setup or is my approach wrong? If I should move this issue to another repository, please let me know.
Thanks in advance!
from haplo.
The plugin tool is generally installed on your computer, not the server, as the idea is you can develop plugins remotely from the server.
When the server starts, do you see a message:
**** PLUGIN DEBUGGING ENABLED ****
near the top? If not,
echo -n "yes" > /opt/haplo/etc/properties/plugin_debugging_support
and then restart the server. I'm guessing you followed the "production server" instructions rather than the development "build" instructions.
from haplo.
Thanks again Ben. This solved it. I had followed the production server instructions...
I will look more into all this once I got back from vacation. Looking forward to get this all to work and see the system in action!
from haplo.
Glad it's all sorted now. You've given us lots of pointers to improve documentation, thank you.
I'd be very curious about what your potential application for Haplo, and see if I can help. Would you like to send me an email? ben.summers @ the obvious domain.
from haplo.
I've pushed some updates to the install script, so that it validates user input in essentially the same way as the application, and we should no longer pass bad input through.
from haplo.
@simolon Does the revised documentation here https://docs.haplo.org/platform address the issues you found? Thanks for all your feedback.
from haplo.
Related Issues (13)
- Building on OS X gives lots of compiler warnings HOT 1
- Running script/server on Ubuntu 16.04 results into "Failed to obtain Ruby KFramework object when booting" HOT 1
- Schema requirements apply for feature std:navigation silently fails if characters other than [a-zA-Z0-9:-] used in position name HOT 3
- Broken link in GeoLite2 setup. HOT 2
- std_web_publisher: Check for file download permissions functions will always be true HOT 1
- OS X Build fails HOT 1
- Install is fragile on OS X HOT 2
- INSTALL.md is missing HOT 2
- Remove development postgresql same-user requirement. HOT 3
- Use pg_config to determine postgresql variables HOT 2
- Remove hardcoded dependency on Java 1.7 HOT 1
- When running script/server, fails with UnknownHostException: haplo.local HOT 1
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.
from haplo.