Skip to content
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

Issue resolving alias of timezone #1841

Closed
MightyCreak opened this issue Jan 18, 2020 · 9 comments · Fixed by #1864
Closed

Issue resolving alias of timezone #1841

MightyCreak opened this issue Jan 18, 2020 · 9 comments · Fixed by #1864
Labels
1. to develop Accepted and waiting to be taken care of bug
Milestone

Comments

@MightyCreak
Copy link
Contributor

MightyCreak commented Jan 18, 2020

Steps to reproduce

  1. Update to Calendar 2.0.0
  2. Only the left panel appears (see screenshot below)

image

Expected behaviour

The calendar (right panel) show appear

Actual behaviour

The calendar (right panel) is all blank

Calendar app

Calendar app version: 2.0.0

CalDAV-clients used: DAVx5, Evolution

Client configuration

Browser: Brave 1.2.42

Operating system: Fedora 31

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx

Database: MariaDB

PHP version: 7.2.24

Nextcloud Version: 17.0.2

Updated from an older installed version or fresh install: Updated from an older installed version

List of activated apps:

Enabled:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - calendar: 2.0.0
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - contacts: 3.1.6
  - dav: 1.13.0
  - federatedfilesharing: 1.7.0
  - federation: 1.7.0
  - files: 1.12.0
  - files_pdfviewer: 1.6.0
  - files_rightclick: 0.15.1
  - files_sharing: 1.9.0
  - files_trashbin: 1.7.0
  - files_versions: 1.10.0
  - files_videoplayer: 1.6.0
  - firstrunwizard: 2.6.0
  - gallery: 18.4.0
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - mail: 1.0.0
  - news: 14.1.2
  - nextcloud_announcements: 1.6.0
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - password_policy: 1.7.0
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - recommendations: 0.5.0
  - serverinfo: 1.7.0
  - sharebymail: 1.7.0
  - support: 1.0.1
  - survey_client: 1.5.0
  - systemtags: 1.7.0
  - tasks: 0.11.3
  - text: 1.1.1
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - updatenotification: 1.7.0
  - viewer: 1.2.0
  - workflowengine: 1.7.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - user_ldap

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.foolstep.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "http:\/\/cloud.foolstep.com",
        "dbtype": "mysql",
        "version": "17.0.2.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "updater.release.channel": "stable",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

Logs

Web server error log (e.g. /var/log/apache)

Got several users, so it's harder to filter out relevant information. But when I refresh the page, I get 200 and 207 response, like that:

[18/Jan/2020:10:25:21 -0500] "GET /apps/calendar/timeGridWeek/now HTTP/2.0" 200 5591 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
[18/Jan/2020:10:25:22 -0500] "PROPFIND /remote.php/dav/ HTTP/2.0" 207 415 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
[18/Jan/2020:10:25:23 -0500] "PROPFIND /remote.php/dav/principals/users/creak/ HTTP/2.0" 207 3152 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
[18/Jan/2020:10:25:23 -0500] "PROPFIND /remote.php/dav/calendars/creak/ HTTP/2.0" 207 13070 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"

Log file (data/nextcloud.log)

Nothing happens in this file when I refresh or hard-refresh the calendar page.

Browser log

Javascript console log has some errors:

Content Security Policy: Les paramètres de la page ont empêché le chargement d’une ressource à inline (« script-src »). onloadwff.js:71:803563
Content Security Policy: Les paramètres de la page ont empêché le chargement d’une ressource à eval (« script-src »).
Content Security Policy: Les paramètres de la page ont empêché le chargement d’une ressource à eval (« script-src »).
JQMIGRATE: Migrate is installed, version 1.4.1 main.js:396:531
oc_config is deprecated: use OC.config instead main.js:1095:57
Proxying an event bus of version 0.2.1 with 1.1.2 calendar.js:2:1739032
The escapeHTML library is deprecated! It will be removed in nextcloud 19. 2 main.js:1095:57
Initial settings: 
Object { appVersion: "2.0.0", firstRun: false, showWeekends: true, showWeekNumbers: false, skipPopover: false, talkEnabled: false, timezone: "America/Montreal" }
calendar.js:2:2574863
The escapeHTML library is deprecated! It will be removed in nextcloud 19. 2 main.js:1095:57
[DEBUG] calendar: The calendar app is using version 2.2019c of the timezone database 
Object { app: "calendar", uid: "authenticated:creak" }
calendar.js:2:1761077
The escapeHTML library is deprecated! It will be removed in nextcloud 19. main.js:1095:57
TypeError: "Bl(...).getTimezoneForId(...) is null"
    value https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    timestampToMarker https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    createNowMarker https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    getNow https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    buildValidRange https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    build https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    i https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    _r https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    reduce https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    dispatch https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    hydrate https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    batchRendering https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    hydrate https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    e https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    mounted https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Qe https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Kt https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    insert https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    D https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    ci https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    _update https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    r https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    get https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    dn https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    mount https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    $mount https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    _init https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    wn https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    <anonymous> https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    i https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    <anonymous> https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    <anonymous> https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
calendar.js:2:229317
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. main.js:208:10687
TypeError: "this.$options.calendar is undefined"
    renderDirty https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    beforeUpdate https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Qe https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Kt https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    before https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    un https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    tt https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Je https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
calendar.js:2:229317
The escapeHTML library is deprecated! It will be removed in nextcloud 19. 2 main.js:1095:57
[DEBUG] calendar: Current user principal is /remote.php/dav/principals/users/creak/ 
Object { app: "calendar", uid: "authenticated:creak" }
calendar.js:2:1761077
TypeError: "this.$options.calendar is undefined"
    renderDirty https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    beforeUpdate https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Qe https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Kt https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    before https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    un https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    tt https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
    Je https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0:2
calendar.js:2:229317
Erreur dans les liens source : Error: NetworkError when attempting to fetch resource.
URL de la ressource : https://cloud.foolstep.com/core/js/dist/main.js?v=71dd8f09-0
URL du lien source : main.js.map
Erreur dans les liens source : Error: NetworkError when attempting to fetch resource.
URL de la ressource : https://cloud.foolstep.com/apps/calendar/js/calendar.js?v=71dd8f09-0
URL du lien source : calendar.js.map

Everything is 200 or 207 in the network log.

@MightyCreak MightyCreak added 0. to triage Pending approval or rejection bug labels Jan 18, 2020
@georgehrke
Copy link
Member

@MightyCreak The javascript log should not only contain error message, but also some debug / info / warning messages. Can you please post those as well?

It seems there is an issue with the timezone you are in.

Please provide us with the full logs first. As workaround, you can select a different timezone in the lower left settings area.

@MightyCreak
Copy link
Contributor Author

Thank you for the quick answer!

The "Verbose" log level was unchecked, as well as the XHR logs. I've enabled everything and modified the original post.

@no-response no-response bot removed the needs info label Jan 18, 2020
@georgehrke
Copy link
Member

Exactly the important piece of information was truncated by the browser. :/

In the console, it says:
Initial settings: {appVersion: "2.0.0", firstRun: false, showWeekends: true, showWeekNumbers: false, skipPopover: false, …}
On the left side of that message, there should be a tiny triangle. Can you click that and post the entire contents of that object?

Thanks a lot.

@MightyCreak
Copy link
Contributor Author

MightyCreak commented Jan 18, 2020

Here you go:

{appVersion: "2.0.0", firstRun: false, showWeekends: true, showWeekNumbers: false, skipPopover: false, …}
appVersion: "2.0.0"
firstRun: false
showWeekends: true
showWeekNumbers: false
skipPopover: false
talkEnabled: false
timezone: "America/Montreal"
__proto__: Object

Edit: I'm sorry for the log format, I'm trying to find a way to have an exhaustive log without, yet a little bit formatted, but I can't find it...

@no-response no-response bot removed the needs info label Jan 18, 2020
@georgehrke
Copy link
Member

Ah, America/Montreal should alias to America/Toronto. It seems there is an issue with resolving the alias. Will look into that.

As a workaround, you should be able to change the timezone in the lower left settings area to Toronto.

@georgehrke
Copy link
Member

I was able to reproduce it with America/Montreal on my local machine.
Setting the timezone to Toronto and reloading the page fixed it.

@georgehrke georgehrke changed the title Calendar not showing Issue resolving alias of timezone Jan 18, 2020
@georgehrke georgehrke added this to the 2.0.1 milestone Jan 18, 2020
@georgehrke georgehrke added 1. to develop Accepted and waiting to be taken care of and removed 0. to triage Pending approval or rejection labels Jan 18, 2020
@MightyCreak
Copy link
Contributor Author

Changed it to Automatic (America/Toronto) and it works like a charm now! Thank you so much!

Also, I pasted the logs from Firefox since they are much better formatted than the Brave ones.

@brimwats1
Copy link

This issue is reocurring in Calendar 2.03

@georgehrke
Copy link
Member

@brimwats Please open a new issue and fill the entire issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants