pioreactor icon indicating copy to clipboard operation
pioreactor copied to clipboard

[what happened] OD Calibration not being applied

Open CamDavidsonPilon opened this issue 2 years ago • 4 comments

https://forum.pioreactor.com/t/optical-density-calibrations-troubleshooting/137

Still unsure what's causing this.

CamDavidsonPilon avatar Oct 06 '23 13:10 CamDavidsonPilon

  • Permissions issue?

CamDavidsonPilon avatar Oct 06 '23 20:10 CamDavidsonPilon

Pretty sure this is a permissions issue. The user was using sudo infront of a lot of their commands, and I expect they ran:

sudo pio run od_calibration

This would create a ~/.pioreactor/storage/od_calibrations/ folder owned by root, and a storage db cache.db owned by root with permissions -rw-r--r-- 1

When the user tried to start from the UI, the user pioreactor would run pio run od_reading and try to read a file owned by root and it would fail. However, on the command line, the user would use sudo pio run od_reading and everything would work.

CamDavidsonPilon avatar Feb 28 '24 19:02 CamDavidsonPilon

I'm an idiot: -rw-r--r-- means others can read, too.

CamDavidsonPilon avatar Feb 28 '24 19:02 CamDavidsonPilon

I'm not an idiot. The WAL file needs to be created, and pioreactor can't create/write/whatever.

CamDavidsonPilon avatar Mar 01 '24 16:03 CamDavidsonPilon