Hi Marius,

Thanks for your suggestion! I tried it with a different browser that never accessed galaxy, but it still gave me the same message. :-( Any thoughts?

Cheers,
Rui

On Wed, Oct 10, 2018 at 11:25 PM Marius van den Beek <m.vandenbeek@gmail.com> wrote:
Hi Rui,

The session token is used to prevent certain kinds of attacks. Your browser may still have a session token for the old instance. You can delete the cookies for this address in your browser and you should be issued a new and valid token.

Hope that helps,
Marius

On Thu, Oct 11, 2018, 7:12 AM Qiang Gu <guq@ohsu.edu> wrote:
Hi Rui,

Does the default database sqlite work for you? I guess there is certain mis-configuration in your
postgresql settings or certain element in the config/galaxy.yml file is broken. Try to enter your postgresql database in terminal using the same login info and create a table to make sure you have proper privileges.
Alternatively, using GalaxyKickStart (https://github.com/ARTbio/GalaxyKickStart) to deploy a server
isn't that difficult and a postgresql database comes with it by default. Good luck!

Thanks,

-Qiang
  

From: galaxy-dev [galaxy-dev-bounces@lists.galaxyproject.org] on behalf of Rui Wang [ruiwang.sz@gmail.com]
Sent: Wednesday, October 10, 2018 9:30 PM
To: galaxy-dev@lists.galaxyproject.org
Subject: Re: [galaxy-dev] can't create user on a new instance

Hi Folks,

I still could not create new user account with the same error message. Has anyone happened to see this before?

Cheers,
Rui

On Tue, Oct 9, 2018 at 5:48 PM Rui Wang <ruiwang.sz@gmail.com> wrote:
Hey Folks,

I just installed a new 18.05 instance with a new postgresql db created. However, the UI doesn't allow me to create any user. After I provided all input information, it says 

galaxy.web.framework.webapp WARNING 2018-10-09 17:28:35,735 [p:32925,w:1,m:0] [uWSGIWorker1Core2] Wrong session token found, denying request

in the server log. Btw, I enabled 'allow to create user' and admin user list is empty.

I looked into it, and it's a function in lib/galaxy/web/framework/webapp.py:

    def check_csrf_token(self):
        session_csrf_token = self.request.params.get("session_csrf_token", None)
        problem = False
        if not session_csrf_token:
            log.warning("No session_csrf_token set, denying request.")
            problem = True
        elif session_csrf_token != self.session_csrf_token:
            log.warning("Wrong session token found, denying request.")
            problem = True

        if problem:
            return self.show_warn_message("Failed to authorize action.")

Could someone give me a hand? :-)

Cheers,
Rui
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/