-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create a new user - 'username is already taken' #538
Comments
I tried deleting the Still, I see a slight difference of behavior during the creation of the user using different browsers:
For the record, at the moment I see no other problem on 3.3. |
Please show contents of |
I have no |
Still you should have some log file somewhere, which contains output of that java application. It is needed to investigate this issue. |
BTW, doing it manually I've noticed that the startup has slown down considerably... |
There is no error in this log. Try to reproduce issue with inability to add user and then put an output here. Regarding the issue with startup how much time does it usually take to startup? |
Yes, I know there is no error and I also checked the output when performing the new user creation (with both browsers), but no lines are produced; the log is of no help. Regarding startup time, I don't know how much time it usually takes; when the application is run normally, it is executed in the background (as a service) giving me no awareness. But now, making a comparison with the manual start we performed on Nov 2015, I realize it's taking a LOT more: to speak with numbers it now takes 4'53'' to start serving web pages on my server (a Duron 1Ghz / 1Gb RAM on FreeBSD 10.1), before it was around 3'. Anyway, I deem this normal. |
Then the only way to diagnose the issue is to look into web browser console. I have no other ideas. Also it's worth to check the database table structure of table
The startup time depends on the number of positions you have in your database. System performs some schem validation steps during startup, so it may take this long. |
Those tables have just been deleted (created by the original 'traccar' engine) and re-created under Well, as soon as I opened Chrome's console (with traccar-web already on screen) this is what I found:
But no other warnings are displayed pressing the |
As I had already told at the beginning of this issue, the entire |
Anyway, this is the current structure of the above said tables:
BTW: This issue you marked |
Your database structure looks incorrect. In particular Looks like you did all steps in a wrong order. Basically, it should be this way:
If tables still look like in previous comment then you did something wrong.
The symptoms are ABSOLUTELY same. So this issue is definitely a duplicate. P.S. Why are you always trying to start a dispute? What's the point? |
I am not... please don't think this way! I would like you to be sure I am a friend of yours, pratically supporting you and your great project :-) . What I've written here, has the only purpose of describing what's happening on my side without criticizing, for the sake of solving this issue and nothing else, in the same time serving the
As I previously said, I had already dropped the Speaking about the labeling of this issue, I had read all the issues you referenced before and - besides common database issues - I had noticed that none reported the strange behaviour happening with the two browsers (for which you gave me no answer) so I had thought it could be different. I am still curious to know why you deem this irrelevant, if you like to say. Cheers, Alberto |
Dear all, Regards, -----Original Message----- P.S. Why are you always trying to start a dispute? What's the point?
|
Hi After installing web ui Im not able to log in as admin anymore and when I try to reg new user it replies ´username taken´. Johan are you using traccar 3.3 and did you follow the instrustion on installing 3.3 web ui ? I had to upload backup of traccar.xml in order to get in again. |
No problem, I won't think this way. Excuse me for hesitating ;)
This table structure comes from original version of traccar (from this file https://github.com/tananaev/traccar/blob/master/database/db.changelog-3.1.xml#L21). This means if it is not applied (which should take place after you disabled the
It is relevant, but it sounds like a different issue. I have just tried latest version installed on CentOS and over traccar 3.3 and there are no such issue (at least in chrome and IE11). Also no one who installed latest version over 3.3 has reported such issue, but all of them had the issue with 'Username already exist'. Let's fix the issue with 'username already taken' on your server and then if the UI issues still exist - submit them as a separate issues. |
Dear @johansid , thanks for the information. From my understanding people experience issues when they start from scratch. I don't know about migration. Which steps have you performed during migration? Maybe you don't have the |
Thanks, I already did. I managed to get in but devices are not diaplayed on the map. in log I get this error ´WARN: Table "DEVICE" not found; SQL statement´ |
@floor1 this means you have issue with |
I went thru it 5 times but maybe I dont unterstand the instrustions right. my files looks like this.
|
This is the incorrect query: <entry key='database.selectDevicesAll'>
SELECT * FROM device;
</entry> Table name must be |
Thanks, I was also wondering if thats was the problem. I got confused because this is written above SQL query to select list of GPS tracking devices (does not apply to 3.3) so I passed it. Looks like it is working now Thanks Vitaly:) |
Hi Vitaly, You are absolutely right in saying that problems arise from migrations; even if it is the most common scenario, this puts you in the akward situation of supporting users not knowing enough about their working environment, leaving you to guess what's currently happening. So, having assumed that Please consider that you generally raccomended users to start with an original working traccar installation (this means that tables have already been generated) and then to apply your mod. At this point and with this last upgrade, you suggested users to delete the To summarize, to solve this kind of database problems I had to
At least (and using MySQL), it worked for me. Hope this helps. Now, let me know what you suggest to do with the chrome issue. |
Dear webmst, I agree with you in traccar 3.0 migration. -----Original Message----- @vitalidze |
That's great.
You can submit it separately. But I cannot reproduce it. Maybe you need to clean up the browser cache? Also, are you able to reproduce it on demo site https://d.traccar.litvak.su/ ? |
Thank you Vitaly for your valuable support with the database problems. |
Hi Vitaly,
after having installed the latest traccar-web release on traccar 3.3 and having created all the mysql tables from scratch, I'm unable to add another user beside 'admin'.
No matter what I type as username, I always get an 'username is already taken' message.
I can confirm that the 'users' table just contains the 'admin' row.
The text was updated successfully, but these errors were encountered: