Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S
Scinage
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Science Computing
  • Scinage
  • Issues
  • #7

Closed
Open
Opened Aug 17, 2016 by Steve Weber@s8weberMaintainer

logmessage: received a naive datetime while time zone support is active

the logs are filling with this error on what seems to be every web request. ~500MB per day of.

Aug 17 09:00:19 scinage-p01.private.uwaterloo.ca uwsgi[469]:   RuntimeWarning)
Aug 17 09:00:19 scinage-p01.private.uwaterloo.ca uwsgi[469]: [pid: 689|app: 0|req: 317608/3889706] 129.97.58.107 () {42 vars in 723 bytes} [Wed Aug 17 13:00:19 2016] GET /screens/ping/dp-5th-floor/ => generated 19 bytes in 38 msecs (HTTP/1.1 200) 2 headers in 80 bytes (1 switches on core 0)
Aug 17 09:00:19 scinage-p01.private.uwaterloo.ca uwsgi[469]: /usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py:1474: RuntimeWarning: DateTimeField Screen.last_connect received a naive datetime (2016-08-17 13:00:19.855058) while time zone support is active.
Aug 17 09:00:19 scinage-p01.private.uwaterloo.ca uwsgi[469]:   RuntimeWarning)
Aug 17 09:00:19 scinage-p01.private.uwaterloo.ca uwsgi[469]: [pid: 690|app: 0|req: 286872/3889707] 129.97.58.107 () {42 vars in 723 bytes} [Wed Aug 17 13:00:19 2016] GET /screens/ping/dp-8th-floor/ => generated 19 bytes in 34 msecs (HTTP/1.1 200) 2 headers in 80 bytes (1 switches on core 0)
Aug 17 09:00:20 scinage-p01.private.uwaterloo.ca uwsgi[469]: /usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py:1474: RuntimeWarning: DateTimeField Screen.last_connect received a naive datetime (2016-08-17 13:00:20.014137) while time zone support is active.
Aug 17 09:00:20 scinage-p01.private.uwaterloo.ca uwsgi[469]:   RuntimeWarning)

seems to be an issue with how time is passed to a django model.

http://stackoverflow.com/questions/18622007/runtimewarning-datetimefield-received-a-naive-datetime

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: science-computing/Scinage#7