Error "could not unmarshall response with status 404" at login #224

Log entry :

ERROR   pydio.rest.frontend     Rest Error 401  {"error": "could not unmarshall response with status 404: 404 Not Found\nerror cause: invalid character '<' looking for beginning of value"}

Environment : Debian 10, MySQL 8.0.19, Cells v2.0.6

Screenshot :

Thanks

Hello @KaKi87,

I would like to know if this was a new install or an old one?

I would also like to know your setup:

  • how did you install cells?
  • what is your bind and external address (are you using a domain or an ip)
  • are you behind reverse proxy?
  • are you using https?

Also does your username or password have special characters, accents or else?

this was a new install or an old one

New.

how did you install cells?

From the executable installer provided on the official website here : https://download.pydio.com/latest/cells/release/{latest}/linux-amd64/pydio-cells-{latest}-linux-amd64.zip

are you behind reverse proxy?

Yes (apache)

are you using https?

Between the browser client and the apache server, yes (provided by Let’s Encrypt), between apache and Pydio (which are on the same host), no

does your username or password have special characters, accents or else?

My username is “kaki87” (KaKi87 when I’m allowed to use uppercase characters), so no.

The password, however, should be absolutely irrelevant, as they should be hashed. Aren’t they ?
Anyway, I did tested with a password only containing lowercase and uppercase characters and the outcome doesn’t change.

Thanks

Would you mind sharing your Apache configuration, I’m gonna try to reproduce your issue.

Hi,
i’ve the same behaviour with a new fresh install.
i use nginx as RP and i used the default configuration. The only change on nginx config is the internal host because i used localhost during the pydio installation.

Without nginx the login works well.

This is a proxy config issue, not a cells bug.

This “<” found shows that we are very probably receiving HTML where we expect to receive JSON. So the reverse proxy must be sending an error page somewhere.
Please put your reverse proxies with maximum debugging logs to see what url causes the error.

Hi,
I’ve modified the hosts file on my pc and after modified the hosts file on server also the connection works well.

Thanks,
S

My configuration is absolutely common :

<VirtualHost *:80>
    ServerName cloud.kaki87.net
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

<VirtualHost *:443>
    ServerName cloud.kaki87.net
    ProxyRequests Off
    ProxyPass / http://localhost:3050/
    ProxyPassReverse / http://localhost:3050/
    SSLCertificateFile /etc/letsencrypt/live/kaki87.net/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/kaki87.net/privkey.pem
</VirtualHost>

Thanks

PS : why am I not receiving reply notifications by e-mail ?

Hello @KaKi87,

I will take a look at your configuration and try to reproduce your setup.
I will keep you updated .

Hello @KaKi87

I tried with the following configuration and had no errors (it the same as yours, I just added logs)

Could you try with the logs and see what they give you.

<VirtualHost *:80>
	ServerName my-site.eu
	RewriteEngine On
	RewriteCond %{HTTPS} off
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

<VirtualHost *:443>
	ServerName my-site.eu
	ProxyRequests Off
	ProxyPass / http://localhost:3050/
	ProxyPassReverse / http://localhost:3050/
	SSLCertificateFile /home/pydio/.caddy/acme/acme-v02.api.letsencrypt.org/sites/my-site.eu/my-site.eu.crt
	SSLCertificateKeyFile /home/pydio/.caddy/acme/acme-v02.api.letsencrypt.org/sites/my-site.eu/my-site.eu.key

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>