-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throwing 502 for every package after following setup instructions #11
Comments
It seems that fixity has reached the frontend webserver (Nginx?) but the request could not be routed to the Storage Service backend. This is probably happening because the Storage Service is down or Nginx can't establish a connection due to some network or configuration issue. I would start looking at the error log of Nginx. |
That's what I thought, but it didn't make sense, because fixity is just hitting it from localhost, and the site is fully functional otherwise. Error logs have: |
So if it says that SS (upstream) prematurely closed the connection I guess that's because the backend process crashed or something went wrong like a particular view in SS couldn't complete. Anything interesting in the logs of the WSGI server (Gunicorn or mod_wsgi depending on the version of AM you're running) or in the SS logs? |
in Gunicorn logs, I got the most ample python traceback I've ever seen, which I'm pretty sure just amounts to "can't connect on localhost" ... |
Ok from that I can understand that there was an uncontrolled exception in SS (something bad happened) and it was caught by the logger which triedto send you an email. The email report is actually sent to the people in the ADMINS list using these settings. I think that the logging defaults in SS 0.10 are not great. You could tweak the settings linked above to get the email logging going or you could just delete remove |
OK, so just to clarify -- a default SS deployment basically expects to be able to connect to an SMTP client, and this is the result of it not being able to do so, regardless of what the actual error was? I got the same traceback after commenting out that part of base.py and restarting the storage service... |
Yes, that's what I think. Excepting that SS would be the SMTP client. Ultimately the way you send email depends on the type of email backend - you can even email to the filesystem or to a service like Amazon SES that doesn't rely on SMTP at all.
I'm not sure why that would happen, sorry. Maybe try to redefine the email back-end as follows:
More here: https://docs.djangoproject.com/en/1.8/topics/email/#console-backend |
Hi Jesus,
|
That would only apply if your environment string |
Ah, OK. still getting the same smtp traceback after pasting that line into the end of base.py, though... Should I just try to configure postfix or sendmail on here at this point? Would that actually be easier? |
You'd need to edit
Well I personally think that changing a configuration file should be much easier than setting up a MTA but you may think differently. |
OK, making some progress -- thanks for clarifying config file override, I have no idea how that part works. Now gunicorn log just contains this: [2017-11-08 10:38:52 +0000] [49275] [INFO] Handling signal: term What should I be checking now to investigate the 502s? |
I'm glad we're making progress! There are two loggers that can help:
So you can take a look at |
Right now, those just contain a lot of
no warnings or errors or anything like that. not super familiar with Django's logging, but do I need to add an additional entry to that json config for WARN and ERROR level logging? |
Can you show me the |
Sure thing!
as far as I know that's stock from an Artefactual deployment. |
Excepting that the |
ah, here we go, some actual output!
Unfortunately it suggests that the storage service can't find any packages when being called in this way? |
👏 👏 👏 👏 👏 👏 It looks like 7z is not installed in the machine where SS is running perhaps? |
Hah. That did it. FYI, I'm not sure there's a Thanks! Might want to list that as a requirement on the readme... |
@axfelix is your installation using the official packages or the Ansible role? Which version of SS are you running? |
It's: Version: 0.10.0 Deployed by Artefacutal for SFU, not sure about Ansible. |
@axfelix I've just talked to @scollazo. Apparently this is a known issue. It's documented in the installation instructions (see https://www.archivematica.org/en/docs/archivematica-1.6/admin-manual/installation/installation/#installation). I've filed a bug anyways: artefactual/archivematica-storage-service#260. |
Aha! Well, whoever set up this VM didn't follow them :) |
Hi folks,
After following the documentation to setup fixity on a dedicate Archivematica Storage Service server, scanall is throwing a 502 for every AIP it tries to scan. Any idea what could be causing this?
The text was updated successfully, but these errors were encountered: