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

API - test hasura 2.0 stable #1043

Closed
tpurschke opened this issue Jun 23, 2021 · 2 comments · Fixed by #1136
Closed

API - test hasura 2.0 stable #1043

tpurschke opened this issue Jun 23, 2021 · 2 comments · Fixed by #1136
Assignees
Labels
enhancement New feature or request test Test new / existing feature

Comments

@tpurschke
Copy link
Contributor

tpurschke commented Jun 23, 2021

see hasura/graphql-engine#4847

install working, but issue with null:
expected a list, but found null .

https://hasura.io/docs/latest/graphql/core/guides/upgrade-hasura-v2.html#what-has-changed

Breaking behaviour changes

    Semantics of explicit “null” values in “where” filters have changed

    According to the discussion in this GitHub issue, an explicit null value in a comparison input object will be treated as an error rather than resulting in the expression being evaluated to True.

    For example: The mutation delete_users(where: {id: {_eq: $userId}}) { name } will yield an error if $userId is null instead of deleting all users.

    The older behaviour can be preserved by setting the HASURA_GRAPHQL_V1_BOOLEAN_NULL_COLLAPSE env var to true.

    Semantics of “null” join values in remote schema relationships have changed

    In a remote schema relationship query, the remote schema will be queried when all of the joining arguments are not null values. When there are null value(s), the remote schema won’t be queried and the response of the remote relationship field will be null. Earlier, the remote schema was queried with the null value arguments and the response depended upon how the remote schema handled the null arguments but as per user feedback, this behaviour was clearly not expected.

fixing for now with HASURA_GRAPHQL_V1_BOOLEAN_NULL_COLLAPSE: true

@tpurschke tpurschke added enhancement New feature or request test Test new / existing feature labels Jun 23, 2021
@tpurschke tpurschke added this to the phase 2 - 2022 milestone Jun 23, 2021
@tpurschke tpurschke self-assigned this Jun 23, 2021
@tpurschke tpurschke changed the title API - test hasura 3.0 stable API - test hasura 2.0 stable Jul 25, 2021
@tpurschke
Copy link
Contributor Author

error with v2.0.3:

TASK [api : start hasura container] ****************************************************************************************************************************************
changed: [fworch-srv]

TASK [api : show docker result] ********************************************************************************************************************************************
skipping: [fworch-srv]

TASK [api : Get info on container] *****************************************************************************************************************************************
ok: [fworch-srv]

TASK [api : Print the status of the container in case of problems only] ****************************************************************************************************
fatal: [fworch-srv]: FAILED! => {"changed": false, "msg": "The container status is: {'failed': False, u'changed': False, u'container': {u'Platform': u'linux', u'State': {u'Status': u'exited', u'Pid': 0, u'OOMKilled': False, u'Dead': False, u'Paused': False, u'Running': False, u'FinishedAt': u'2021-07-25T16:25:44.359785135Z', u'Restarting': False, u'Error': u'', u'StartedAt': u'2021-07-25T16:25:43.738175214Z', u'ExitCode': 1}, u'Config': {u'Tty': False, u'Cmd': [u'graphql-engine', u'serve'], u'Env': [u'HASURA_GRAPHQL_ENABLE_CONSOLE=true', u'HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets', u'HASURA_GRAPHQL_JWT_SECRET= { \"type\": \"RS256\", \"key\": \"-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAloecnNIFugX1ht4IaJ3q\\nds7ZwJX1qPCICt+kvqKi88RNSSoEzYbiycpjWWxnwrMtbOZn9nix8FylHmWNb+lX\\n6FGSOg6CedZ/usFqdOwS7JTwyMK5Zx60ZQQB+otLUVCmeeQMcEFAlZi97QHSv4x7\\nGfisBX//qRSi7RFpUnkY0PwD50ELd6tci0Ejs3wwiaFNEgczmH3H3jtOoBqEvyuo\\nC+AKvv9BbDRyPjK5nXL7Jka6rioyXHknqmlk0toEu5VsmhtLjWHIkgi2PdRjjvSU\\ntN+QYZFg9bgcbSf8qzJgtp2Ue+NjkN5kPo/04yHM+X2ZLeGWGVMJtHhBc0ftjwAW\\nwwIDAQAB\\n-----END PUBLIC KEY-----\\n\", \"claims_namespace_path\": \"$\" } ', u'HTTP_PROXY=', u'HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, websocket-log', u'HASURA_GRAPHQL_LOG_LEVEL=info', u'HTTPS_PROXY=', u'HASURA_GRAPHQL_CORS_DOMAIN=*', u'HASURA_GRAPHQL_DATABASE_URL=postgres://dbadmin:PPujGLozxtSKndf@localhost:5432/fworchdb', u'HASURA_GRAPHQL_ADMIN_SECRET=LMFhAFySgnJfLAa', u'HASURA_GRAPHQL_ENABLE_TELEMETRY=false', u'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', u'LANG=C.UTF-8', u'LC_ALL=C.UTF-8'], u'Domainname': u'', u'WorkingDir': u'', u'Image': u'hasura/graphql-engine:v2.0.3', u'Hostname': u'ubu18test', u'StdinOnce': False, u'Labels': {}, u'AttachStdin': False, u'User': u'', u'Volumes': None, u'ExposedPorts': {u'8080:8080/tcp': {}}, u'OnBuild': None, u'AttachStderr': False, u'Entrypoint': None, u'AttachStdout': False, u'OpenStdin': False}, u'ResolvConfPath': u'/var/lib/docker/containers/1859037537f34eb822f6c49924b87f4d58800caff90a6d5ef5872ee42ea2a06d/resolv.conf', u'HostsPath': u'/var/lib/docker/containers/1859037537f34eb822f6c49924b87f4d58800caff90a6d5ef5872ee42ea2a06d/hosts', u'Args': [u'serve'], u'Driver': u'overlay2', u'Path': u'graphql-engine', u'HostnamePath': u'/var/lib/docker/containers/1859037537f34eb822f6c49924b87f4d58800caff90a6d5ef5872ee42ea2a06d/hostname', u'RestartCount': 0, u'Mounts': [], u'Name': u'/fworch-api', u'Created': u'2021-07-25T16:25:43.151274328Z', u'GraphDriver': {u'Data': {u'LowerDir': u'/var/lib/docker/overlay2/f6ef3801625c5f8252e2d92208db7e765d19080923b523e718e847c89ca9be0e-init/diff:/var/lib/docker/overlay2/92092793abfd76e040216b032d8f6cfce2b541a8f728aaec15ff27280fbb8fc6/diff:/var/lib/docker/overlay2/fade07b1e29e87d134ed2113b11788ca58524a1900d09b57e4cb39074baab5f1/diff:/var/lib/docker/overlay2/03675c8768e1ac69128e7aac7e7a2ff2d0e8d49acc12ccf6b26911caa56bce2c/diff:/var/lib/docker/overlay2/7ce594be05bac3d60fe1f495691bf8f50113a28ab0b9c2078c000f8600bdcfc8/diff:/var/lib/docker/overlay2/d3dadd7ac42318be5f913bccbd4c63e058c5ae0e6842edcc8bd5b70da79790d1/diff', u'WorkDir': u'/var/lib/docker/overlay2/f6ef3801625c5f8252e2d92208db7e765d19080923b523e718e847c89ca9be0e/work', u'MergedDir': u'/var/lib/docker/overlay2/f6ef3801625c5f8252e2d92208db7e765d19080923b523e718e847c89ca9be0e/merged', u'UpperDir': u'/var/lib/docker/overlay2/f6ef3801625c5f8252e2d92208db7e765d19080923b523e718e847c89ca9be0e/diff'}, u'Name': u'overlay2'}, u'ExecIDs': None, u'ProcessLabel': u'', u'NetworkSettings': {u'SecondaryIPAddresses': None, u'SecondaryIPv6Addresses': None, u'Bridge': u'', u'GlobalIPv6PrefixLen': 0, u'LinkLocalIPv6Address': u'', u'MacAddress': u'', u'IPAddress': u'', u'HairpinMode': False, u'IPPrefixLen': 0, u'GlobalIPv6Address': u'', u'Gateway': u'', u'LinkLocalIPv6PrefixLen': 0, u'EndpointID': u'', u'SandboxKey': u'/var/run/docker/netns/default', u'SandboxID': u'66d37a9c775af961795804f1f4d4f43012d8bd1655e09e77d7524d4d025c55e5', u'IPv6Gateway': u'', u'Networks': {u'host': {u'NetworkID': u'f5cde5cd166f5c83dd6523ca956889d7aa7e9c6de17c29fb3d358d09ad629c10', u'MacAddress': u'', u'GlobalIPv6PrefixLen': 0, u'Links': None, u'GlobalIPv6Address': u'', u'IPAddress': u'', u'Gateway': u'', u'DriverOpts': None, u'IPPrefixLen': 0, u'EndpointID': u'', u'IPv6Gateway': u'', u'IPAMConfig': None, u'Aliases': None}}, u'Ports': {}}, u'AppArmorProfile': u'docker-default', u'Image': u'sha256:7c0ceef93a9603620d3b6d6f50dd72529ea9d942dcc4779309bf7348152272df', u'LogPath': u'', u'HostConfig': {u'CpuPeriod': 0, u'MemorySwappiness': None, u'AutoRemove': False, u'KernelMemory': 0, u'PortBindings': None, u'ConsoleSize': [0, 0], u'BlkioDeviceReadIOps': None, u'CpusetMems': u'', u'UsernsMode': u'', u'Init': False, u'IOMaximumBandwidth': 0, u'Dns': None, u'PidMode': u'', u'PidsLimit': None, u'CgroupParent': u'', u'Privileged': False, u'IOMaximumIOps': 0, u'CgroupnsMode': u'host', u'NanoCpus': 0, u'CpusetCpus': u'', u'Cgroup': u'', u'DnsSearch': None, u'BlkioWeight': 0, u'LogConfig': {u'Type': u'syslog', u'Config': {u'syslog-facility': u'daemon', u'tag': u'fworch-api', u'syslog-address': u'tcp://localhost:514'}}, u'RestartPolicy': {u'MaximumRetryCount': 0, u'Name': u''}, u'PublishAllPorts': False, u'BlkioDeviceWriteBps': None, u'VolumeDriver': u'', u'ReadonlyRootfs': False, u'CpuShares': 0, u'OomScoreAdj': 0, u'MemoryReservation': 0, u'BlkioWeightDevice': None, u'CpuPercent': 0, u'NetworkMode': u'host', u'BlkioDeviceReadBps': None, u'Isolation': u'', u'GroupAdd': None, u'ReadonlyPaths': [u'/proc/bus', u'/proc/fs', u'/proc/irq', u'/proc/sys', u'/proc/sysrq-trigger'], u'CpuRealtimeRuntime': 0, u'Devices': None, u'BlkioDeviceWriteIOps': None, u'VolumesFrom': None, u'Binds': [], u'CpuQuota': 0, u'MemorySwap': 0, u'UTSMode': u'', u'ExtraHosts': None, u'Runtime': u'runc', u'Ulimits': None, u'CapDrop': None, u'DnsOptions': None, u'ShmSize': 67108864, u'Links': None, u'CpuRealtimePeriod': 0, u'IpcMode': u'private', u'DeviceRequests': None, u'ContainerIDFile': u'', u'SecurityOpt': None, u'CapAdd': None, u'CpuCount': 0, u'Memory': 0, u'DeviceCgroupRules': None, u'KernelMemoryTCP': 0, u'OomKillDisable': False, u'MaskedPaths': [u'/proc/asound', u'/proc/acpi', u'/proc/kcore', u'/proc/keys', u'/proc/latency_stats', u'/proc/timer_list', u'/proc/timer_stats', u'/proc/sched_debug', u'/proc/scsi', u'/sys/firmware']}, u'Id': u'1859037537f34eb822f6c49924b87f4d58800caff90a6d5ef5872ee42ea2a06d', u'MountLabel': u''}, u'exists': True}"}

RUNNING HANDLER [api : recover backup] *************************************************************************************************************************************
changed: [fworch-srv]

@tpurschke
Copy link
Contributor Author

Jul 26 13:24:02 ubu18test python3[10951]: ansible-docker_container Invoked with image=hasura/graphql-engine:v2.0.3 recreate=True state=started env={'HASURA_GRAPHQL_ENABLE_CONSOLE': 'true', 'HASURA_GRAPHQL_CONSOLE_ASSETS_DIR': '/srv/console-assets', 'HASURA_GRAPHQL_JWT_SECRET': '{ "type": "RS512", "key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ILANCqxJZazBoskdWdx\nm0Rvyb6iYt1eiecep5eCHbq+Hmq4NJpJkIcLadzd2m/n0q0VkOAwrpN499RtZxZ4\nHKgheD9Z/uzrgIKDQFmnd9KygYjIAubQXxC/CFgv79CfG9+LIyKCu4oNXueoYJnS\nXjzV9NNBF05bVj2zZsJneZlujQKNt7xMXhFo7uWpbAx8qYP1n1RjBVTyIaKc4dDB\n90bNhpSBz/L3/09h4+r26xZloZRhzfMrplUWBVYyzH2g/b0VOjXS2Coe8HV10Rt8\nzecBrz/JYbf9HVY7g3sWTueyd5+XdCWkIbZy0A3yiO5jCltbZWl86BjzUsFwzS10\naQIDAQAB\n-----END PUBLIC KEY-----", "claims_namespace_path": "https://hasura.io/jwt/claims" }', 'HTTP_PROXY': '', 'HASURA_GRAPHQL_ENABLED_LOG_TYPES': 'startup, http-log, websocket-log', 'HASURA_GRAPHQL_LOG_LEVEL': 'info', 'HTTPS_PROXY': '', 'HASURA_GRAPHQL_CORS_DOMAIN': '*', 'HASURA_GRAPHQL_DATABASE_URL': 'postgres://dbadmin:********@localhost:5432/fworchdb', 'HASURA_GRAPHQL_ADMIN_SECRET': 'not4production', 'HASURA_GRAPHQL_ENABLE_TELEMETRY': 'false'} networks_cli_compatible=True log_options={'syslog-facility': 'daemon', 'tag': 'fworch-api', 'syslog-address': 'tcp://localhost:514'} exposed_ports=['8080:8080'] log_driver=syslog network_mode=host name=fworch-api docker_host=unix://var/run/docker.sock tls_hostname=localhost api_version=auto timeout=60 tls=False validate_certs=False debug=False auto_remove=False cleanup=False detach=True force_kill=False ignore_image=False init=False interactive=False keep_volumes=True memory=0 output_logs=False paused=False privileged=False pull=False purge_networks=False read_only=False restart=False trust_image_content=False tty=False ca_cert=None client_cert=None client_key=None ssl_version=None blkio_weight=None capabilities=None cap_drop=None command=None comparisons=None cpu_period=None cpu_quota=None cpuset_cpus=None cpuset_mems=None cpu_shares=None devices=None device_read_bps=None device_write_bps=None device_read_iops=None device_write_iops=None dns_servers=None dns_opts=None dns_search_domains=None domainname=None entrypoint=None env_file=None etc_hosts=None groups=None healthcheck=None hostname=None ipc_mode=None kernel_memory=None kill_signal=None labels=None links=None mac_address=None memory_reservation=None memory_swap=None memory_swappiness=None mounts=None networks=None oom_killer=None oom_score_adj=None pid_mode=None pids_limit=None published_ports=None restart_policy=None restart_retries=None runtime=None security_opts=None shm_size=None stop_signal=None stop_timeout=None sysctls=None tmpfs=None ulimits=None user=None userns_mode=None uts=None volume_driver=None volumes=None volumes_from=None working_dir=None
Jul 26 13:24:03 ubu18test dockerd[10172]: time="2021-07-26T13:24:03.058859550Z" level=info msg="Configured log driver does not support reads, enabling local file cache for container logs" container=e52c1c3067cccf1279dbd05bb43e30575b640a14e7bf31e2ad4a09f1f017c91b driver=syslog
Jul 26 13:24:03 ubu18test containerd[843]: time="2021-07-26T13:24:03.064318289Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/e52c1c3067cccf1279dbd05bb43e30575b640a14e7bf31e2ad4a09f1f017c91b pid=10981
Jul 26 13:24:03 localhost fworch-api[10172]: Fatal Error:- Environment variable HASURA_GRAPHQL_JWT_SECRET: Error in $: object value: Failed reading: unescaped control character

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request test Test new / existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant