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

Column "oc_weather_config"."value" is type String, but exceeding the 4.000 length limit #107

Open
Ayush62 opened this issue Jan 12, 2023 · 12 comments

Comments

@Ayush62
Copy link

Ayush62 commented Jan 12, 2023

Hello all,

I am trying to install the weather app on my nextcloud but i keep getting the same error.

I have my nextcloud installed on a raspberry pi 4 8GB ram with snap.

does someone know what to do?

@ShangTianYa
Copy link

fuck.....

@ctorrean
Copy link

Also seeing this issue, on both 25.0.2 and now on 25.0.3

@mohataj
Copy link

mohataj commented Jan 21, 2023

here too

@brownje96
Copy link

Same issue.

@JOHLC
Copy link

JOHLC commented Jan 29, 2023

Also here

Error	settings	InvalidArgumentException: Column "oc_weather_config"."value" is type String, but exceeding the 4.000 length limit.		2023-01-28T23:10:52-0500
Error	settings	InvalidArgumentException: Column "oc_weather_config"."value" is type String, but exceeding the 4.000 length limit.		2023-01-28T23:10:23-0500

@sergeng
Copy link
Contributor

sergeng commented Feb 3, 2023

Fix
00f1a33

@jonas740
Copy link

jonas740 commented Mar 1, 2023

Fix 00f1a33

Ye so in a docker install of nextcloud how do you proceed to fix this ?

And i am on version Nextcloud Hub 3 25.0.4

@lainedfles
Copy link

Here is what worked for me:

  1. Modify the file to update the value to 4000: sudo docker exec --user www-data -it nextcloud-aio-nextcloud sed -Ee "s/'length'(\s+)=>(\s+)10240,/'length'\1=>\24000,/" -i.bak /var/www/html/custom_apps/weather/lib/Migration/Version010703Date20201101235744.php
  2. Validate using diff: sudo docker exec --user www-data -it nextcloud-aio-nextcloud diff -uw /var/www/html/custom_apps/weather/lib/Migration/Version010703Date20201101235744.php.bak /var/www/html/custom_apps/weather/lib/Migration/Version010703Date20201101235744.php
  3. Navigate to yourdomain/settings/apps and re-enable the Weather application.

@MrGenius1
Copy link

Here is what worked for me:

  1. Modify the file to update the value to 4000: sudo docker exec --user www-data -it nextcloud-aio-nextcloud sed -Ee "s/'length'(\s+)=>(\s+)10240,/'length'\1=>\24000,/" -i.bak /var/www/html/custom_apps/weather/lib/Migration/Version010703Date20201101235744.php
  2. Validate using diff: sudo docker exec --user www-data -it nextcloud-aio-nextcloud diff -uw /var/www/html/custom_apps/weather/lib/Migration/Version010703Date20201101235744.php.bak /var/www/html/custom_apps/weather/lib/Migration/Version010703Date20201101235744.php
  3. Navigate to yourdomain/settings/apps and re-enable the Weather application.

How to fix this on a Ubuntu install with Nextcloud Hub 3?

@lainedfles
Copy link

lainedfles commented Mar 15, 2023

How to fix this on a Ubuntu install with Nextcloud Hub 3?

The steps outlined in my original reply are pretty basic. I'd recommend that you read about bash and Ubuntu in general. I don't run Ubuntu so I can only guess and provide a suggestion:

  1. Use find to locate Version010703Date20201101235744.php: sudo find / -iname 'Version010703Date20201101235744.php'
  2. Use the same sed command to apply the patch: sudo sed -Ee "s/'length'(\s+)=>(\s+)10240,/'length'\1=>\24000,/" -i.bak <FULLY_QUALIFIED_PATH_TO_Version010703Date20201101235744.php>
  3. Validate with diff: sudo diff -uw <FULLY_QUALIFIED_PATH_TO_Version010703Date20201101235744.php>.bak <FULLY_QUALIFIED_PATH_TO_Version010703Date20201101235744.php>
  4. Navigate to yourdomain/settings/apps and re-enable the Weather application

Alternative strategies:

@ShangTianYa
Copy link

ShangTianYa commented Mar 17, 2023 via email

@lainedfles
Copy link

lainedfles commented Mar 17, 2023

Sorry, probably won't consider Nextcloud again due to poor optimization and poor performance, and of course thanks for your kind help :)

I understand your frustration as optimization and performance are not universal although we've seen much progress over the years. I'm optimistic about the future of this project. I've yet to find any alternative close to feature parity. Many of the optimizations are now easier to configure using environment variables.

Tuning is a requirement IMO and worth the effort. It would be nice if more attention was dedicated to optimization & performance but I understand the effort required to maintain such an undertaking. For this reason I sympathize with the maintainers decision to abstain. P.s. thanks to all developers and contributors!

You're welcome. If only you've benefit, I'm satisfied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants