Questions with setting up aurweb instance
Hi, I'm in the middle of setting up an aurweb instance, but I'm having a few issues getting it set up: First - no mail is getting sent for some reason. I'm fairly certain my email config in /etc/aurweb/config is set properly, as changing it also didn't yield any results. Is the `sendmail` option supposed to be set? It was empty, and I was thinking it might've been causing issues, but I wasn't sure what to do with it. Second - how do I create Trusted Users? After signing up (without being able to get the emails, so I'm stick), I'm seeing that I'm a normal, registered user, but how would I go about making myself a Trusted User? Anything I can try for either? --- *Hunter Wittenborn* hunter@hunterwittenborn.com
On 6/23/21 4:17 PM, Hunter Wittenborn via aur-dev wrote:
Hi,
I'm in the middle of setting up an aurweb instance, but I'm having a few issues getting it set up:
First - no mail is getting sent for some reason. I'm fairly certain my email config in /etc/aurweb/config is set properly, as changing it also didn't yield any results. Is the `sendmail` option supposed to be set? It was empty, and I was thinking it might've been causing issues, but I wasn't sure what to do with it.
If it is set to the path of a sendmail binary, then the notify-cmd (aurweb-notify) will send messages to sendmail(1) and expect your MTA to be correctly configured. If it is not set, then you'll need the other keys in the [notifications] section (the smtp-* ones) correctly configured for the python "smtplib" library to communicate with an MTA that will send messages on your behalf. If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Second - how do I create Trusted Users? After signing up (without being able to get the emails, so I'm stick), I'm seeing that I'm a normal, registered user, but how would I go about making myself a Trusted User?
Our production instance had those manually set up and accounts have always been migrated, never re-inited from scratch. You need to create or modify an account with the SQL field AccountTypeID set to 2. The current setup lets aurweb be initialized via python -m aurweb.initdb I would be open to extending this so that it allows defining an initial admin user; perhaps a management command too?
Anything I can try for either? --- *Hunter Wittenborn* hunter@hunterwittenborn.com
-- Eli Schwartz Bug Wrangler and Trusted User
Hi, On 6/23/21 4:17 PM, Hunter Wittenborn via aur-dev wrote:
Second - how do I create Trusted Users? After signing up (without being able to get the emails, so I'm stick), I'm seeing that I'm a normal, registered user, but how would I go about making myself a Trusted User?
You can take a look at the script which generates random data for dev purposes located in schema/gendummydata.py [1] The script generates random accounts including Trusted Users with password same as username. https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/schema/gendummyd... Feel free to ask more questions if you're stuck [1]: https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/schema/gendummyd... Cheers, -- Leonidas Spyropoulos A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
If it is not set, then you'll need the other keys in the [notifications] section (the smtp-* ones) correctly configured for the python "smtplib" library to communicate with an MTA that will send messages on your behalf.
If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Sounds good, I'll check things out. Just wanted to confirm I wasn't missing a value in the config or anything.
Our production instance had those manually set up and accounts have always been migrated, never re-inited from scratch. You need to create or modify an account with the SQL field AccountTypeID set to 2.
You can take a look at the script which generates random data for dev purposes located in schema/gendummydata.py [1]
The script generates random accounts including Trusted Users with password same as username. <https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/schema/gendummydata.py#L154-186>
If I can get this working, I don't see much of a need to implement anything new (unless aurweb is being used by a crazy ton of less-experienced people or something). I imagine I could just automate it into a Bash script after I figured out the commands if I really needed to. Ideally I'm gonna try to not upgrade this a ton too, as I'm making a decent amount of changes in the GUI, and I don't want to deal with a bunch of hassle over and over. Thanks! I'll send a message if it's still not working right. --- *Hunter Wittenborn* hunter@hunterwittenborn.com
Just reporting back on the issues I had: The SMTP issue was due to my VPS provider blocking the standard email ports (25, 465, 587). They let me get them unblocked through contacting them though, and I imagine it'll work just fine after. Then I just need to get the TU stuff set up, but that shouldn't be too hard (hopefully). Again, thanks! --- *Hunter Wittenborn* hunter@hunterwittenborn.com On Wed, Jun 23, 2021 at 4:22 pm, Hunter Wittenborn via aur-dev <aur-dev@lists.archlinux.org> wrote:
If it is not set, then you'll need the other keys in the [notifications] section (the smtp-* ones) correctly configured for the python "smtplib" library to communicate with an MTA that will send messages on your behalf.
If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Sounds good, I'll check things out. Just wanted to confirm I wasn't missing a value in the config or anything.
Our production instance had those manually set up and accounts have always been migrated, never re-inited from scratch. You need to create or modify an account with the SQL field AccountTypeID set to 2.
You can take a look at the script which generates random data for dev purposes located in schema/gendummydata.py [1]
The script generates random accounts including Trusted Users with password same as username. <<https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/schema/gendummydata.py#L154-186>>
If I can get this working, I don't see much of a need to implement anything new (unless aurweb is being used by a crazy ton of less-experienced people or something). I imagine I could just automate it into a Bash script after I figured out the commands if I really needed to.
Ideally I'm gonna try to not upgrade this a ton too, as I'm making a decent amount of changes in the GUI, and I don't want to deal with a bunch of hassle over and over.
Thanks! I'll send a message if it's still not working right. --- *Hunter Wittenborn* hunter@hunterwittenborn.com <mailto:hunter@hunterwittenborn.com>
I'm doing some more testing, but SMTP still isn't working. I created a testing script at /home/test.sh that contained `echo ${@} &> /tmp/asdf.log` so I could see if its even attempting to send mail, but that file didn't even get created.
If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Am I able to run the send function manually somehow, so I could see what errors it produces? I'm seeing the `aurweb-notify` command is available, but I'm not sure what argument I would pass it. --- *Hunter Wittenborn* hunter@hunterwittenborn.com On Wed, Jun 23, 2021 at 5:13 pm, Hunter Wittenborn <hunter@hunterwittenborn.com> wrote:
Just reporting back on the issues I had:
The SMTP issue was due to my VPS provider blocking the standard email ports (25, 465, 587). They let me get them unblocked through contacting them though, and I imagine it'll work just fine after.
Then I just need to get the TU stuff set up, but that shouldn't be too hard (hopefully).
Again, thanks! --- *Hunter Wittenborn* hunter@hunterwittenborn.com
On Wed, Jun 23, 2021 at 4:22 pm, Hunter Wittenborn via aur-dev <aur-dev@lists.archlinux.org> wrote:
If it is not set, then you'll need the other keys in the [notifications] section (the smtp-* ones) correctly configured for the python "smtplib" library to communicate with an MTA that will send messages on your behalf.
If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Sounds good, I'll check things out. Just wanted to confirm I wasn't missing a value in the config or anything.
Our production instance had those manually set up and accounts have always been migrated, never re-inited from scratch. You need to create or modify an account with the SQL field AccountTypeID set to 2.
You can take a look at the script which generates random data for dev purposes located in schema/gendummydata.py [1]
The script generates random accounts including Trusted Users with password same as username. <<https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/schema/gendummydata.py#L154-186>>
If I can get this working, I don't see much of a need to implement anything new (unless aurweb is being used by a crazy ton of less-experienced people or something). I imagine I could just automate it into a Bash script after I figured out the commands if I really needed to.
Ideally I'm gonna try to not upgrade this a ton too, as I'm making a decent amount of changes in the GUI, and I don't want to deal with a bunch of hassle over and over.
Thanks! I'll send a message if it's still not working right. --- *Hunter Wittenborn* hunter@hunterwittenborn.com <mailto:hunter@hunterwittenborn.com>
On a side note, where do the Cron scripts get installed to? Checking my crontabs with `EDITOR=nano crontab -e` after installing cronnie is only showing a blank file, both under root and the user I made for aurweb. Is there anywhere else they might be installed? --- *Hunter Wittenborn* hunter@hunterwittenborn.com On Thu, Jun 24, 2021 at 2:06 am, Hunter Wittenborn via aur-dev <aur-dev@lists.archlinux.org> wrote:
I'm doing some more testing, but SMTP still isn't working.
I created a testing script at /home/test.sh that contained `echo ${@} &> /tmp/asdf.log` so I could see if its even attempting to send mail, but that file didn't even get created.
If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Am I able to run the send function manually somehow, so I could see what errors it produces? I'm seeing the `aurweb-notify` command is available, but I'm not sure what argument I would pass it. --- *Hunter Wittenborn* hunter@hunterwittenborn.com <mailto:hunter@hunterwittenborn.com>
On Wed, Jun 23, 2021 at 5:13 pm, Hunter Wittenborn <hunter@hunterwittenborn.com <mailto:hunter@hunterwittenborn.com>> wrote:
Just reporting back on the issues I had:
The SMTP issue was due to my VPS provider blocking the standard email ports (25, 465, 587). They let me get them unblocked through contacting them though, and I imagine it'll work just fine after.
Then I just need to get the TU stuff set up, but that shouldn't be too hard (hopefully).
Again, thanks! --- *Hunter Wittenborn* hunter@hunterwittenborn.com <mailto:hunter@hunterwittenborn.com>
On Wed, Jun 23, 2021 at 4:22 pm, Hunter Wittenborn via aur-dev <aur-dev@lists.archlinux.org <mailto:aur-dev@lists.archlinux.org>> wrote:
If it is not set, then you'll need the other keys in the [notifications] section (the smtp-* ones) correctly configured for the python "smtplib" library to communicate with an MTA that will send messages on your behalf.
If neither is working, then check out the send() function in aurweb/scripts/notify.py, the smtplib interactions are fairly simple and I'm not sure what the problem might be.
Sounds good, I'll check things out. Just wanted to confirm I wasn't missing a value in the config or anything.
Our production instance had those manually set up and accounts have always been migrated, never re-inited from scratch. You need to create or modify an account with the SQL field AccountTypeID set to 2.
You can take a look at the script which generates random data for dev purposes located in schema/gendummydata.py [1]
The script generates random accounts including Trusted Users with password same as username. <<<https://gitlab.archlinux.org/archlinux/aurweb/-/blob/master/schema/gendummydata.py#L154-186>>>
If I can get this working, I don't see much of a need to implement anything new (unless aurweb is being used by a crazy ton of less-experienced people or something). I imagine I could just automate it into a Bash script after I figured out the commands if I really needed to.
Ideally I'm gonna try to not upgrade this a ton too, as I'm making a decent amount of changes in the GUI, and I don't want to deal with a bunch of hassle over and over.
Thanks! I'll send a message if it's still not working right. --- *Hunter Wittenborn* hunter@hunterwittenborn.com <mailto:hunter@hunterwittenborn.com> <<mailto:hunter@hunterwittenborn.com>>
Found the issue: `notify-cmd` defaults to `/usr/local/bin/aurweb-notify`, but it actually installs to `/usr/bin/aurweb-notify`. Is there any reason it's set to the `/usr/local` directory by default?
I've gotten everything working (Including getting myself TU status), but I had one last question: Is there any way to disable the spam check that requires pacman? The users of my instance aren't going to me on Arch-based distros, so I ideally need to disable it for the time being untill I can think of something else. --- *Hunter Wittenborn* hunter@hunterwittenborn.com On Thu, Jun 24, 2021 at 2:26 am, Hunter Wittenborn <hunter@hunterwittenborn.com> wrote:
Found the issue:
`notify-cmd` defaults to `/usr/local/bin/aurweb-notify`, but it actually installs to `/usr/bin/aurweb-notify`.
Is there any reason it's set to the `/usr/local` directory by default?
This should be the last thing. I forgot to mention I didn't test the cgit interface, but when I browse to anything on the cgit path (aur.instance.com/cgit), it just says 404 error. Key being it's doing so when I try to view the source files for packages inside the web interface. I'm seeing some cgit packages in the Arch repos, but I'm not really sure what I'd do with them. In the Arch Wiki, it's showing some stuff about messing with '@cgit' in my NGINX config, but the installation docs for aurweb don't mention anything about it. Anything I can try?
participants (3)
-
Eli Schwartz
-
Hunter Wittenborn
-
Leonidas Spyropoulos