Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.5 (build 3100) - 14 January 2021 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Access to the path forYadrTemp2021.txt is denied

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
stef942
Posts: 42
Joined: Mon 19 Oct 2009 8:17 pm
Weather Station: WMR200
Operating System: raspi3
Location: France-oise

Access to the path forYadrTemp2021.txt is denied

Post by stef942 »

Hi, i have an error with 4.10.1 :

2021-01-02 13:37:10.788 Error Exception Unknown : Access to the path "/home/pi/CumulusMX/utils/YadrTemp2021.txt" is denied.

here the full log :

Code: Select all

2021-01-02 13:37:05.397 Information Initial System.Diagnostics.TraceSwitch => Error: True, Warning: True, Info: True, Verbose: True
2021-01-02 13:37:05.416 Verbose 02/01/2021 13:37:05 GetUtilsIniValue NormalMessageToConsole / false
2021-01-02 13:37:05.416 Verbose 02/01/2021 13:37:05 GetUtilsIniValue TraceInfoLevel / Info
2021-01-02 13:37:05.417 Information According to Inifile Info => Error: True, Warning: True, Info: True, Verbose: False, 
2021-01-02 13:37:05.420  CuSupport constructor : Unit Wind (m/s, mph, km/h, kts): 2
2021-01-02 13:37:05.421  CuSupport constructor : Unit Pressure (mb,hPa,inHg): 1
2021-01-02 13:37:05.421  CuSupport constructor : Unit Rain (mm,in): 0
2021-01-02 13:37:05.421  CuSupport constructor : Unit T (C,F): 0
2021-01-02 13:37:05.421  CuSupport constructor : Unit Distance (m, mi, km, kn): 2
2021-01-02 13:37:05.432 Information  CUstrings[xx].ini : CUstringsEN.ini looked for.
2021-01-02 13:37:05.449 InetSupport: Constructor start
2021-01-02 13:37:06.245 Information InetSupport: FTP Setup (After connect):
2021-01-02 13:37:06.245 Information InetSupport: Plain Old FTP activated.
2021-01-02 13:37:06.246 Information InetSupport: FTP Server: Unknown on Unix
2021-01-02 13:37:06.246 CumulusUtils : ----------------------------
2021-01-02 13:37:06.246 CumulusUtils : Entering Main
2021-01-02 13:37:06.300 CommandLineArgs : starting
2021-01-02 13:37:06.300  CommandLineArgs : handling arg: website
2021-01-02 13:37:06.300 CommandLineArgs : End
2021-01-02 13:37:06.323 SystemStatus : starting
2021-01-02 13:37:06.413 GetUrlData Start: URL - http://localhost:8998/api/tags/process.json?version&build&ProgramUpTime&NewBuildAvailable&NewBuildNumber&CpuCount&CPUTemp 
2021-01-02 13:37:06.424 Information GetUrlData Calling GetAsync
2021-01-02 13:37:07.474 Information  SystemStatus: Found device 9 Oregon Scientific WMR200
2021-01-02 13:37:07.477 SystemStatus : DoingUnix
2021-01-02 13:37:07.482 Information SystemStatus : DoingUnix Start
2021-01-02 13:37:07.486 Information StartProcess uptime -p
2021-01-02 13:37:07.519 Information StartProcess uptime: output=up 1 hour, 36 minutes
2021-01-02 13:37:07.531 Information StartProcess lshw -quiet -class system
2021-01-02 13:37:07.979 Information StartProcess lshw: output=raspberrypi
2021-01-02 13:37:07.980 Information StartProcess lshw: output=    description: ARMv7 Processor rev 4 (v7l)
2021-01-02 13:37:07.980 Information StartProcess lshw: output=    product: Raspberry Pi 3 Model B Rev 1.2
2021-01-02 13:37:07.980 Information StartProcess lshw: output=    serial: 00000000c01f7f02
2021-01-02 13:37:07.980 Information StartProcess lshw: output=    width: 32 bits
2021-01-02 13:37:07.980 Information StartProcess lshw: output=    capabilities: smp
2021-01-02 13:37:07.986 Information StartProcess uname -s -r -m
2021-01-02 13:37:07.994 Information StartProcess uname: output=Linux 5.4.51-v7+ armv7l
2021-01-02 13:37:07.996 Information StartProcess lsb_release -a
2021-01-02 13:37:08.171 Information StartProcess lsb_release: output=Distributor ID:	Raspbian
2021-01-02 13:37:08.171 Information StartProcess lsb_release: output=Description:	Raspbian GNU/Linux 10 (buster)
2021-01-02 13:37:08.172 Information StartProcess lsb_release: output=Release:	10
2021-01-02 13:37:08.172 Information StartProcess lsb_release: output=Codename:	buster
2021-01-02 13:37:08.219 Information StartProcess mono -V
2021-01-02 13:37:08.234 Information StartProcess mono: output=Mono JIT compiler version 6.12.0.90 (tarball Fri Sep  4 14:21:54 UTC 2020)
2021-01-02 13:37:08.235 Information StartProcess mono: output=Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
2021-01-02 13:37:08.235 Information StartProcess mono: output=	TLS:           __thread
2021-01-02 13:37:08.235 Information StartProcess mono: output=	SIGSEGV:       normal
2021-01-02 13:37:08.235 Information StartProcess mono: output=	Notifications: epoll
2021-01-02 13:37:08.236 Information StartProcess mono: output=	Architecture:  armel,vfp+hard
2021-01-02 13:37:08.236 Information StartProcess mono: output=	Disabled:      none
2021-01-02 13:37:08.236 Information StartProcess mono: output=	Misc:          softdebug 
2021-01-02 13:37:08.236 Information StartProcess mono: output=	Interpreter:   yes
2021-01-02 13:37:08.236 Information StartProcess mono: output=	LLVM:          yes(610)
2021-01-02 13:37:08.236 Information StartProcess mono: output=	Suspend:       preemptive
2021-01-02 13:37:08.236 Information StartProcess mono: output=	GC:            sgen (concurrent by default)
2021-01-02 13:37:08.237 Information StartProcess cat /proc/meminfo
2021-01-02 13:37:08.245 Information StartProcess cat: output=MemTotal:         948076 kB
2021-01-02 13:37:08.245 Information StartProcess cat: output=MemFree:          678416 kB
2021-01-02 13:37:08.245 Information StartProcess cat: output=MemAvailable:     760592 kB
2021-01-02 13:37:08.245 Information StartProcess cat: output=Buffers:           16400 kB
2021-01-02 13:37:08.245 Information StartProcess cat: output=Cached:           117804 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=SwapCached:            0 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Active:           169284 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Inactive:          62112 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Active(anon):      97468 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Inactive(anon):    12000 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Active(file):      71816 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Inactive(file):    50112 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Unevictable:          16 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Mlocked:              16 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=SwapTotal:        102396 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=SwapFree:         102396 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Dirty:                68 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Writeback:             0 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=AnonPages:         97248 kB
2021-01-02 13:37:08.246 Information StartProcess cat: output=Mapped:            60596 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=Shmem:             12276 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=KReclaimable:      10608 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=Slab:              23144 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=SReclaimable:      10608 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=SUnreclaim:        12536 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=KernelStack:        1248 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=PageTables:         1720 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=NFS_Unstable:          0 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=Bounce:                0 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=WritebackTmp:          0 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=CommitLimit:      576432 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=Committed_AS:     260660 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=VmallocTotal:    1114112 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=VmallocUsed:        3364 kB
2021-01-02 13:37:08.247 Information StartProcess cat: output=VmallocChunk:          0 kB
2021-01-02 13:37:08.248 Information StartProcess cat: output=Percpu:              464 kB
2021-01-02 13:37:08.248 Information StartProcess cat: output=CmaTotal:          65536 kB
2021-01-02 13:37:08.248 Information StartProcess cat: output=CmaFree:           63632 kB
2021-01-02 13:37:08.248 Information StartProcess df -T -text4 -tvfat -h
2021-01-02 13:37:08.258 Information StartProcess df: output=Filesystem     Type  Size  Used Avail Use% Mounted on
2021-01-02 13:37:08.259 Information StartProcess df: output=/dev/root      ext4   15G  2.7G   12G  20% /
2021-01-02 13:37:08.259 Information StartProcess df: output=/dev/mmcblk0p1 vfat  253M   54M  199M  22% /boot
2021-01-02 13:37:08.283 Information Timing of SysInfo generation = 1981 ms
2021-01-02 13:37:08.290  GenerateStationMap: start
2021-01-02 13:37:08.296 Information Timing of Generate StationMap generation = 12 ms
2021-01-02 13:37:08.322 Information Timing of WeatherForecast generation = 25 ms
2021-01-02 13:37:08.328 USerReports: Start
2021-01-02 13:37:08.329 Information Timing of USerReports generation = 6 ms
2021-01-02 13:37:08.329 Information CumulusUtils : Creating class dayfile -> Opening dayfile.txt
2021-01-02 13:37:08.332 Dayfile constructor: Using path: |data/|; file: |dayfile.txt
2021-01-02 13:37:08.335 Information Dayfile constructor: Working on: data/copy_dayfile.txt
2021-01-02 13:37:09.798 Information Timing of Dayfile load = 1469 ms
2021-01-02 13:37:09.825 PwsFWIfuncs constructor
2021-01-02 13:37:09.860 XML AddPrediction - start
2021-01-02 13:37:09.861 GetUrlData Start: URL - http://api.yourweather.co.uk/index.php?api_lang=en&localidad=58601&affiliate_id=an7fglw327sr&v=2.0 
2021-01-02 13:37:09.861 Information GetUrlData Calling GetAsync
2021-01-02 13:37:10.253 Information XML AddPrediction - The data:
2021-01-02 13:37:10.253 Information ThisValue converted date: 02-01-2021
2021-01-02 13:37:10.253 Information ThisValue converted MaxTemp: 5.0
2021-01-02 13:37:10.253 Information ThisValue converted LowHumidity: 83.0
2021-01-02 13:37:10.254 Information ThisValue converted High Av. Windspeed: 7.0
2021-01-02 13:37:10.254 Information ThisValue converted Rain This Day: 0.2
2021-01-02 13:37:10.255 Information XML AddPrediction - The data:
2021-01-02 13:37:10.255 Information ThisValue converted date: 03-01-2021
2021-01-02 13:37:10.255 Information ThisValue converted MaxTemp: 4.0
2021-01-02 13:37:10.255 Information ThisValue converted LowHumidity: 80.0
2021-01-02 13:37:10.255 Information ThisValue converted High Av. Windspeed: 13.0
2021-01-02 13:37:10.255 Information ThisValue converted Rain This Day: 0.0
2021-01-02 13:37:10.257 Information XML AddPrediction - The data:
2021-01-02 13:37:10.257 Information ThisValue converted date: 04-01-2021
2021-01-02 13:37:10.257 Information ThisValue converted MaxTemp: 4.0
2021-01-02 13:37:10.257 Information ThisValue converted LowHumidity: 83.0
2021-01-02 13:37:10.257 Information ThisValue converted High Av. Windspeed: 13.0
2021-01-02 13:37:10.257 Information ThisValue converted Rain This Day: 0.6
2021-01-02 13:37:10.258 Information XML AddPrediction - The data:
2021-01-02 13:37:10.258 Information ThisValue converted date: 05-01-2021
2021-01-02 13:37:10.258 Information ThisValue converted MaxTemp: 4.0
2021-01-02 13:37:10.258 Information ThisValue converted LowHumidity: 86.0
2021-01-02 13:37:10.259 Information ThisValue converted High Av. Windspeed: 15.0
2021-01-02 13:37:10.259 Information ThisValue converted Rain This Day: 0.2
2021-01-02 13:37:10.260 Information XML AddPrediction - The data:
2021-01-02 13:37:10.260 Information ThisValue converted date: 06-01-2021
2021-01-02 13:37:10.260 Information ThisValue converted MaxTemp: 3.0
2021-01-02 13:37:10.260 Information ThisValue converted LowHumidity: 79.0
2021-01-02 13:37:10.260 Information ThisValue converted High Av. Windspeed: 11.0
2021-01-02 13:37:10.260 Information ThisValue converted Rain This Day: 0.0
2021-01-02 13:37:10.260 Information XML AddPrediction - retval = True
2021-01-02 13:37:10.262 Information  PwsFWIfuncs BeteljuiceFormat = True
2021-01-02 13:37:10.262 Information  PwsFWIfuncs USerFireImage = True
2021-01-02 13:37:10.263 Information  PwsFWIfuncs DoPrediction = True
2021-01-02 13:37:10.263 calculatePwsFWI : starting
2021-01-02 13:37:10.263 calculatePwsFWI : ANALYSE is OFF
2021-01-02 13:37:10.304 Information HTMLexportPwsFWI : starting
2021-01-02 13:37:10.304 Information HTMLexportPwsFWI : starting pwsFWIcurrent
2021-01-02 13:37:10.307 Information HTMLexportPwsFWI : starting pwsFWI.txt
2021-01-02 13:37:10.308 Information HTMLexportPwsFWI : Using Beteljuice format
2021-01-02 13:37:10.332 Information RemovePrediction - start
2021-01-02 13:37:10.358 Information calculatePwsFWI : Deleting empty ANALYSIS csv file
2021-01-02 13:37:10.359 Information Timing of pwsFWI generation = 537 ms
2021-01-02 13:37:10.368 Main CmulusUtils: Yadr Constructor Start
2021-01-02 13:37:10.374  Generate Yadr Start
2021-01-02 13:37:10.408 Information GenerateYadrTempData: Looping over years, doing year 2018
2021-01-02 13:37:10.545 Information GenerateYadrTempData: Looping over years, doing year 2019
2021-01-02 13:37:10.662 Information GenerateYadrTempData: Looping over years, doing year 2020
2021-01-02 13:37:10.779 Information GenerateYadrTempData: Looping over years, doing year 2021
2021-01-02 13:37:10.788 Error Exception Unknown : Access to the path "/home/pi/CumulusMX/utils/YadrTemp2021.txt" is denied.
2021-01-02 13:37:10.788 Error Data (cont): mscorlib
2021-01-02 13:37:10.800 Error Data:   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00055] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0 
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool,System.Text.Encoding)
  at CumulusUtils.Yadr.GenerateYadrTempData (System.Int32 YearMin, System.Int32 YearMax, System.Collections.Generic.List`1[T] Thislist) [0x0005e] in <51f446ee582846008a4d11b083568ff4>:0 
  at CumulusUtils.Yadr.GenerateYadr (System.Collections.Generic.List`1[T] Thislist) [0x00091] in <51f446ee582846008a4d11b083568ff4>:0 
  at CumulusUtils.CMXutils.RealMainAsync (System.String[] args) [0x0076c] in <51f446ee582846008a4d11b083568ff4>:0 
  at CumulusUtils.CMXutils.Main (System.String[] args) [0x003e4] in <51f446ee582846008a4d11b083568ff4>:0 
2021-01-02 13:37:10.800 Error Exiting - check log file
it happens when i update from 4.10 and if i revert to 4.10 i have the same error :ugeek:
My weather station at Ver sur Launette - France (live) : http://stef942.free.fr/CMX

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Access to the path for YadrTemp2021.txt is denied

Post by HansR »

@steph942:
I split the topic to a new thread: this is not a 'New User' topic.
stef942 wrote:
Sat 02 Jan 2021 12:43 pm
2021-01-02 13:37:10.788 Error Exception Unknown : Access to the path "/home/pi/CumulusMX/utils/YadrTemp2021.txt" is denied.
It appears that you have no rights to access YadrTemp2021.txt. As you are the first (and so far only) user to experience this and because you are also on a RPi 3 like myself, it definitely does not seem to be an issue with the code and neither is it a version issue: that code has not been touched for over a year now.

Therefore I think you must look at the [user]rights for creating a file for writing in the utils directory.
Is there enough space?

Is the file at least created?? If so, remove it.

If it is not clear, you might try a completely new install: remove the utils directory, copy the distribution into the utils directory and run again. Make sure the user which runs CumulusUtils has the rights to write to utils!

Let me know how you get on.
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Access to the path forYadrTemp2021.txt is denied

Post by HansR »

@steph942:
And btw: I now see on your site the year 2021 is generated.

Does this mean problem solved? If so what was the cause?
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

stef942
Posts: 42
Joined: Mon 19 Oct 2009 8:17 pm
Weather Station: WMR200
Operating System: raspi3
Location: France-oise

Re: Access to the path forYadrTemp2021.txt is denied

Post by stef942 »

Hi, thanks for your reply,
HansR wrote:
Sat 02 Jan 2021 2:09 pm
@steph942:
And btw: I now see on your site the year 2021 is generated.
It was generated this morning before i install 4.10.1

i had to delete all yadrxxxx2021.txt because i have the same error of access denied for each file :ugeek: but now it works :bash:

thanks for your help and happy new year :clap:
My weather station at Ver sur Launette - France (live) : http://stef942.free.fr/CMX

User avatar
HansR
Posts: 1651
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Access to the path forYadrTemp2021.txt is denied

Post by HansR »

stef942 wrote:
Sat 02 Jan 2021 3:30 pm
It was generated this morning before i install 4.10.1

i had to delete all yadrxxxx2021.txt because i have the same error of access denied for each file :ugeek: but now it works :bash:

thanks for your help and happy new year :clap:
OK, still somewhat confused about the cause but if it works it works :D
Also the best for the new year. ;)
https://meteo-wagenborgen.nl / Cumulus 3.9.4 (build: 3099)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian Buster / 5.4.79-v7+ armv7l
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Sat Apr 20 05:16:08 UTC 2019)

Post Reply