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

Can not login on server via Lizmap plugin #504

Closed
meyerlor opened this issue Jun 22, 2023 · 11 comments
Closed

Can not login on server via Lizmap plugin #504

meyerlor opened this issue Jun 22, 2023 · 11 comments

Comments

@meyerlor
Copy link

Description

I just installed Lizmap 3.6.4 on a Ubuntu 20.04 Server. QGIS/QGIS-Server version 3.22. When i login via the webbrowser, under "Server Information" i can see that the connection to the QGIS server seems to work (It shows my installed plugins as well as the version number of QGIS server).
I created a new user with admin rights . The user is saved so lizmap can actually write into the user-database.

Now in the QGIS plugin when i fill in the "http://123.456.78.9/lizmap/ and continue to give the username/pwd it is always saying
"The given user does not have the right. View the detailed server information"

Right: lizmap.admin.server.information.view"

It strangely does not matter, if i use any of the admin users i created. Even if i type phantasy usernames/pwd it comes up with the same message. Any idea, what could be the issu?

grafik

Context

  • QGIS version:
  • Lizmap version:
  • OS:
@Gustry
Copy link
Member

Gustry commented Jul 11, 2023

@meyerlor
Copy link
Author

meyerlor commented Jul 11, 2023

thanks for coming back to me!

I followed your steps, this json is what i get

{
	"info": {
		"version": "3.6.4",
		"date": "2023-05-30"
	},
	"dependencies": {
		"jelix": {
			"version": "1.8.1",
			"minversion": "1.8.1",
			"maxversion": "1.8.1"
		}
	},
	"api": {
		"dataviz": {
			"version": "1.0.0"
		}
	},
	"repositories": {
		"2": {
			"label": "Demo-Projekt 06\/23",
			"path": "test\/",
			"authorized_groups": ["__anonymous", "admins", "publishers", "users"],
			"editing_authorized_groups": ["admins"],
			"projects": []
		}
	},
	"acl": {
		"groups": {
			"publishers": {
				"label": "Publishers"
			},
			"admins": {
				"label": "admins"
			},
			"users": {
				"label": "users"
			}
		}
	},
	"qgis_server_info": {
		"metadata": {
			"commit_id": "6f08e4d7b0",
			"name": "Bia\u0142owie\u017ca",
			"py_qgis_server": false,
			"py_qgis_server_version": "not used",
			"tag": "final-3_22_16",
			"version": "3.22.16",
			"version_int": 32216
		},
		"plugins": {
			"atlasprint": {
				"commitNumber": "1",
				"commitSha1": "7b8a3ea12775bcdcdac0b0f8432bd64adb3dc528",
				"dateTime": "2022-10-19T08:10:14Z",
				"name": "atlasprint",
				"repository": "https:\/\/github.com\/3liz\/qgis-atlasprint",
				"version": "3.3.2"
			},
			"lizmap_server": {
				"commitNumber": "1",
				"commitSha1": "1fb453e7bac62af1f7d94bffe3a0242b28debe4d",
				"dateTime": "2023-05-30T12:20:05Z",
				"name": "Lizmap server",
				"repository": "https:\/\/github.com\/3liz\/qgis-lizmap-server-plugin",
				"version": "2.7.2"
			},
			"wfsOutputExtension": {
				"name": "wfsOutputExtension",
				"version": "not found"
			}
		},
		"py_qgis_server": {
			"build_id": null,
			"commit_id": null,
			"found": false,
			"stable": false,
			"stable_release": false,
			"version": "not used"
		},
		"services": ["WMS", "WFS", "WCS", "WMTS", "ATLAS", "EXPRESSION", "LIZMAP"]
	}
}

@Gustry
Copy link
Member

Gustry commented Jul 11, 2023

Ok, but this is correct result.

If you use this server URL http://123.456.78.9/lizmap/, login admin and password, it's not working in QGIS desktop ?

@Gustry
Copy link
Member

Gustry commented Jul 11, 2023

Was it a fresh install or an old Lizmap Web Client installation and you upgraded it ? (if upgraded, when did you install it ?)
Are you using SQlite or PG for storing user and groups in the LWC backend ?

@meyerlor
Copy link
Author

It was a fresh install on Ubuntu Server 22.04

I'm using SQlite for storing the users/groups

@Gustry
Copy link
Member

Gustry commented Jul 11, 2023

Did you double check my comment ? #504 (comment)

The result is your webbrowser is fine.
Can you debug from your computer using wget/curl or similar using HTTP basic auth for login and password with the URL http://123.456.78.9/lizmap/index.php/view/app/metadata ?

@meyerlor
Copy link
Author

sorry, i overlooked your comment - yes, exactly that is the case. I fill in the same admin/pw credentials i use via the web-interface and get the message from #504 (comment)

I will try with a completely fresh install next week, maybe i set up something wrong during installation process (unix read/write rights..?)

@Gustry
Copy link
Member

Gustry commented Jul 12, 2023

I will try with a completely fresh install next week

Not necessary.

If you can try with curl/wget (CLI on linux) or Postman (in your webbrowser) to make the HTTP request with your Basic auth.

@meyerlor
Copy link
Author

Sorry, i had to seetup the server new due to other reasons as well :/ - if the problem comes up again, i will report further!

@Gustry
Copy link
Member

Gustry commented Jul 17, 2023

So it means it's resolved ?
Ok, so we might still have the bug somewhere. Closing for now, feel free to reopen.

@Gustry Gustry closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2023
@vitorcricas
Copy link

Happened to me too!
In my case it was because i was using php8.1 with PHP-FPM & FastCGI

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

No branches or pull requests

3 participants