Replies: 16 comments 2 replies
-
@gintasd, If your remote Website is giving errors while creating the thumbnails, there are two possiblities:
|
Beta Was this translation helpful? Give feedback.
-
Hi Eric,
I am hosting Remote web on my Raspberry Piat home.
How should I check if
*The PHP imagejpeg() function is enabled or not?*
Pagarbiai,
Gintautas Drazdauskas
…On Sat, Aug 16, 2025, 11:51 Eric Claeys ***@***.***> wrote:
@gintasd <https://github.com/gintasd>,
Thumbnails for Keograms and Startrails are created when someone visits the
local or remote Allsky Website and clicks on the associated icons on the
left side.
For timelapse, there's an option to "Upload Thumbnail" which causes the
thumbnail to be created on the Pi and uploaded to the remote Website. Most
hosting solutions don't allow the external command that creates a thumbnail
from a video file to be run due to security concerns.
There's a built-in function to create a thumbnail from a keogram or
startrails .jpg file.
If your remote Website is giving errors while creating the thumbnails,
there are two possiblities:
1. *Permissions are wrong.* Please make sure the */thumbnails
directories are 775 and owned and/or grouped to whatever login your remote
web server runs as - that won't be www-data, which is the login the
Pi's web server runs as.
2. *The PHP imagejpeg() function is not enabled*. For this you'll have
to talk to your hosting provider.
—
Reply to this email directly, view it on GitHub
<#4851 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANJOF3RMJ4DE7LSNBDPLPML3N3WJJAVCNFSM6AAAAACEAAEZVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJSGQ4DAMY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@gintasd, Please run If they aren't the correct permissions, run:
|
Beta Was this translation helpful? Give feedback.
-
Hi Eric,
No, it is separate RasPi, that hosts my Weather web as well.
With old version both had been running without issues.
Meteo main folder is in the same user folder as Allsky folder.
Older Allsky html was in /var/www/html
Now index.php is direct in /allsky.
My "home" webpage, that starts at /var/www/html, has links to both: Meteo
and Allsky( remote).
So to get working a new Allaky version in my Home web page, I created
simlink to /allsky from /var/www/html.
Maybe it is not the best way, but it works.
Except thumbnails, bu, I suppose, thumbnails creation is jot related to
web page.
For Meteo Web page, doing installation, I had to set: chown -R
user:www-data ~/mySQMWEB.
Pagarbiai,
Gintautas Drazdauskas
…On Sat, Aug 16, 2025, 12:45 Eric Claeys ***@***.***> wrote:
@gintasd <https://github.com/gintasd>,
is this the same Pi running Allsky? If so, the imagejpeg() function
should be enabled unless you disabled it.
Please run ls -ld ~/allsky/html/allsky/*/thumbnails.
If they aren't the correct permissions, run:
chmod 775 ~/allsky/html/allsky/*/thumbnails
chgrp www-data ~/allsky/html/allsky/*/thumbnails
—
Reply to this email directly, view it on GitHub
<#4851 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANJOF3US5XXLQCILNDQZ6KD3N34VFAVCNFSM6AAAAACEAAEZVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJSGQ4TSNI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@gintasd, Your main Pi doesn't know or care that the device hosting your remote Allsky Website is actually a Raspberry Pi versus a server you pay for or anything else. The main Pi only cares that it can copy files to the other machine (usually via FTP) and that the other machine has a URL that takes it to the remote Allsky Website home page. The main Pi doesn't know where that home page is - it only knows that when it FTPs to the machine it copies files to where the "Image Directory" setting on the main Pi points to. All that is working. I can't think of anything in the Allsky Website software that changed in v2024.12.06_06 that would break thumbnail creation. In fact, the Allsky Website code didn't change much at all in the last few releases. Please run this on the main Pi:
and on the second Pi, go to the directory that has the Allsky Website and run:
Let me know what both commands return. |
Beta Was this translation helpful? Give feedback.
-
Hi Eric, The main Pi returns: The second PI returns: ls: cannot access '/home/astrometeo/*/thumbnails': No such file or directory Well, it seems it does not find a path to the /thumbnails forlder. Gintautas |
Beta Was this translation helpful? Give feedback.
-
Hi Eric,
Nothing has changed since old version,
The same user "astrometeo" ( otherwise nothing would work at all)
The same for ftp.
Webserver is lighttpd
In Main Pi Allsky remote settings ( in Allsky Web UI) passes the test file
transfer, as well doing remote Allsky insrallation the script pass all test
points.
Pagarbiai,
Gintautas Drazdauskas
…On Sun, Aug 17, 2025, 20:17 Eric Claeys ***@***.***> wrote:
Thanks for the info.
What web server are you running on the second Pi?
And what login does it run as?
Only a process running as the "astrometeo" login will be able to write to
the thumbnail directories because they are only writable by that login.
What login do you use to FTP into the second Pi?
—
Reply to this email directly, view it on GitHub
<#4851 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANJOF3TJG6W2SQTQ764XJCT3OC2LDAVCNFSM6AAAAACEAAEZVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJTGMYTMNI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@gintasd, please attach these two files. You'll need to append
Also, please run:
and paste the output. Thanks - Eric |
Beta Was this translation helpful? Give feedback.
-
[lighttpd.conf.txt](https://github.com/user-attachments/files/21824051/lighttpd.conf.txt)
[remoteWebsiteInstall.log](https://github.com/user-attachments/files/21824052/remoteWebsiteInstall.log)
Hi Eric,
~~~
astrometeo@allsky:~ $ cd allsky
astrometeo@allsky:~/allsky $ ls -ld .*
drwxrwxr-x 13 astrometeo astrometeo 4096 Aug 17 21:46 .
drwxrwxr-x 19 astrometeo astrometeo 4096 Aug 17 10:33 ..
~~~
Files are attached, but for me it is not clear how webserver settings could
be related to thumbnails generation?
I can access copied from Main PI files in a second Pi from Allsky WEB UI,
just thumbnails are missing - I do not see them in Thumbnails folder.
<img width="1816" height="436" alt="image" src="https://github.com/user-attachments/assets/c6f88544-53a8-407e-a10b-fed708c71bd3" />
Gintautas
…On Sun, Aug 17, 2025 at 9:28 PM Eric Claeys ***@***.***> wrote:
@gintasd <https://github.com/gintasd>, please attach these two files.
You'll need to append .txt to the second file name so GitHub accepts it:
~/allsky/config/logs/remoteWebsiteInstall.log
/etc/lighttpd/lighttpd.conf
Also, please run:
cd /home/astrometeo/allsky
ls -ld . *
and paste the output.
Thanks - Eric
—
Reply to this email directly, view it on GitHub
<#4851 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANJOF3WTVF3PWVJBPLK44L33ODCWTAVCNFSM6AAAAACEAAEZVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJTGM2DINI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Pagarbiai,
Gintautas Drazdauskas
server.modules = (
"mod_expire",
"mod_setenv",
"mod_indexfile",
"mod_access",
"mod_alias",
"mod_redirect",
)
server.document-root = "/var/www/html"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
dir-listing.activate = "enable"
$HTTP["url"] =~ "thumbnails|allsky/videos|allsky/startrails|allsky/keograms" {
server.stream-response-body = 1
} else $HTTP["url"] =~ "^/current" {
expire.url = ( "" => "access plus 0 seconds")
setenv.add-response-header += (
"Cache-Control" => "must-revalidate, proxy-revalidate, max-age=0"
)
}
alias.url = ("/current/" => "/home/astrometeo/allsky/")
alias.url += ("/images/" => "/home/astrometeo/allsky/images/")
alias.url += ("/website/" => "/var/www/html/allsky/")
# strict parsing and normalization of URL for consistency and security
# https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_http-parseoptsDetails
# (might need to explicitly set "url-path-2f-decode" = "disable"
# if a specific application is encoding URLs inside url-path)
server.http-parseopts = (
"header-strict" => "enable",# default
"host-strict" => "enable",# default
"host-normalize" => "enable",# default
"url-normalize-unreserved"=> "enable",# recommended highly
"url-normalize-required" => "enable",# recommended
"url-ctrls-reject" => "enable",# recommended
"url-path-2f-decode" => "enable",# recommended highly (unless breaks app)
#"url-path-2f-reject" => "enable",
"url-path-dotseg-remove" => "enable",# recommended highly (unless breaks app)
#"url-path-dotseg-reject" => "enable",
#"url-query-20-plus" => "enable",# consistency in query string
)
index-file.names = ( "index.php", "index.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
#mimetype.assign = (".css" => "text/css", )
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"
#server.compat-module-load = "disable"
server.modules += (
#"mod_compress",
"mod_dirlisting",
"mod_staticfile",
)
|
Beta Was this translation helpful? Give feedback.
-
Looking at your lighttpd.conf file your website is in If that's correct, please run The lighttpd web server is running as the |
Beta Was this translation helpful? Give feedback.
-
Hi Eric, Old version of Allsky remote was in /var/www/html/allsky. All files from main Pi to the second Pi with remote Allsky goes under user "astrometeo" and to folder /home/astrometeo. In a post above I have attached a picture where it is visible a kind of "thumbnail" (I do not know how to name it - some scaled down image) of reale image file with text "unable to create thumbnail?. Hi res pictures are transfered from main PI to a remote Alllsky without any issues. Gintautas |
Beta Was this translation helpful? Give feedback.
-
Please run:
When you ran You are correct that a "thumbnail" is a scaled-down version of a file. Thumbnails are 100 x 75 pixels Since everything used to work, I can only assume when Clicking on a thumbnail or the icon that indicates a missing file brings up the full-sized file - this is as expected. |
Beta Was this translation helpful? Give feedback.
-
Hi Eric, here they are:
Gintautas |
Beta Was this translation helpful? Give feedback.
-
Great - thanks for the info. I see the problem. The lighttpd web server runs as Do the following to fix it:
I'm 99.9% sure this is what happened:
What you did was perfectly fine. What Allsky did was perfectly fine. You are going to run into this whenever you upgrade Allsky and ask for the startrails, keograms, and timelapse files to be uploaded. Possibly even if you don't ask them to be uploaded. You can keep this from happening by moving |
Beta Was this translation helpful? Give feedback.
-
Hi Eric, Thanks a lot, it has fixed issue immediately. Thank you very much for support! Gintautas |
Beta Was this translation helpful? Give feedback.
-
Gintautas, We both learned something, so it was worth the time. I'll close the Discussion since the problem is resolved. Now you can enjoy your camera!!!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Helllo,
Local Website is absolutely fine.
Status: Running
Version: v2024.12.06_06 on allsky
Doing Remote web installation all needed files are copied and I can see thumbnails for all files.
But next day thumnails for Startrails and Keograms are not created.
The hi rezolution files are copied and present on a Remote Web and I can open them, but thumnails are not present.
I see a message on site like :
Unable to create thumbnail for './keogram-20250814.jpg': imagejpeg(./thumbnails/keogram-20250814.jpg): failed to open stream: Permission denied
What is confusing that for Video timelapse all is fine - Thumbnails are created.
I have reinstalled Remote Web two times and next day again I see this error.
Do the same ownership commands as in one of conversations would work for remote Web?
chmod 775 */thumbnails
chgrp www-data */thumbnails
Gintautas
Beta Was this translation helpful? Give feedback.
All reactions