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

[Bug]: occ files:scan error Implicit conversion from float #32837

Closed
5 of 8 tasks
markuszeller opened this issue Jun 12, 2022 · 12 comments · Fixed by #32838
Closed
5 of 8 tasks

[Bug]: occ files:scan error Implicit conversion from float #32837

markuszeller opened this issue Jun 12, 2022 · 12 comments · Fixed by #32838
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@markuszeller
Copy link
Contributor

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

When using occ files:scan the error message Implicit conversion from float will come up sometimes.

Steps to reproduce

  1. occ files:scan

Expected behavior

Completion message.

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nc.gamesucker.de"
        ],
        "enable_previews": true,
        "preview_max_x": 100,
        "preview_max_y": 100,
        "preview_max_scale_factor": 1,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.1.1",
        "overwrite.cli.url": "http:\/\/nc.gamesucker.de",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\Memcached",
        "memcached_servers": [
            [
                "localhost",
                11211
            ]
        ],
        "app_install_overwrite": [
            "files_clipboard",
            "files_accesscontrol",
            "previewgenerator",
            "files_frommail",
            "keeporsweep"
        ],
        "mail_smtpmode": "sendmail",
        "mail_smtpauth": false,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtptimeout": 10,
        "mail_smtpauthtype": "PLAIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "pipe",
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "default_phone_region": "DE",
        "data-fingerprint": "a81bfb9632e22f1a3c13b862c6d38f1f"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - admin_audit: 1.14.0
  - apporder: 0.15.0
  - audioplayer: 3.3.0
  - bruteforcesettings: 2.4.0
  - circles: 24.0.0
  - cloud_federation_api: 1.7.0
  - comments: 1.14.0
  - contactsinteraction: 1.5.0
  - dashboard: 7.4.0
  - dav: 1.22.0
  - deck: 1.7.0
  - duplicatefinder: 0.0.14
  - external: 4.0.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_accesscontrol: 1.14.0
  - files_external: 1.16.1
  - files_frommail: 0.4.0
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - firstrunwizard: 2.13.0
  - keeporsweep: 0.2.1
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - mail: 1.13.3
  - nextcloud_announcements: 1.13.0
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - password_policy: 1.14.0
  - phonetrack: 0.7.0
  - photos: 1.6.0
  - polls: 3.6.1
  - previewgenerator: 5.0.0
  - privacy: 1.8.0
  - provisioning_api: 1.14.0
  - recommendations: 1.3.0
  - registration: 1.5.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - socialsharing_email: 2.5.0
  - socialsharing_facebook: 2.5.0
  - socialsharing_twitter: 2.5.0
  - spreed: 14.0.2
  - support: 1.7.0
  - survey_client: 1.12.0
  - systemtags: 1.14.0
  - text: 3.5.1
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - updatenotification: 1.14.0
  - user_external: 3.0.0
  - user_status: 1.4.0
  - viewer: 1.8.0
  - weather_status: 1.4.0
  - workflowengine: 2.6.0
Disabled:
  - drawio: 1.0.1
  - encryption: 2.4.0
  - files_trackdownloads: 1.9.0
  - flowupload: 1.1.2
  - user_ldap

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

@markuszeller markuszeller added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 12, 2022
@markuszeller
Copy link
Contributor Author

Pull Request #32838

@kesselb
Copy link
Contributor

kesselb commented Jun 12, 2022

Looks like #31692?

@markuszeller
Copy link
Contributor Author

Error is the same, but not fixed in line Scan.php: 292. The cast is missing in there, too.

@nextcloud-command
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@nextcloud-command nextcloud-command added the stale Ticket or PR with no recent activity label Jul 14, 2022
@lhurt
Copy link

lhurt commented Nov 3, 2022

It still occurs on my 25.0.0 installation.

I think the issue should be reopened

@forzagreen
Copy link

Error with version 25.0.1:

$ php occ files:scan-app-data
Scanning AppData for files

In ScanAppData.php line 242:
  Implicit conversion from float 11.266666666666667 to int loses precision 

@kesselb kesselb reopened this Nov 7, 2022
markuszeller added a commit to markuszeller/nextcloud-server that referenced this issue Nov 7, 2022
markuszeller added a commit to markuszeller/nextcloud-server that referenced this issue Nov 7, 2022
markuszeller added a commit to markuszeller/nextcloud-server that referenced this issue Nov 7, 2022
Signed-off-by: Markus Zeller <git@markuszeller.com>
@nextcloud-command nextcloud-command removed stale Ticket or PR with no recent activity needs info labels Nov 8, 2022
backportbot-nextcloud bot pushed a commit that referenced this issue Nov 8, 2022
Signed-off-by: Markus Zeller <git@markuszeller.com>
backportbot-nextcloud bot pushed a commit that referenced this issue Nov 8, 2022
Signed-off-by: Markus Zeller <git@markuszeller.com>
@Praetorian1410
Copy link

Praetorian1410 commented Dec 9, 2022

Still not fixed on 25.0.2...
In ScanAppData.php line 242: Implicit conversion from float 163.36666666666667 to int loses precision

@markuszeller my apologies, was really bummed to see the changelog and then have it happen again ;)
good luck with the rest of it then.

@markuszeller
Copy link
Contributor Author

Still not fixed on 25.0.2... In ScanAppData.php line 242: Implicit conversion from float 163.36666666666667 to int loses precision

That's a different part of code. Fixed was 15289f9 which is another file, but the same kind of error. See my comment #32837 (comment)

@kesselb
Copy link
Contributor

kesselb commented Dec 9, 2022

#35037 should fix it.

@ryklebaron
Copy link

ryklebaron commented Jan 4, 2023

@kesselb Running latest version (25.0.2), but still got the error:

docker exec -u www-data nextcloud-server php occ files:scan-app-data
Scanning AppData for files

In ScanAppData.php line 242:

Implicit conversion from float 0.15 to int loses precision

files:scan-app-data [--output [OUTPUT]] [--] []

@krebbi
Copy link

krebbi commented Jan 24, 2023

With 25.03

In ScanAppData.php line 242:

Implicit conversion from float 29.233333333333334 to int loses precision

@kesselb
Copy link
Contributor

kesselb commented Jan 25, 2023

25.0.4: #36311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants