How do I configure Copyparty?

What app is this about, and its version: 1.20.1~ynh1
What YunoHost version are you running: 12.1.39 (stable)
What type of hardware are you using: Old laptop or computer

Describe your issue

I currently cannot access Copyparty’s admin settings, or even upload files. I want to configure Copyparty, or look at the current config, to set up accounts. Copyparty config is done via files or the command line.

How do I create a Copyparty config file and have Yunohost use that config when Copyparty starts?

Share relevant logs or error messages

N/A

There appears to be a recent regression in the package, reported on GH so it’s not lost in time: Unable to log in · Issue #29 · YunoHost-Apps/copyparty_ynh · GitHub

Hello @Obspogon
Can you share a screenshot of your login and upload issues ?

Authentication is a bit odd : I log in with just a password, (the app infers user…).

@Obspogon To edit config files:

  • add an user
yunohost app shell copyparty
nano config/user.config
# create users:
[accounts]
  usertwo: password # add users following this scheme : username: passoxrd

As default, this user only will able to read and download. To change permissions:

nano config/main.config
  accs:
    r: *        # everyone gets read-access, but
    A: adminuser# the user "adminuser" gets read-write-delete (I think A is the right setting but to be confirmed
    rw: userone # userone gets read-write
    rw: usertwo

Above, in global section, I also added

  rproxy: 1

Then

systemctl restart copyparty

Strange: when I try to login with the supplied credentials, the page reloads after the welcome screen and I don’t log in.

This is the issue that @orhtej2 described, but I wasn’t able to reproduce it. That’s why I asked you to share the login screen.

here’s my login screen

when i enter a password i get this screen and then get kicked back to the main screen, still logged out.

Any error/warning in the browser console ?

None that seem to be related, just a 404 error when GET [HOSTNAME]/favicon.ico on the login page. (The favicon displays fine)

And in the copyparty service log?

Jan 13 19:26:33 python[34305]: 19:26:33.914 70.51.127.12 45376    WARN: invalid password: '%XRCwvgMTFra1aoJT'
Jan 13 19:26:33 python[34305]: 19:26:33.914 70.51.127.12 45398    WARN: invalid password: '%XRCwvgMTFra1aoJT'
Jan 13 19:26:33 python[34305]: 19:26:33.915 70.51.127.12 45398     LOG: GET  /?ls @*
Jan 13 19:26:33 python[34305]: 19:26:33.915 70.51.127.12 45382    WARN: invalid password: '%XRCwvgMTFra1aoJT'
Jan 13 19:26:33 python[34305]: 19:26:33.916 70.51.127.12 45382     LOG: GET  /?setck=js=y @*
Jan 13 19:26:33 python[34305]: 19:26:33.926 70.51.127.12 45404    WARN: invalid password: '%XRCwvgMTFra1aoJT'
Jan 13 19:26:33 python[34305]: 19:26:33.938 70.51.127.12 45406    WARN: invalid password: '%XRCwvgMTFra1aoJT'

I figured out my issue. I needed to enable access to Yunohost visitors.

1 Like

In the meanwhile upcoming release 1.20.2 should address the issue where users logged in via YunoHost SSO were unable to log in to copyparty

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.