Can't connect with client app

help

#1

After installing a fresh owncloud 9, I just tested the version with my web browser and everything was fine.
I tried to use the Windows desktop client, it detect my server but when I enter my username and password, It won't let me log in. Same error happen with android client.

Here is the error i've got https://cloud.anywen.ch/index.php/s/hBSVsV5VyvG5679

Steps to reproduce
1. Installed ownCloud on a Virtualmin virtual host
2. Made the config and everything went ok

Actual behaviour
Can't connect with desktop app/android but web is working

Server configuration
Operating system: CentOS 7
Web server: Apache
Database: MySQL
PHP version: 5.4.16
ownCloud version (see ownCloud admin page): 9.1.0
Updated from an older ownCloud or fresh install: Fresh install
ownCloud log : https://cloud.anywen.ch/index.php/s/fqnM1jKA7se4I1p

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): Nothing special, using virtualmin

Integrity status for oC9+

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- core
	- EXTRA_FILE
		- stats/dns_cache.db
		- stats/webalizer.current
		- stats/daily_usage_201609.png
		- stats/hourly_usage_201609.png
		- stats/usage_201609.html
		- stats/ctry_usage_201609.png
		- stats/webalizer.hist
		- stats/usage.png
		- stats/index.html
		- icon/browser/sagem.png
	- INVALID_HASH
		- .htaccess
Raw output
==========
Array
(
    [core] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [stats/dns_cache.db] => Array
                        (
                            [expected] => 
                            [current] => e68975421a77230f8bfecc44ad5aeb4a1387915d08a7c09399cafd57bed0d67f0ceb8dd55ce3b93fe4c6167b00e472d8709b5dda139abd4e0b0ae3315af9a999
                        )
                    [stats/webalizer.current] => Array
                    (
                        [expected] => 
                        [current] => 93493c4f23ec32f8e5c3b4c5e93ac478dedc1007e39033c77018378cd30277bdaaaf646d5ca6e0a269a6bfa11bb39ef150304ee3a657c7714f73f60629a10668
                    )

                [stats/daily_usage_201609.png] => Array
                    (
                        [expected] => 
                        [current] => 542398a5b13ea78ac875a227c1e4ee4f861d90edaa87716763900ed9c5d5ff187e4ef0332fc6fef103268e3c7d1e88756b8aa479550f4687e28a7d9a6628262d
                    )

                [stats/hourly_usage_201609.png] => Array
                    (
                        [expected] => 
                        [current] => 5066a68579a838999583a973e1ad2296c0ca74d4cbd8f52e4b865efc2f306ab620b0a71e0b4239de4ce80ea97279b33989338baede977e8a983adb16107a92be
                    )

                [stats/usage_201609.html] => Array
                    (
                        [expected] => 
                        [current] => fd305b6e8b8aed8b3ff6db690271514ef942839cc21050ac7d817f73afa419ec182fb2f1d0b3a0fd8576a295238a28ef8e94a76e1497f4e6b834e71135685352
                    )

                [stats/ctry_usage_201609.png] => Array
                    (
                        [expected] => 
                        [current] => e2bfe7d3d8eddc0f99fbfed700e36b194bc608cbf93fee8c9b5d331ba429d466cf2504e293ad5b4ad30eca8312012e0ecae3ccc3d87bb5eed3ce477bf4ece441
                    )

                [stats/webalizer.hist] => Array
                    (
                        [expected] => 
                        [current] => 1d029f3da0ae4fe72166233c7da2cf5cd65e19e660eea05dcb0b4314ed45798d1c7cb6e99fff536f6311820d45885f9c8106fc4f8d33f0a6d0884c9d31294419
                    )

                [stats/usage.png] => Array
                    (
                        [expected] => 
                        [current] => f057a0c9ac9bba3d2d645c47e130f45ff3f0c312e40c4a7e7eb7cfad099f5bfe26194eb6aa644bb3df56449c2076cbd2c5aada042a45a56e23274cf1c3bd7464
                    )

                [stats/index.html] => Array
                    (
                        [expected] => 
                        [current] => 547099d747a9432844dd7c92b70bafa576b71ec49c4c02e32963b0e88c3cb91871b278b2ebde16e4459362186e364b698ef3a94b7543f27ae93ef01b2658fa11
                    )

                [icon/browser/sagem.png] => Array
                    (
                        [expected] => 
                        [current] => 
                    )

            )

        [INVALID_HASH] => Array
            (
                [.htaccess] => Array
                    (
                        [expected] => ab5f4c44ba2f9c66f2ed25c3ad3d84660b2808cca11ffa8fe2778a648a054d8ada495a0bf4715dc873aac1efe8dfd92a72f9a24441d8f5240834e639325fd892
                        [current] => cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
                    )

            )

    )
)

#2

You .htaccess is different from the original one. So it could be possible that you have an old version, a completely different, ... so that could be a reason for your problem.
Regarding you logfiles, it would be interesting to see the owncloud and webserver logfile around the moment when the error occurs.


#3

Hello and thank you for your answer.

About the .htaccess, I've made 2 different installation and the same problem happened. Maybe virtualmin is replacing the .htaccess I don't know.

For the apache log, I've got no error juste this in the access log :
46.253.189.93 - - [06/Sep/2016:10:25:35 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 401 306 "-" "Mozilla/5.0 (Windows) mirall/2.2.3 (build 6307)"

I the ownCloud log, I don't see anything. The last log is from yesterday and here are the 3 last lines.
{"reqId":"V80jjAihQ9e4sJuUdFJBbAAAAAc","remoteAddr":"46.253.189.93","app":"core","message":"Login failed: 'Anywen' (Remote IP: '46.253.189.93')","level":2,"time":"2016-09-05T07:49:32+00:00","method":"POST","url":"\/index.php\/login","user":"--"}
{"reqId":"V80jjAihQ9e4sJuUdFJBbQAAAAc","remoteAddr":"46.253.189.93","app":"PHP","message":"Undefined offset: 1 at \/home\/anywen\/domains\/cloud.anywen.ch\/public_html\/core\/Controller\/LoginController.php#117","level":3,"time":"2016-09-05T07:49:33+00:00","method":"GET","url":"\/index.php\/login?user=Anywen","user":"--"}
{"reqId":"V80jjAihQ9e4sJuUdFJBbQAAAAc","remoteAddr":"46.253.189.93","app":"PHP","message":"Invalid argument supplied for foreach() at \/home\/anywen\/domains\/cloud.anywen.ch\/public_html\/core\/templates\/login.php#23","level":3,"time":"2016-09-05T07:49:33+00:00","method":"GET","url":"\/index.php\/login?user=Anywen","user":"--"}

is the .htaccess file a generic file that is pretty much the same on every installation ? How could I get a good one ?

edit : here is the htaccess file in my folder, if it can help
https://cloud.anywen.ch/index.php/s/D9Ki3fB9YTDQ05z


#4

No, that's no the right one. You can download the archive of every OC version on https://owncloud.org/changelog
Use the .htaccess from this archive.


#5

So, I changed the htaccess and everything is working fine now.

Thank you !