Comments (9)
This continues to be a pain. I'm currently adding a clause to authorized to allow any action so I can add the admin user. Having something better would be good.
from cliopatria.
gniourf says he/she's having trouble reproducing this. I'll try to post a more reproducible set of steps.
from cliopatria.
I wonder if this is caused by some interaction with browser autofill?
from cliopatria.
Having the same issue. Used workaround from @Anniepoo
from cliopatria.
Our users.db is in a sibling directory with the ClioPatria install. this dir is a git repo. I wonder if the issue's something with ownership or permissions?
from cliopatria.
-
Install Cliopatria
clone ClioPatria into new dir
./configure -
run ClioPatria
./run.pl -
Browse http://localhost:3020/
You are redirected and see a page like
Create administrator
No accounts are available on this server. This form allows for creation of an administrative account that can subsequently be used to create new users.
Add new user
Login
admin
Password
Retype
Permissions ReadWriteAdmin
Create
ClioPatria (version V3.0.0-265-gdd41043)
- Ignore form, load help/documentation page using the menus
- Now use menus to look at Admin/Users
EXPECTED: Would be back to the 'create an admin user' form above
OBSERVED: at login screen - but there are no users in the system
and no users.db file in ClioPatria home directory
consequence:
Anyone using ClioPatria compiled into their application has to be sure the very first page that gets loaded is the proper page to set off the admin thing, or they're faced with only being able to fix with above crazy workaround or reinstalling. This is esp. problematic for users who are doing the likely thing of moving cliopatria's root off /
comment:
This is too fragile for a system that needs to be able to be deployed to production.
from cliopatria.
On 10/06/2015 12:48 AM, Anne Ogborn wrote:
ClioPatria (version V3.0.0-265-gdd41043)
Ignore form, load help/documentation page using the menus
Now use menus to look at Admin/Users
EXPECTED: Would be back to the 'create an admin user' form above
OBSERVED: at login screen - but there are no users in the system
and no users.db file in ClioPatria home directory
This indeed reproduces.
consequence:
Anyone using ClioPatria compiled into their application has to be sure
the very first page that gets loaded is the proper page to set off the
admin thing, or they're faced with only being able to fix with above
crazy workaround or reinstalling. This is esp. problematic for users who
are doing the likely thing of moving cliopatria's root off /
Just visiting / (or the moved entry location) suffices. At least in theory
we could do the redirect-to-create-admin-if-there-are-no-users from more
places. Possibly also from Admin/Users and Login?
comment:
This is too fragile for a system that needs to be able to be deployed to
production.
How come? It is just part of the installation procedure. I guess it
mostly goes wrong if you wipe the server including users.db and re-install
it while you are using some bookmark to access it that doesn't make you
visit the initial page. Is that what happens? Why? I see two main
reasons to re-install the application:
-
You messed up the RDF store. If it is so bad that Repository/Clear
repository
no longer does the job:- Stop the server
- Delete the RDF-Store directory
- Restart the server
-
You messed up the cpacks
- Delete config-enabled and cpack directories. If you did real
configuration,
just delete config-enables/010-packs.pl - re-run configure.
- re-install required cpacks.
Cheers --- Jan
- Delete config-enabled and cpack directories. If you did real
from cliopatria.
consequence...
How come? It is just part of the installation procedure. I guess it
mostly goes wrong if you wipe the server including users.db and re-install
it while you are using some bookmark to access it that doesn't make you
visit the initial page. Is that what happens? Why? I see two main
reasons to re-install the application..
We reinstall fresh on the test server for the daily build, that happens in a fresh docker container.
That this step is difficult to automate doesn't help.
It's not that unusual to reinstall for this or that reason during development.
It's not like this is the end of the world, but it's a pretty fragile system. If you don't get it right the first time you have lost your chance and have to install again.
We remove RDF-store many times a day in development.
What it needs to do is say 'hey, I don't have an admin user - I'll present the 'make an admin user' page.
If you're developing an application compiled in with ClioPatria often the sequence goes something like this:
Pull changes
visit some page
fiddle around debugging
realize there's something incorrectly asserted and you need to muck with the db - go to look at the db, surprise, you're locked out.
Jan, maybe we should get on skype and work out a useable system on voice? I suspect there's confusion here. Maybe it needs extra documentation, or maybe a fix.
from cliopatria.
atop all this there's some issue that removing RDF-Store (or something else we're doing that might much with cpacks, etc but does NOT wipe users.db ) is breaking the passwords. So this further increases the urgency of this
from cliopatria.
Related Issues (20)
- Docker Image HOT 2
- Pengine example HOT 4
- Mailing list list is broken HOT 1
- Add a 'clio' binary
- Rewrite win-config into something that could be easily run on Windows HOT 4
- Bug with SERVICE directive HOT 3
- Upload local RDF file to Cliopatria using Java
- Upload local file into Cliopatria using Java HOT 1
- pldoc issue with latest swipl-devel (7.5.13-7-gf9d7db01a) HOT 3
- Tutorial doesn't work out-of-the-box HOT 4
- Filter-only variables should not be part of `*` HOT 2
- Codepoint escape sequences are not always processed correctly HOT 1
- Support for SHACL HOT 2
- HTTP Server times out on browse/list_graph HOT 11
- SPARQL Update LOAD resourceIRI INTO GRAPH <graphIRI> not conform specification HOT 3
- setup.pl fails on call get/5 on Windows. HOT 2
- rdf_format_plugin `rdfa' does not exist HOT 4
- How to stop the daemon from listening on port 80 HOT 4
- PubChem compound is not able to query the linked data cloud for resource in its own RDF HOT 3
- What's the recommended way to run tests in the CI?
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 cliopatria.