Questions with setting up aurweb instance
Hunter Wittenborn
hunter at hunterwittenborn.com
Thu Jun 24 07:10:15 UTC 2021
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 at hunterwittenborn.com
On Thu, Jun 24, 2021 at 2:06 am, Hunter Wittenborn via aur-dev
<aur-dev at 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 at hunterwittenborn.com <mailto:hunter at hunterwittenborn.com>
>
> On Wed, Jun 23, 2021 at 5:13 pm, Hunter Wittenborn
> <hunter at hunterwittenborn.com <mailto:hunter at 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 at hunterwittenborn.com <mailto:hunter at hunterwittenborn.com>
>>
>> On Wed, Jun 23, 2021 at 4:22 pm, Hunter Wittenborn via aur-dev
>> <aur-dev at lists.archlinux.org <mailto:aur-dev at 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 at hunterwittenborn.com <mailto:hunter at hunterwittenborn.com>
>>> <<mailto:hunter at hunterwittenborn.com>>
>>>
>>>
>
More information about the aur-dev
mailing list