Skip to content
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

Successful install but no admin panel #6

Closed
chopfitzroy opened this issue Jun 29, 2014 · 13 comments
Closed

Successful install but no admin panel #6

chopfitzroy opened this issue Jun 29, 2014 · 13 comments

Comments

@chopfitzroy
Copy link

I have installed (Successfully I think) and when I log in with an admin account I do not have an admin panel.

Any suggestions?

Cheers,
Otis Wright.

@liorkesos
Copy link
Member

Make sure that you have added the "admin" role to your user
mean user -a admin [email protected]
Lior

On Sun, Jun 29, 2014 at 12:10 PM, Otis Wright [email protected]
wrote:

I have installed (Successfully I think) and when I log in with an admin
account I do not have an admin panel.

Any suggestions?

Cheers,
Otis Wright.


Reply to this email directly or view it on GitHub
#6.

Lior Kesos - http://www.linnovate.net
Linnovate - Community Infrastructure Care
mail: [email protected]
office: +972 722500881
cell: +972 524305252
skype: liorkesos

@mikemilano
Copy link

Same for me. The admin role has been assigned to my user. The nav items across the top are:

  • MEAN
  • Token Administration
  • Articles
  • Create New Article
  • [Username] ... only item in the drop down is signout

@fyockm
Copy link
Contributor

fyockm commented Jul 1, 2014

@mikemilano the admin panel should be separate on the left side, not part of the nav items across the top.

@mikemilano
Copy link

It is not appearing on either Chrome or Firefox.

mean version is 0.5.2

mean-admin-issue

@ellman
Copy link
Collaborator

ellman commented Jul 1, 2014

hey @fyockm I managed to replicate this now... Will get back to you guys as asap

@CombatCode
Copy link

same here,
mean-admin is not working anymore after pull newest changes from mean repo to my mean project

@jouke
Copy link

jouke commented Jul 2, 2014

ah! This is the same issue as I described on the IRC channel

@fyockm
Copy link
Contributor

fyockm commented Jul 2, 2014

@CombatCode @jouke I just installed a new mean project from scratch, then installed mean-admin and added 'admin' role to my user. Seems to work fine for me. @ellman has confirmed that it works for him in [email protected] as well

A few questions:

  • What OS are you using?
  • What version of npm and node?
  • Do you get any errors in the browser developer console?
  • Also, please share output of mean-status and mean list (as below).
$ mean status

    MEAN Status
    -----------

    MEAN VERSION: 0.4.0

    DB connection successful!

    MongoDB URI: mongodb://localhost/mean-dev

    checking meanio command line version
    meanio command line at latest version: 0.5.4

$ mean list
   MEAN Packages List:
   -----------------
   Custom: [email protected]  Author: mean scaffold
   Custom: [email protected]  Author: Linnovate
   Custom: [email protected]  Author: mean scaffold
   Custom: [email protected]  Author: mean scaffold
   Contrib: [email protected]  Author: Linnovate

This is what it should look like. See admin panel on the left side.
screen shot 2014-07-02 at 12 22 22 pm

@jouke
Copy link

jouke commented Jul 2, 2014

@fyockm Thanks for your reply. The answers are:

  • I'm using OS X 10.9.3 (that's my dev machine, it's supposed to be running on RedHat OpenShift eventually)

  • NPM version
    $ npm -v
    1.3.24

  • Node version
    $ node -v
    v0.10.25

  • Yes, I get the following errors in my browser console:

    Error: Could not resolve 'all tokens' from state 'home'
    Error: [ng:areq] Argument 'AdminController' is not a function, got undefined
    Error: Could not resolve 'languages' from state 'home'
    (each of the errors seem to be coming from either the Admin, the Admin-Tokens and the Admin-Translate packages)
    $ mean status

    MEAN Status
    -----------
    
    MEAN VERSION: 0.3.3
    
    DB connection successful!
    
    MongoDB URI: mongodb://localhost/mean-dev
    
    checking meanio command line version
    meanio command line at latest version: 0.5.4
    $ mean list
    MEAN Packages List:
    -----------------
    Custom: [email protected]  Author: Linnovate
    Contrib: [email protected]  Author: Rivka Tzur
    Contrib: [email protected]  Author: Linnovate
    Contrib: [email protected]  Author: Linnovate
    

So I guess I see the problem already...I thought I was on 0.4.0, but I'm still at 0.3.3 :-/

@jouke
Copy link

jouke commented Jul 2, 2014

And indeed...upgrade to 0.4.0 solves all problems! Thanks!

@CombatCode
Copy link

Yes, some new updates in main repo has resloved this problem.
Thank you guys, ticket can be closed

@fyockm fyockm closed this as completed Jul 2, 2014
@dalenguyen
Copy link

Hi, I have the same problem. I sucessfully installed mean.io without admin panel.

➜  html git:(master) ✗ mean status

    MEAN Status
    -----------

    MEAN VERSION: 0.7.0

    DB connection successful!

    MongoDB URI: mongodb://localhost/mean-dev

    checking meanio and global mean-cli versions
    mean-cli at latest version: 0.12.15
    meanio at latest version: 0.9.3

I also added admin role to the user

➜  html git:(master) ✗ mean user [email protected] --addRole admin
  Adding role `admin` to user `[email protected]`
    DB connection successful!

successfully updated
➜  html git:(master) ✗ mean user [email protected]
    DB connection successful!

[ { _id: ObjectID { _bsontype: 'ObjectID', id: 'X\u0010ô\u0006�lKôo��ñ' },
    email: '[email protected]',
    hashed_password: 'q5+l1whA8BX9ktCVhZA5EZSBmiB0a9opU4AOll88cwLoyzFmZ4+DQA4yw==',
    salt: 'TEpZYcK2YtMOIDUZ+Kh/Ug==',
    username: 'abc',
    name: 'Dale Nguyen',
    provider: 'local',
    roles: [ 'authenticated', 'admin' ],
    __v: 0 } ]

And this is the packages

html git:(master) ✗ mean list
   MEAN Packages List:
   core: [email protected]  Author: Linnovate
   core: [email protected]  Author: Linnovate
   core: [email protected]  Author: Linnovate
   core: [email protected]  Author: Linnovate
   custom: [email protected]  Author: MEAN.io

Everything seems right, however, the admin panel is still missing after I logged in.

@rojectsky
Copy link

having same issue in v0.7.0 , any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants