Comments (20)
And it stays at this screen after logging in with restya password.
I can click on "Register" and it takes me to this next page where there are no controls but it looks like I'm logged in.
Overall I'm assuming this could be an issue with npm not installing correctly and so if you need any specific information please let me know. Thanks!
from docker-restyaboard.
@codentest Please check developer console and network tab. If you notice any error there, please report it in https://github.com/RestyaPlatform/board
from docker-restyaboard.
Thank you for report and helping @codentest @rrjanbiah
I tested 7a3a1cb the following environment's docker, login is successfull without error.
- AmazonLinux on AWS t2.micro
- VirtualBox 4.3.12 boot2docker on Mac OSX 10.9.5 (powered by docker-machine)
from docker-restyaboard.
@namikingsoft Awesome, thank you.
from docker-restyaboard.
@namikingsoft @rrjanbiah I got something similar. I have a Ubuntu 14.04 VM on Virtualbox with a bridged adapter running docker to host the restyaboard docker container.
{
"id": "1",
"links": "[{\"slug\":\"setting_list\"},{\"slug\":\"view_board_star\"},{\"slug\":\"starred_board\"},{\"slug\":\"unstarred_board\"},{\"slug\":\"users_forgotpassword\"},{\"slug\":\"users_register\"},{\"slug\":\"users_login\"},{\"slug\":\"add_organization_user\"},{\"slug\":\"add_organization\"},{\"slug\":\"add_board\"},{\"slug\":\"subscribe_board\"},{\"slug\":\"copy_board\"},{\"slug\":\"add_board_users\"},{\"slug\":\"user_changepassword\"},{\"slug\":\"upload_organization_logo\"},{\"slug\":\"add_list\"},{\"slug\":\"subscribe_list\"},{\"slug\":\"comment_card\"},{\"slug\":\"subscribe_card\"},{\"slug\":\"vote_card\"},{\"slug\":\"add_card\"},{\"slug\":\"add_card_attachment\"},{\"slug\":\"add_labels\"},{\"slug\":\"add_checklists\"},{\"slug\":\"add_checklist_item\"},{\"slug\":\"convert_item_to_card\"},{\"slug\":\"add_user_profile_picture\"},{\"slug\":\"add_custom_background\"},{\"slug\":\"add_card_user\"},{\"slug\":\"copy_card\"},{\"slug\":\"user_activation\"},{\"slug\":\"edit_organization\"},{\"slug\":\"edit_organization_user\"},{\"slug\":\"edit_board_user\"},{\"slug\":\"edit_board\"},{\"slug\":\"unsubscribe_board\"},{\"slug\":\"edit_list\"},{\"slug\":\"edit_card\"},{\"slug\":\"unsubscribe_list\"},{\"slug\":\"unsubscribe_card\"},{\"slug\":\"unvote_card\"},{\"slug\":\"edit_comment\"},{\"slug\":\"edit_checklist\"},{\"slug\":\"edit_checklist_item\"},{\"slug\":\"undo_activity\"},{\"slug\":\"edit_user_details\"},{\"slug\":\"delete_board\"},{\"slug\":\"delete_organization\"},{\"slug\":\"remove_organization_user\"},{\"slug\":\"remove_board_user\"},{\"slug\":\"delete_list\"},{\"slug\":\"delete_comment\"},{\"slug\":\"delete_card\"},{\"slug\":\"remove_card_attachment\"},{\"slug\":\"delete_checklist\"},{\"slug\":\"delete_checklist_item\"},{\"slug\":\"remove_card_user\"},{\"slug\":\"delete_user\"},{\"slug\":\"view_board_listing\"},{\"slug\":\"view_user_listing\"},{\"slug\":\"view_board\"},{\"slug\":\"view_board_listing\"},{\"slug\":\"view_organization\"},{\"slug\":\"view_organization_user_listing\"},{\"slug\":\"view_board_activities\"},{\"slug\":\"view_user_activities\"},{\"slug\":\"view_my_boards\"},{\"slug\":\"view_stared_boards\"},{\"slug\":\"view_board_subscribers\"},{\"slug\":\"view_board_search\"},{\"slug\":\"view_archived_cards\"},{\"slug\":\"view_archived_lists\"},{\"slug\":\"view_card_isting\"},{\"slug\":\"view_card_activities\"},{\"slug\":\"view_checklist_listing\"},{\"slug\":\"view_user_search\"},{\"slug\":\"view_board_visibility\"},{\"slug\":\"view_organization_visibility\"},{\"slug\":\"view_workflow_templates\"},{\"slug\":\"view_search\"},{\"slug\":\"view_user\"},{\"slug\":\"view_sync_calendar\"},{\"slug\":\"view_user_cards\"},{\"slug\":\"view_user_board\"},{\"slug\":\"view_card_search\"},{\"slug\":\"view_card_labels\"},{\"slug\":\"send_back_to_archived_card\"},{\"slug\":\"send_back_to_archived_list\"},{\"slug\":\"roles\"},{\"slug\":\"move_list_cards\"},{\"slug\":\"search_card\"},{\"slug\":\"view_closed_boards\"},{\"slug\":\"view_closed_boards\"},{\"slug\":\"view_organization_listing\"},{\"slug\":\"view_email_template_listing\"},{\"slug\":\"edit_email_template\"},{\"slug\":\"load_settings\"},{\"slug\":\"setting_update\"},{\"slug\":\"delete_card_user\"},{\"slug\":\"board_star\"},{\"slug\":\"board_subscriber\"},{\"slug\":\"add_custom_background\"},{\"slug\":\"activities_listing\"},{\"slug\":\"activities_listing\"},{\"slug\":\"users\"},{\"slug\":\"roles\"}]",
"error": {
"message": "couldn't connect to host"
},
"user": {
"id": "1",
"role_id": "1",
"username": "admin",
"email": "[email protected]",
"full_name": "New Admin",
"initials": "PA",
"about_me": "Added About Me",
"profile_picture_path": "media/User/1/default-admin-user.png",
"notification_frequency": null,
"is_allow_desktop_notification": "f",
"is_active": "t",
"is_email_confirmed": "t",
"created_organization_count": "0",
"created_board_count": "0",
"joined_organization_count": "0",
"list_count": "0",
"joined_card_count": "0",
"created_card_count": "0",
"joined_board_count": "0",
"checklist_count": "0",
"checklist_item_completed_count": "0",
"checklist_item_count": "0",
"activity_count": "0",
"card_voter_count": "0",
"is_productivity_beats": "t",
"organizations": null,
"last_activity_id": "2",
"boards_stars": null,
"boards_users": null,
"last_login_date": "2015-10-13 12:46:34.365519",
"last_login_ip": "xxx.xxx.xxx.xxx",
"log_city_name": "city_name",
"log_state_name": "state_name",
"log_country_name": "country_name",
"log_country_iso2": "ciso",
"registered_ip": null,
"reg_city_name": null,
"reg_state_name": null,
"reg_country_name": null,
"reg_country_iso2": null,
"login_type": "Normal",
"created": "2014-06-03 12:40:41.189",
"user_login_count": "8",
"notify_count": "0"
}
}
from docker-restyaboard.
Playing around a bit, it looks like it logs me in successfully, but fails to redirect me to the default landing page.
from docker-restyaboard.
@codentest I had the same issue. Most probably you've been logging in from wrong URL. I got the same error when i tried to login from 127.0.0.1:1234.
However, upon investigating, i found i had to do it from another URL on which your docker container is running.
To find that, type ifconfig
on Linux/Mac or ipconfig
for Windows. Then find "docker0" in it, and its associated IP address.
Here is a screenshot from my ubuntu machine
In this case, type 172.17.42.1:1234
in your browser and login via credentials provided on main page of this project
from docker-restyaboard.
@kirtangajjar I actually tried accessing the site via my host's browser using my guest VM's IP.
Using the IP you provided, I wasn't able to connect. I'm guessing it's not forwarding the requests /addresses properly =[.
from docker-restyaboard.
@neverendingqs You don't have to use 172.17.42.1:1234
precisely. It might be different fore different machines. You have to obtain that manually by specifying steps i mentioned above.
from docker-restyaboard.
When debugging dockerfile at d86e40c, I met this login error. (red empy alert)
It occurred post request error on PHP this line.
https://github.com/RestyaPlatform/board/blob/77bd1d87bec8e4d55d933d7acf0e7df05bf50c3d/server/php/R/r.php#L914
Maybe, PHP tried to connect generated url by $_SERVER
, then occurred connection error?
$_server_protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
$_server_domain_url = $_server_protocol . '://' . $_SERVER['HTTP_HOST']; // http://localhost
...
// Generate full URL using PHP_SELF server variable
$post_url = $_server_domain_url . str_replace('r.php', 'resource.php', $_SERVER['PHP_SELF']);
...
$response = doPost($post_url, $post_arr); // <= connection error?
from docker-restyaboard.
At that time, I set $_SERVER['HTTPS']
to off
, solved this login error.
(Because unsupported ssl protocol in this docker container's nginx)
d86e40c#diff-8599d525622e078926722f3788839b1dR40
This issue's login error occurred by the similar cause?
from docker-restyaboard.
@namikingsoft - where can I find that setting?
from docker-restyaboard.
Having same issue. In fact for some reason I have to comment the #sites-enable because it shows nginx default page. After that then I can login but it does not let me create organizations or boards.
I get this before login
http://localhost:8089/api/v1/oauth.json?_=1444934936879
{"error":{"message":"couldn't connect to host"},"id":"3","links":"[{"slug":"users_forgotpassword"},........,{"slug":"users"}]"}
I get this when I log it but no redirect
http://localhost:8089/api/v1/users/login.json?token=undefined
{"id":"1","links":"[{"slug":"setting_list"},{"slug":"view_board_star"},{"slug":"starred_board"},{"slug":"unstarred_board"}........{"slug":"activities_listing"},{"slug":"activities_listing"},{"slug":"users"},{"slug":"roles"}]","error":{"message":"couldn't connect to host"},"user":{"id":"1","role_id":"1","username":"admin","email":"[email protected]","full_name":"New Admin","initials":"PA","about_me":"Added About Me","profile_picture_path":"media/User/1/default-admin-user.png","notification_frequency":null,"is_allow_desktop_notification":"f","is_active":"t","is_email_confirmed":"t","created_organization_count":"0","created_board_count":"0","joined_organization_count":"0","list_count":"0","joined_card_count":"0","created_card_count":"0","joined_board_count":"0","checklist_count":"0","checklist_item_completed_count":"0","checklist_item_count":"0","activity_count":"0","card_voter_count":"0","is_productivity_beats":"t","organizations":null,"last_activity_id":"2","boards_stars":null,"boards_users":null,"last_login_date":"2015-06-06 10:53:34.46","last_login_ip":"::1","log_city_name":"undefined","log_state_name":"undefined","log_country_name":"India","log_country_iso2":"in","registered_ip":null,"reg_city_name":null,"reg_state_name":null,"reg_country_name":null,"reg_country_iso2":null,"login_type":"Normal","created":"2014-06-03 12:40:41.189","user_login_count":"2","notify_count":"0"}}
from docker-restyaboard.
Thank you for reporting.
I pushed topic branch for fix this issue.
https://github.com/namikingsoft/docker-restyaboard/tree/issue002
(not master branch)
Probably, $_SERVER['HTTP_HOST']
is set to domain:port that was accessed url in the browser.
But http://localhost:8089/
is not php container's address from self, so failed to access api.
I tried to patch r.php while building docker image.
https://github.com/RestyaPlatform/board/blob/825e4e212af277241e6b0bc58378980cbd8f5d35/server/php/R/r.php#L20
from:
$_server_domain_url = $_server_protocol . '://' . $_SERVER['HTTP_HOST']; // http://localhost
to:
$_server_domain_url = $_server_protocol . '://' . '127.0.0.1'; // http://localhost
@rrjanbiah Is this patch no problem? fffc2db
from docker-restyaboard.
Issue002 does the trick. port 8089 was a forward from vm. Thanks for the quick response.
This fixes In docker installation, domain names not work #81
also Unable to create an Admin account. (404 Error) #85
and No Organizations Available #84. I was experiencing all 3 problems
from docker-restyaboard.
I tried the latest code here and it works with one caveat, I have to use the IP address of the host that runs docker instance. Previously I was using the docker hosts hostname which seems to be a problem because the inner docker instances are unable to resolve the hostname.
So simply use the http://:1234/ and you are able to login, create organizations and boards etc...
from docker-restyaboard.
I don't think there is a need for the restyaboard code to depend upon the hostname in the url. Unless I'm missing some feature that would need this as opposed to just going localhost for whatever it needs.
And since that would be an issue with restyaboard and not the docker instance itself, I'm closing this issue.
from docker-restyaboard.
Do we want to merge in https://github.com/namikingsoft/docker-restyaboard/tree/issue002 before closing this issue?
from docker-restyaboard.
Reopened in case owner wants to merge the issue branch, but I am not qualified to make a claim on requiring the fix.
from docker-restyaboard.
This issue was fixed by restyaboard v0.1.5.
RestyaPlatform/board@edb7ed3
from docker-restyaboard.
Related Issues (20)
- Don't split command-line for nothing
- ERROR: Service 'restyaboard' failed to build: devmapper: Error mounting /dev/mapper/docker-8:… on '/var/lib/docker/de vicemapper/mnt/… : no such file or directory HOT 1
- Reverse proxy scenarios HOT 1
- Uploading a one Megabyte Trello json yields Gateway Time out HOT 2
- LDAP Authentication not working HOT 9
- Failed to upgrade, can't go back HOT 1
- Confirmation of users not possible HOT 1
- let's encrypt ssl https feature HOT 1
- RestyaBoard Docker Install HOT 1
- SMTP config? HOT 1
- ElasticSearch config for docker? HOT 1
- Restyaboard Docker install fails
- httpd-2.4.6-31.el7.centos.1.x86_64 error HOT 3
- Rewrite URL - Alias DNS
- Use "built" zip from releases HOT 2
- Service 'restyaboard' failed to build HOT 4
- Installing Updates HOT 3
- psql: could not connect to server HOT 3
- Version 0.2 HOT 2
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 docker-restyaboard.